Bounds.BoundingCircle

Description: Defines a circle that can be used to detect intersections.

Extends: Bounds.Bounds2d

Constructors

BoundingCircle (position, radius)
Creates a new instance of BoundingCircle.

position: EndGate.Vector2d
Initial Position of the BoundingCircle.

radius: number
Initial Radius of the BoundingCircle.

Fields

Radius: number
Gets or sets the Radius of the circle.

Inherited from: Bounds.Bounds2d

Position: EndGate.Vector2d
Gets or sets the Position of the bounds.

Rotation: number
Gets or sets the Rotation of the bounds.

Methods

Scale()
Scales the radius of the BoundingCircle.

Area()
Calculates the area of the BoundingCircle.

Circumference()
Calculates the circumference of the BoundingCircle.

IntersectsCircle()
Determines if the current BoundingCircle is intersecting the provided BoundingCircle.

IntersectsRectangle()
Determines if the current BoundingCircle is intersecting the provided BoundingRectangle.

ContainsPoint()
Determines if the current BoundingCircle contains the provided Vector2d.

ContainsCircle()
Determines if the current BoundingCircle completely contains the provided BoundingCircle.

ContainsRectangle()
Determines if the current BoundingCircle completely contains the provided BoundingRectangle.

Inherited from: Bounds.Bounds2d

Contains()
Abstract: Determines if the current bounded object contains the provided Vector2d.

Intersects()
Determines if the current bounded object intersects another bounded object.

Examples

There's currently no example available for this page. If you'd like to suggest one send me an containing a description, code, and link to the page for the suggested example. As a thanks I'll associate the code snippet with your name directly below the example if approved.