mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-08 10:53:05 +00:00
Implemented asVector3(), asPosition() and asLocation()
Squash merge, closes #973
This commit is contained in:
@ -157,6 +157,15 @@ class Vector3{
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return a Vector3 instance
|
||||
*
|
||||
* @return Vector3
|
||||
*/
|
||||
public function asVector3() : Vector3{
|
||||
return new Vector3($this->x, $this->y, $this->z);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the Vector3 side number opposite the specified one
|
||||
*
|
||||
|
Reference in New Issue
Block a user