23 public function __construct(
28 public function getPitch() :
float{
return $this->pitch; }
30 public function getYaw() :
float{
return $this->yaw; }
32 public static function read(ByteBufferReader $in) :
self{
33 $pitch = LE::readFloat($in);
34 $yaw = LE::readFloat($in);
35 return new self($pitch, $yaw);
38 public function write(ByteBufferWriter $out) :
void{
39 LE::writeFloat($out, $this->pitch);
40 LE::writeFloat($out, $this->yaw);