C# Class FarseerPhysics.Collision.Shapes.CircleShape

Inheritance: Shape
ファイルを表示 Open project: prime31/Nez Class Usage Examples

Public Methods

Method Description
CircleShape ( float radius, float density ) : System

Create a new circle with the desired radius and density.

CompareTo ( CircleShape shape ) : bool

Compare the circle to another circle

clone ( ) : Shape
computeAABB ( AABB &aabb, Transform &transform, int childIndex ) : void
computeSubmergedArea ( Vector2 &normal, float offset, Transform &xf, Vector2 &sc ) : float
rayCast ( RayCastOutput &output, RayCastInput &input, Transform &transform, int childIndex ) : bool
testPoint ( Transform &transform, Vector2 &point ) : bool

Protected Methods

Method Description
computeProperties ( ) : void

Private Methods

Method Description
CircleShape ( ) : System

Method Details

CircleShape() public method

Create a new circle with the desired radius and density.
public CircleShape ( float radius, float density ) : System
radius float The radius of the circle.
density float The density of the circle.
return System

CompareTo() public method

Compare the circle to another circle
public CompareTo ( CircleShape shape ) : bool
shape CircleShape The other circle
return bool

clone() public method

public clone ( ) : Shape
return Shape

computeAABB() public method

public computeAABB ( AABB &aabb, Transform &transform, int childIndex ) : void
aabb AABB
transform Transform
childIndex int
return void

computeProperties() protected final method

protected final computeProperties ( ) : void
return void

computeSubmergedArea() public method

public computeSubmergedArea ( Vector2 &normal, float offset, Transform &xf, Vector2 &sc ) : float
normal Vector2
offset float
xf Transform
sc Vector2
return float

rayCast() public method

public rayCast ( RayCastOutput &output, RayCastInput &input, Transform &transform, int childIndex ) : bool
output RayCastOutput
input RayCastInput
transform Transform
childIndex int
return bool

testPoint() public method

public testPoint ( Transform &transform, Vector2 &point ) : bool
transform Transform
point Vector2
return bool