Releases
0.4.0
Changes since 0.3.x
PHP 8.0 is now required.
Native union types have been applied to the following Vector3
elements:
__construct()
getX()
getY()
getZ()
add()
subtract()
maxPlainDistance()
withComponents()
x
, y
and z
fields
Vector2
x
and y
fields now use native float
property types.
Vector2->__construct()
parameters are now mandatory.
Added Vector2->addVector(Vector2)
and Vector2->subtractVector(Vector2)
, replacing the overloaded behaviour of add()
and subtract()
.
Vector2->add()
no longer accepts Vector2
in the first argument (use addVector()
instead).
Vector2->subtract()
no longer accepts Vector2
in the first argument (use subtractVector()
instead).
Vector2->distance()
no longer accepts float, float
(now Vector2
is required).
Vector2->distanceSquared()
no longer accepts float, float
(now Vector2
is required).
Matrix
has been modernized. All cases that used to return false
on error now throw exceptions instead.
Axis
, AxisAlignedBB
, Facing
, Math
, VectorMath
and VoxelRayTrace
are now final.
You can’t perform that action at this time.