Changed Vector3 floor() and ceil()

This commit is contained in:
Shoghi Cervantes 2015-05-28 14:20:50 +02:00
parent 9a2170d296
commit 3dd4fe706c

View File

@ -123,11 +123,11 @@ class Vector3{
}
public function ceil(){
return new Vector3((int) ($this->x + 1), (int) ($this->y + 1), (int) ($this->z + 1));
return new Vector3((int) ceil($this->x), (int) ceil($this->y), (int) ceil($this->z));
}
public function floor(){
return new Vector3((int) $this->x, (int) $this->y, (int) $this->z);
return new Vector3((int) floor($this->x), (int) floor($this->y), (int) floor($this->z));
}
public function round(){