mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
Changed Vector3 floor() and ceil()
This commit is contained in:
@@ -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(){
|
||||
|
Reference in New Issue
Block a user