Table of Contents

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

float

Methods

CollisionTest(Quadrangle, float)

Determines whether a certain area lies within a circle.

public override bool CollisionTest(Quadrangle area, float rotation)

Parameters

area Quadrangle

The area to check for collision in entity space.

rotation float

This is ignored for circles.

Returns

bool

true if area 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 Vector2

The point to check for collision in entity space.

rotation float

This is ignored for circles.

Returns

bool

true if the point does collide with the circle, false.