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

GJK simplex supporting ray-based tests.
Afficher le fichier Open project: Indiefreaks/igf Class Usage Examples

Méthodes publiques

Свойство Type Description
A Microsoft.Xna.Framework.Vector3
B Microsoft.Xna.Framework.Vector3
C Microsoft.Xna.Framework.Vector3
D Microsoft.Xna.Framework.Vector3
State SimplexState

Méthodes publiques

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

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

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

GetErrorTolerance() public méthode

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

GetPointClosestToOrigin() public méthode

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

GetPointOnSegmentClosestToOrigin() public méthode

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

GetPointOnTetrahedronClosestToOrigin() public méthode

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

GetPointOnTriangleClosestToOrigin() public méthode

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

Property Details

A public_oe property

First vertex in the simplex.
public Vector3,Microsoft.Xna.Framework A
Résultat Microsoft.Xna.Framework.Vector3

B public_oe property

Second vertex in the simplex.
public Vector3,Microsoft.Xna.Framework B
Résultat Microsoft.Xna.Framework.Vector3

C public_oe property

Third vertex in the simplex.
public Vector3,Microsoft.Xna.Framework C
Résultat Microsoft.Xna.Framework.Vector3

D public_oe property

Fourth vertex in the simplex.
public Vector3,Microsoft.Xna.Framework D
Résultat Microsoft.Xna.Framework.Vector3

State public_oe property

Current state of the simplex.
public SimplexState State
Résultat SimplexState