C# Class Box2DX.Collision.CircleShape

A circle shape.
Inheritance: Shape
Mostra file Open project: danielpcox/Crisis-at-Swiss-Station Class Usage Examples

Public Methods

Method 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

Method Description
CircleShape ( ShapeDef def ) : System
UpdateSweepRadius ( Vec2 center ) : void

Method Details

ComputeAABB() public method

public ComputeAABB ( AABB &aabb, XForm transform ) : void
aabb AABB
transform Box2DX.Common.XForm
return void

ComputeMass() public method

public ComputeMass ( MassData &massData ) : void
massData MassData
return void

ComputeSubmergedArea() public method

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
return float

ComputeSweptAABB() public method

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

GetLocalPosition() public method

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

GetRadius() public method

Get the radius of this circle.
public GetRadius ( ) : float
return float

TestPoint() public method

public TestPoint ( XForm transform, Vec2 p ) : bool
transform Box2DX.Common.XForm
p Box2DX.Common.Vec2
return bool

TestSegment() public method

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
return SegmentCollide