Releases: pmmp/Math
Releases · pmmp/Math
0.2.2
0.2.1
0.2.0
Changes since 0.1.0
General
- Now requires
php-64bit
in composer.json.
AxisAlignedBB
grow()
has been renamed toexpandedCopy()
getOffsetBoundingBox()
has been renamed tooffsetCopy()
shrink()
has been renamed tocontractedCopy()
Math
- Fixed logic error in
ceilFloat()
(observed using any floating-point number greater than -1.0)
0.1.0
Changes since 0.0.1
AxisAlignedBB
changes
intersectsWith()
now has an optional$epsilon
parameter, which defaults to0.00001
Vector2
changes
- Most methods now include appropriate typehints to PHP 7.2 standards.
Vector3
changes
- Methods now include appropriate typehints where possible to PHP 7.2 standards. Some have been deliberately omitted to avoid breaking usages of
Vector3
as an int-vector as opposed to float-vector. - Removed methods:
getRight()
,getUp()
,getForward()
,getSouth()
,getWest()