C# Класс BEPUphysics.CollisionTests.CollisionAlgorithms.GJK.RaySimplex

GJK simplex supporting ray-based tests.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
A Microsoft.Xna.Framework.Vector3
B Microsoft.Xna.Framework.Vector3
C Microsoft.Xna.Framework.Vector3
D Microsoft.Xna.Framework.Vector3
State SimplexState

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

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

Приватные методы

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

Описание методов

AddNewSimplexPoint() публичный Метод

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.
Результат void

GetErrorTolerance() публичный Метод

Gets the error tolerance for the simplex.
public GetErrorTolerance ( Microsoft.Xna.Framework.Vector3 &rayOrigin ) : float
rayOrigin Microsoft.Xna.Framework.Vector3 Origin of the ray.
Результат float

GetPointClosestToOrigin() публичный Метод

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.
Результат bool

GetPointOnSegmentClosestToOrigin() публичный Метод

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.
Результат void

GetPointOnTetrahedronClosestToOrigin() публичный Метод

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.
Результат bool

GetPointOnTriangleClosestToOrigin() публичный Метод

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.
Результат void

Описание свойств

A публичное свойство

First vertex in the simplex.
public Vector3,Microsoft.Xna.Framework A
Результат Microsoft.Xna.Framework.Vector3

B публичное свойство

Second vertex in the simplex.
public Vector3,Microsoft.Xna.Framework B
Результат Microsoft.Xna.Framework.Vector3

C публичное свойство

Third vertex in the simplex.
public Vector3,Microsoft.Xna.Framework C
Результат Microsoft.Xna.Framework.Vector3

D публичное свойство

Fourth vertex in the simplex.
public Vector3,Microsoft.Xna.Framework D
Результат Microsoft.Xna.Framework.Vector3

State публичное свойство

Current state of the simplex.
public SimplexState State
Результат SimplexState