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

GJK simplex supporting ray-based 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, Microsoft.Xna.Framework.Vector3 &hitLocation, RaySimplex &shiftedSimplex ) : void

Adds a new point to the simplex.

GetErrorTolerance ( Microsoft.Xna.Framework.Vector3 &rayOrigin ) : float

Gets the error tolerance for the simplex.

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

Gets the point on the simplex that is closest to the origin.

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

Finds the point on the segment to the origin.

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

Gets the point closest to the origin on the tetrahedron.

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

Gets the point on the triangle that is closest 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 &simplexA, Microsoft.Xna.Framework.Vector3 &simplexB, Microsoft.Xna.Framework.Vector3 &simplexC, Microsoft.Xna.Framework.Vector3 &otherPoint, RaySimplex &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, Microsoft.Xna.Framework.Vector3 &hitLocation, RaySimplex &shiftedSimplex ) : void
point Microsoft.Xna.Framework.Vector3 Point to add.
hitLocation Microsoft.Xna.Framework.Vector3 Current ray hit location.
shiftedSimplex RaySimplex Simplex shifted with the hit location.
return void

GetErrorTolerance() public method

Gets the error tolerance for the simplex.
public GetErrorTolerance ( Microsoft.Xna.Framework.Vector3 &rayOrigin ) : float
rayOrigin Microsoft.Xna.Framework.Vector3 Origin of the ray.
return float

GetPointClosestToOrigin() public method

Gets the point on the simplex that is closest to the origin.
public GetPointClosestToOrigin ( RaySimplex &simplex, Microsoft.Xna.Framework.Vector3 &point ) : bool
simplex RaySimplex Simplex to test.
point Microsoft.Xna.Framework.Vector3 Closest point on the simplex.
return bool

GetPointOnSegmentClosestToOrigin() public method

Finds the point on the segment to the origin.
public GetPointOnSegmentClosestToOrigin ( RaySimplex &simplex, Microsoft.Xna.Framework.Vector3 &point ) : void
simplex RaySimplex Simplex to test.
point Microsoft.Xna.Framework.Vector3 Closest point.
return void

GetPointOnTetrahedronClosestToOrigin() public method

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

GetPointOnTriangleClosestToOrigin() public method

Gets the point on the triangle that is closest to the origin.
public GetPointOnTriangleClosestToOrigin ( RaySimplex &simplex, Microsoft.Xna.Framework.Vector3 &point ) : void
simplex RaySimplex Simplex to test.
point Microsoft.Xna.Framework.Vector3 Closest point to origin.
return void

Property Details

A public_oe property

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

B public_oe property

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

C public_oe property

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

D public_oe property

Fourth vertex in 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