mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
20 lines
354 B
PHP
20 lines
354 B
PHP
<?php
|
|
class Vector3Pos extends Vector3
|
|
{
|
|
public $x, $y, $z;
|
|
|
|
public function __construct(&$x, &$y, &$z){
|
|
$this->x = &$x;
|
|
$this->y = &$y;
|
|
$this->z = &$z;
|
|
}
|
|
|
|
public function addToValues($v){
|
|
$this->x += $v->x;
|
|
$this->y += $v->y;
|
|
$this->z += $v->z;
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|