C# 클래스 FarseerPhysics.Collision.Shapes.PolygonShape

Represents a simple non-selfintersecting convex polygon. Create a convex hull from the given array of points.
상속: Shape
파일 보기 프로젝트 열기: prime31/Nez 1 사용 예제들

공개 메소드들

메소드 설명
CompareTo ( PolygonShape shape ) : bool
PolygonShape ( Vertices vertices, float density ) : System.Diagnostics

Initializes a new instance of the PolygonShape class.

PolygonShape ( float density ) : System.Diagnostics

Create a new PolygonShape with the specified density.

clone ( ) : Shape
computeAABB ( AABB &aabb, Transform &transform, int childIndex ) : void

Given a transform, compute the associated axis aligned bounding box for a child shape.

computeSubmergedArea ( Vector2 &normal, float offset, Transform &xf, Vector2 &sc ) : float
rayCast ( RayCastOutput &output, RayCastInput &input, Transform &transform, int childIndex ) : bool
setVerticesNoCopy ( Vertices verts ) : void

sets the vertices without copying over the data from verts to the local List.

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

보호된 메소드들

메소드 설명
computeProperties ( ) : void

비공개 메소드들

메소드 설명
PolygonShape ( ) : System.Diagnostics

메소드 상세

CompareTo() 공개 메소드

public CompareTo ( PolygonShape shape ) : bool
shape PolygonShape
리턴 bool

PolygonShape() 공개 메소드

Initializes a new instance of the PolygonShape class.
public PolygonShape ( Vertices vertices, float density ) : System.Diagnostics
vertices Vertices The vertices.
density float The density.
리턴 System.Diagnostics

PolygonShape() 공개 메소드

Create a new PolygonShape with the specified density.
public PolygonShape ( float density ) : System.Diagnostics
density float The density.
리턴 System.Diagnostics

clone() 공개 메소드

public clone ( ) : Shape
리턴 Shape

computeAABB() 공개 메소드

Given a transform, compute the associated axis aligned bounding box for a child shape.
public computeAABB ( AABB &aabb, Transform &transform, int childIndex ) : void
aabb AABB The aabb results.
transform Transform The world transform of the shape.
childIndex int The child shape index.
리턴 void

computeProperties() 보호된 메소드

protected computeProperties ( ) : void
리턴 void

computeSubmergedArea() 공개 메소드

public computeSubmergedArea ( Vector2 &normal, float offset, Transform &xf, Vector2 &sc ) : float
normal Microsoft.Xna.Framework.Vector2
offset float
xf Transform
sc Microsoft.Xna.Framework.Vector2
리턴 float

rayCast() 공개 메소드

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

setVerticesNoCopy() 공개 메소드

sets the vertices without copying over the data from verts to the local List.
public setVerticesNoCopy ( Vertices verts ) : void
verts Vertices Verts.
리턴 void

testPoint() 공개 메소드

public testPoint ( Transform &transform, Vector2 &point ) : bool
transform Transform
point Microsoft.Xna.Framework.Vector2
리턴 bool