C# Class BEPUphysics.CollisionTests.CollisionAlgorithms.GJK.SimpleSimplex

GJK simplex supporting boolean intersection tests.
Datei anzeigen Open project: Indiefreaks/igf Class Usage Examples

Public Properties

Property Type Description
A Microsoft.Xna.Framework.Vector3
B Microsoft.Xna.Framework.Vector3
C Microsoft.Xna.Framework.Vector3
D Microsoft.Xna.Framework.Vector3
State SimplexState

Public Methods

Method Description
AddNewSimplexPoint ( Microsoft.Xna.Framework.Vector3 &point ) : void

Adds a new point to the simplex.

GetErrorTolerance ( ) : float

Gets the error tolerance of the simplex.

GetPointClosestToOrigin ( Microsoft.Xna.Framework.Vector3 &point ) : bool

Gets the point on the simplex closest to the origin.

GetPointOnSegmentClosestToOrigin ( Microsoft.Xna.Framework.Vector3 &point ) : void

Gets the closest point on the segment to the origin.

GetPointOnTetrahedronClosestToOrigin ( Microsoft.Xna.Framework.Vector3 &point ) : bool

Gets the closest point on the tetrahedron to the origin.

GetPointOnTriangleClosestToOrigin ( Microsoft.Xna.Framework.Vector3 &point ) : void

Gets the closest point on the triangle to the origin.

Private Methods

Method Description
TryTetrahedronTriangle ( Microsoft.Xna.Framework.Vector3 &A, Microsoft.Xna.Framework.Vector3 &B, Microsoft.Xna.Framework.Vector3 &C, Microsoft.Xna.Framework.Vector3 &otherPoint, SimpleSimplex &simplex, Microsoft.Xna.Framework.Vector3 &point ) : bool

Method Details

AddNewSimplexPoint() public method

Adds a new point to the simplex.
public AddNewSimplexPoint ( Microsoft.Xna.Framework.Vector3 &point ) : void
point Microsoft.Xna.Framework.Vector3 Point to add.
return void

GetErrorTolerance() public method

Gets the error tolerance of the simplex.
public GetErrorTolerance ( ) : float
return float

GetPointClosestToOrigin() public method

Gets the point on the simplex closest to the origin.
public GetPointClosestToOrigin ( Microsoft.Xna.Framework.Vector3 &point ) : bool
point Microsoft.Xna.Framework.Vector3 Closest point to the origin.
return bool

GetPointOnSegmentClosestToOrigin() public method

Gets the closest point on the segment to the origin.
public GetPointOnSegmentClosestToOrigin ( Microsoft.Xna.Framework.Vector3 &point ) : void
point Microsoft.Xna.Framework.Vector3 Closest point.
return void

GetPointOnTetrahedronClosestToOrigin() public method

Gets the closest point on the tetrahedron to the origin.
public GetPointOnTetrahedronClosestToOrigin ( Microsoft.Xna.Framework.Vector3 &point ) : bool
point Microsoft.Xna.Framework.Vector3 Closest point.
return bool

GetPointOnTriangleClosestToOrigin() public method

Gets the closest point on the triangle to the origin.
public GetPointOnTriangleClosestToOrigin ( Microsoft.Xna.Framework.Vector3 &point ) : void
point Microsoft.Xna.Framework.Vector3 Closest point.
return void

Property Details

A public_oe property

First vertex of the simplex.
public Vector3,Microsoft.Xna.Framework A
return Microsoft.Xna.Framework.Vector3

B public_oe property

Second vertex of the simplex.
public Vector3,Microsoft.Xna.Framework B
return Microsoft.Xna.Framework.Vector3

C public_oe property

Third vertex of the simplex.
public Vector3,Microsoft.Xna.Framework C
return Microsoft.Xna.Framework.Vector3

D public_oe property

Fourth vertex of the simplex.
public Vector3,Microsoft.Xna.Framework D
return Microsoft.Xna.Framework.Vector3

State public_oe property

Current state of the simplex.
public SimplexState State
return SimplexState