Class BoundingCircle

Hierarchy

  • BoundingCircle

Constructors

Properties

Methods

Constructors

Properties

center: Vector2
radius: number

Methods

  • Computes the bounds of the BoundingCircle from the given vertices

    Parameters

    • vertices: number[] | Vector2[]

      The array of Vector2 or number objects representing the vertices

    • boundingBox: BoundingBox2

      The BoundingBox2 object to use when computing the bounds

    Returns void

  • Returns whether this BoundingCircle intersects with the input BoundingCircle

    Returns

    True if the two BoundingCircle objects intersect, false otherwise

    Parameters

    • circle: BoundingCircle

      The BoundingCircle object to check for intersection

    Returns boolean

Generated using TypeDoc