C# Class Box2DX.Collision.CircleShape

A circle shape.
Inheritance: Shape
Afficher le fichier Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Méthodes publiques

Méthode Description
ComputeAABB ( AABB &aabb, XForm transform ) : void
ComputeMass ( MassData &massData ) : void
ComputeSubmergedArea ( Vec2 normal, float offset, XForm xf, Vec2 &c ) : float
ComputeSweptAABB ( AABB &aabb, XForm transform1, XForm transform2 ) : void
GetLocalPosition ( ) : Vec2

Get the local position of this circle in its parent body.

GetRadius ( ) : float

Get the radius of this circle.

TestPoint ( XForm transform, Vec2 p ) : bool
TestSegment ( XForm transform, float &lambda, Vec2 &normal, Segment segment, float maxLambda ) : SegmentCollide

Private Methods

Méthode Description
CircleShape ( ShapeDef def ) : System
UpdateSweepRadius ( Vec2 center ) : void

Method Details

ComputeAABB() public méthode

public ComputeAABB ( AABB &aabb, XForm transform ) : void
aabb AABB
transform Box2DX.Common.XForm
Résultat void

ComputeMass() public méthode

public ComputeMass ( MassData &massData ) : void
massData MassData
Résultat void

ComputeSubmergedArea() public méthode

public ComputeSubmergedArea ( Vec2 normal, float offset, XForm xf, Vec2 &c ) : float
normal Box2DX.Common.Vec2
offset float
xf Box2DX.Common.XForm
c Box2DX.Common.Vec2
Résultat float

ComputeSweptAABB() public méthode

public ComputeSweptAABB ( AABB &aabb, XForm transform1, XForm transform2 ) : void
aabb AABB
transform1 Box2DX.Common.XForm
transform2 Box2DX.Common.XForm
Résultat void

GetLocalPosition() public méthode

Get the local position of this circle in its parent body.
public GetLocalPosition ( ) : Vec2
Résultat Box2DX.Common.Vec2

GetRadius() public méthode

Get the radius of this circle.
public GetRadius ( ) : float
Résultat float

TestPoint() public méthode

public TestPoint ( XForm transform, Vec2 p ) : bool
transform Box2DX.Common.XForm
p Box2DX.Common.Vec2
Résultat bool

TestSegment() public méthode

public TestSegment ( XForm transform, float &lambda, Vec2 &normal, Segment segment, float maxLambda ) : SegmentCollide
transform Box2DX.Common.XForm
lambda float
normal Box2DX.Common.Vec2
segment Segment
maxLambda float
Résultat SegmentCollide