pocketmine\level\Location::getYaw PHP Method

getYaw() public method

public getYaw ( )
    public function getYaw()
    {
        return $this->yaw;
    }

Usage Example

Example #1
0
 /**
  * @param number $slowness
  * @return Location|null
  */
 public function tick($slowness)
 {
     if (($length = $this->length * $slowness) < 1.0E-7) {
         return null;
     }
     if (($progress = $this->current++ / $length) > 1) {
         return null;
     }
     return new Location($this->getOrigin()->getX() + $this->distance->getX() * $progress, 1.62 + $this->getOrigin()->getY() + $this->distance->getY() * $progress, $this->getOrigin()->getZ() + $this->distance->getZ() * $progress, $this->getOrigin()->getYaw() + $this->distance->getYaw() * $progress, $this->getOrigin()->getPitch() + $this->distance->getPitch() * $progress);
 }
All Usage Examples Of pocketmine\level\Location::getYaw