The Matter.Bounds module contains methods for creating and manipulating axis-aligned bounding boxes (AABB).

Hierarchy

  • default

Constructors

Methods

  • Returns true if the bounds contains the given point.

    Parameters

    Returns boolean

    True if the bounds contain the point, otherwise false

    Method

    contains

  • Returns true if the two bounds intersect.

    Parameters

    Returns boolean

    True if the bounds overlap, otherwise false

    Method

    overlaps

  • Updates bounds using the given vertices and extends the bounds given a velocity.

    Parameters

    Returns void

    Method

    update

Generated using TypeDoc