gophergfx
    Preparing search index...

    Class BoundingBox2

    Index
    max: Vector2
    min: Vector2
    • 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

      Parameters

      Returns boolean

      True if the two BoundingBox2s intersect, false otherwise