public function encode() { $this->reset(); $this->putLFloat($this->x); $this->putLFloat($this->y); $this->putLFloat($this->z); }