Implemented asVector3(), asPosition() and asLocation()

Squash merge, closes #973
This commit is contained in:
Matt
2017-06-07 16:40:45 +08:00
committed by SOFe
parent 9cc27b2719
commit f0d12a0b30
3 changed files with 27 additions and 0 deletions

View File

@ -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
*