Class BoundingBox2

Hierarchy

  • BoundingBox2

Constructors

Properties

Methods

Constructors

Properties

max: Vector2
min: Vector2

Methods

  • Computes the minimum and maximum Vector2 objects for the BoundingBox2 from a given array of vertices

    Parameters

    • vertices: number[] | Vector2[]

      An array of Vector2 or number objects with the vertices

    Returns void

  • Checks if this BoundingBox2 intersects with another BoundingBox2

    Returns

    True if the two BoundingBox2s intersect, false otherwise

    Parameters

    Returns boolean

Generated using TypeDoc