C# Класс FarseerPhysics.Collision.Shapes.PolygonShape

Represents a simple non-selfintersecting convex polygon. Create a convex hull from the given array of points.
Наследование: Shape
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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