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

GJK simplex supporting boolean intersection 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 ) : 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.

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

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

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

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

Adds a new point to the simplex.
public AddNewSimplexPoint ( Microsoft.Xna.Framework.Vector3 &point ) : void
point Microsoft.Xna.Framework.Vector3 Point to add.
Результат void

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

Gets the error tolerance of the simplex.
public GetErrorTolerance ( ) : float
Результат float

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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