C# Class FarseerPhysics.Collision.Shapes.PolygonShape

Represents a simple non-selfintersecting convex polygon. Create a convex hull from the given array of points.
Inheritance: Shape
Afficher le fichier Open project: prime31/Nez Class Usage Examples

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
computeProperties ( ) : void

Private Methods

Méthode Description
PolygonShape ( ) : System.Diagnostics

Method Details

CompareTo() public méthode

public CompareTo ( PolygonShape shape ) : bool
shape PolygonShape
Résultat bool

PolygonShape() public méthode

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

PolygonShape() public méthode

Create a new PolygonShape with the specified density.
public PolygonShape ( float density ) : System.Diagnostics
density float The density.
Résultat System.Diagnostics

clone() public méthode

public clone ( ) : Shape
Résultat Shape

computeAABB() public méthode

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.
Résultat void

computeProperties() protected méthode

protected computeProperties ( ) : void
Résultat void

computeSubmergedArea() public méthode

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
Résultat float

rayCast() public méthode

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

setVerticesNoCopy() public méthode

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

testPoint() public méthode

public testPoint ( Transform &transform, Vector2 &point ) : bool
transform Transform
point Microsoft.Xna.Framework.Vector2
Résultat bool