mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-27 13:49:55 +00:00
Changed Vector3 floor() and ceil()
This commit is contained in:
parent
9a2170d296
commit
3dd4fe706c
@ -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(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user