Fixed Vector3::add()

This commit is contained in:
Shoghi Cervantes Pueyo 2013-03-10 13:33:52 +01:00
parent ab1c28fc57
commit 40842ec794

View File

@ -86,9 +86,6 @@ class Vector3{
if(($x instanceof Vector3) === true){
return $this->add($x->x, $x->y, $x->z);
}else{
$this->x += $x;
$this->y += $y;
$this->z += $z;
return new Vector3($this->x + $x, $this->y + $y, $this->z + $z);
}
}