Class Circle
- Namespace
- FrameOfReference.World.Components
- Assembly
- FrameOfReference.World.dll
Collision-detection using a simple uniform circle.
public class Circle : Collision<Vector2>, ICloneable
- Inheritance
-
Collision<Vector2>Circle
- Implements
- Inherited Members
- Extension Methods
Properties
Radius
The radius of the circle.
public float Radius { get; set; }
Property Value
Methods
CollisionTest(Quadrangle, float)
Determines whether a certain area lies within a circle.
public override bool CollisionTest(Quadrangle area, float rotation)
Parameters
area
QuadrangleThe area to check for collision in entity space.
rotation
floatThis is ignored for circles.
Returns
- bool
true
ifarea
does collide with the circle,false
.
CollisionTest(Vector2, float)
Determines whether a certain point lies within a circle.
public override bool CollisionTest(Vector2 point, float rotation)
Parameters
point
Vector2The point to check for collision in entity space.
rotation
floatThis is ignored for circles.
Returns
- bool
true
if thepoint
does collide with the circle,false
.