Skip to content

Releases: pmmp/Math

0.2.2

04 Jan 15:50
Compare
Choose a tag to compare

Changes since 0.2.1

  • Import global constants and functions for enhanced performance.

0.2.1

15 Aug 15:46
Compare
Choose a tag to compare

Changes since 0.2.0

Vector3

  • Added new methods up(), down(), north(), south(), west(), east() which wrap getSide().

0.2.0

13 Jun 10:04
Compare
Choose a tag to compare

Changes since 0.1.0

General

  • Now requires php-64bit in composer.json.

AxisAlignedBB

  • grow() has been renamed to expandedCopy()
  • getOffsetBoundingBox() has been renamed to offsetCopy()
  • shrink() has been renamed to contractedCopy()

Math

  • Fixed logic error in ceilFloat() (observed using any floating-point number greater than -1.0)

0.1.0

13 Apr 18:35
Compare
Choose a tag to compare

Changes since 0.0.1

AxisAlignedBB changes

  • intersectsWith() now has an optional $epsilon parameter, which defaults to 0.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()