C# 클래스 Box2DX.Collision.PolygonShape

A convex polygon. It is assumed that the interior of the polygon is to the left of each edge.
상속: Shape
파일 보기 프로젝트 열기: danielpcox/Crisis-at-Swiss-Station 1 사용 예제들

공개 메소드들

메소드 설명
Centroid ( XForm xf ) : Vec2

Get the centroid and apply the supplied transform.

ComputeAABB ( AABB &aabb, XForm xf ) : void
ComputeCentroid ( Vec2 vs, int count ) : Vec2
ComputeMass ( MassData &massData ) : void
ComputeOBB ( OBB &obb, Vec2 vs, int count ) : void
ComputeSubmergedArea ( Vec2 normal, float offset, XForm xf, Vec2 &c ) : float
ComputeSweptAABB ( AABB &aabb, XForm transform1, XForm transform2 ) : void
GetCentroid ( ) : Vec2

Get local centroid relative to the parent body.

GetCoreVertices ( ) : Box2DX.Common.Vec2[]

Get the core vertices in local coordinates. These vertices represent a smaller polygon that is used for time of impact computations.

GetFirstVertex ( XForm xf ) : Vec2

Get the first vertex and apply the supplied transform.

GetOBB ( ) : OBB

Get the oriented bounding box relative to the parent body.

GetVertices ( ) : Box2DX.Common.Vec2[]

Get the vertices in local coordinates.

Support ( XForm xf, Vec2 d ) : Vec2

Get the support point in the given world direction. Use the supplied transform.

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

비공개 메소드들

메소드 설명
PolygonShape ( ShapeDef def ) : System
UpdateSweepRadius ( Vec2 center ) : void

메소드 상세

Centroid() 공개 메소드

Get the centroid and apply the supplied transform.
public Centroid ( XForm xf ) : Vec2
xf Box2DX.Common.XForm
리턴 Box2DX.Common.Vec2

ComputeAABB() 공개 메소드

public ComputeAABB ( AABB &aabb, XForm xf ) : void
aabb AABB
xf Box2DX.Common.XForm
리턴 void

ComputeCentroid() 공개 정적인 메소드

public static ComputeCentroid ( Vec2 vs, int count ) : Vec2
vs Box2DX.Common.Vec2
count int
리턴 Box2DX.Common.Vec2

ComputeMass() 공개 메소드

public ComputeMass ( MassData &massData ) : void
massData MassData
리턴 void

ComputeOBB() 공개 정적인 메소드

public static ComputeOBB ( OBB &obb, Vec2 vs, int count ) : void
obb OBB
vs Box2DX.Common.Vec2
count int
리턴 void

ComputeSubmergedArea() 공개 메소드

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
리턴 float

ComputeSweptAABB() 공개 메소드

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

GetCentroid() 공개 메소드

Get local centroid relative to the parent body.
public GetCentroid ( ) : Vec2
리턴 Box2DX.Common.Vec2

GetCoreVertices() 공개 메소드

Get the core vertices in local coordinates. These vertices represent a smaller polygon that is used for time of impact computations.
public GetCoreVertices ( ) : Box2DX.Common.Vec2[]
리턴 Box2DX.Common.Vec2[]

GetFirstVertex() 공개 메소드

Get the first vertex and apply the supplied transform.
public GetFirstVertex ( XForm xf ) : Vec2
xf Box2DX.Common.XForm
리턴 Box2DX.Common.Vec2

GetOBB() 공개 메소드

Get the oriented bounding box relative to the parent body.
public GetOBB ( ) : OBB
리턴 OBB

GetVertices() 공개 메소드

Get the vertices in local coordinates.
public GetVertices ( ) : Box2DX.Common.Vec2[]
리턴 Box2DX.Common.Vec2[]

Support() 공개 메소드

Get the support point in the given world direction. Use the supplied transform.
public Support ( XForm xf, Vec2 d ) : Vec2
xf Box2DX.Common.XForm
d Box2DX.Common.Vec2
리턴 Box2DX.Common.Vec2

TestPoint() 공개 메소드

public TestPoint ( XForm xf, Vec2 p ) : bool
xf Box2DX.Common.XForm
p Box2DX.Common.Vec2
리턴 bool

TestSegment() 공개 메소드

public TestSegment ( XForm xf, float &lambda, Vec2 &normal, Segment segment, float maxLambda ) : SegmentCollide
xf Box2DX.Common.XForm
lambda float
normal Box2DX.Common.Vec2
segment Segment
maxLambda float
리턴 SegmentCollide