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

GJK simplex used to support closest point tests with warmstarting.
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
A Microsoft.Xna.Framework.Vector3
B Microsoft.Xna.Framework.Vector3
C Microsoft.Xna.Framework.Vector3
D Microsoft.Xna.Framework.Vector3
DistanceConvergenceEpsilon float
LocalTransformB BEPUutilities.RigidTransform
ProgressionEpsilon float
SimplexA ContributingShapeSimplex
SimplexB ContributingShapeSimplex
State SimplexState
U float
V float
W float

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

Метод Описание
GetClosestPoints ( Microsoft.Xna.Framework.Vector3 &closestPointA, Microsoft.Xna.Framework.Vector3 &closestPointB ) : void

Gets the closest points by using the barycentric coordinates and shape simplex contributions.

GetNewSimplexPoint ( ConvexShape shapeA, ConvexShape shapeB, int iterationCount, Microsoft.Xna.Framework.Vector3 &closestPoint ) : bool

Adds a new point to 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 point on the segment closest to the origin.

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

Gets the point on the tetrahedron closest to the origin.

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

Gets the point on the triangle closest to the origin.

PairSimplex ( CachedSimplex &cachedSimplex, RigidTransform &localTransformB ) : BEPUphysics.CollisionShapes.ConvexShapes

Constructs a new pair simplex.

UpdateCachedSimplex ( CachedSimplex &simplex ) : void

Updates the cached simplex with the latest run's results.

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

Метод Описание
PairSimplex ( RigidTransform &localTransformB ) : BEPUphysics.CollisionShapes.ConvexShapes
TryTetrahedronTriangle ( Microsoft.Xna.Framework.Vector3 &A, Microsoft.Xna.Framework.Vector3 &B, Microsoft.Xna.Framework.Vector3 &C, Microsoft.Xna.Framework.Vector3 &A1, Microsoft.Xna.Framework.Vector3 &B1, Microsoft.Xna.Framework.Vector3 &C1, Microsoft.Xna.Framework.Vector3 &A2, Microsoft.Xna.Framework.Vector3 &B2, Microsoft.Xna.Framework.Vector3 &C2, float errorTolerance, Microsoft.Xna.Framework.Vector3 &otherPoint, PairSimplex &simplex, Microsoft.Xna.Framework.Vector3 &point ) : bool
VerifyContributions ( ) : void

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

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

Gets the closest points by using the barycentric coordinates and shape simplex contributions.
public GetClosestPoints ( Microsoft.Xna.Framework.Vector3 &closestPointA, Microsoft.Xna.Framework.Vector3 &closestPointB ) : void
closestPointA Microsoft.Xna.Framework.Vector3 Closest point on shape A.
closestPointB Microsoft.Xna.Framework.Vector3 Closest point on shape B.
Результат void

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

Adds a new point to the simplex.
public GetNewSimplexPoint ( ConvexShape shapeA, ConvexShape shapeB, int iterationCount, Microsoft.Xna.Framework.Vector3 &closestPoint ) : bool
shapeA BEPUphysics.CollisionShapes.ConvexShapes.ConvexShape First shape in the pair.
shapeB BEPUphysics.CollisionShapes.ConvexShapes.ConvexShape Second shape in the pair.
iterationCount int Current iteration count.
closestPoint Microsoft.Xna.Framework.Vector3 Current point on simplex closest to origin.
Результат bool

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

Gets the point on the simplex closest to the origin.
public GetPointClosestToOrigin ( Microsoft.Xna.Framework.Vector3 &point ) : bool
point Microsoft.Xna.Framework.Vector3 Point closest to the origin.
Результат bool

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

Gets the point on the segment closest to the origin.
public GetPointOnSegmentClosestToOrigin ( Microsoft.Xna.Framework.Vector3 &point ) : void
point Microsoft.Xna.Framework.Vector3 Point closest to origin.
Результат void

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

Gets the point on the tetrahedron closest to the origin.
public GetPointOnTetrahedronClosestToOrigin ( Microsoft.Xna.Framework.Vector3 &point ) : bool
point Microsoft.Xna.Framework.Vector3 Closest point to the origin.
Результат bool

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

Gets the point on the triangle closest to the origin.
public GetPointOnTriangleClosestToOrigin ( Microsoft.Xna.Framework.Vector3 &point ) : void
point Microsoft.Xna.Framework.Vector3 Point closest to origin.
Результат void

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

Constructs a new pair simplex.
public PairSimplex ( CachedSimplex &cachedSimplex, RigidTransform &localTransformB ) : BEPUphysics.CollisionShapes.ConvexShapes
cachedSimplex CachedSimplex Cached simplex to use to warmstart the simplex.
localTransformB BEPUutilities.RigidTransform Transform of shape B in the local space of A.
Результат BEPUphysics.CollisionShapes.ConvexShapes

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

Updates the cached simplex with the latest run's results.
public UpdateCachedSimplex ( CachedSimplex &simplex ) : void
simplex CachedSimplex Simplex to update.
Результат void

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

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

public Vector3,Microsoft.Xna.Framework A
Результат Microsoft.Xna.Framework.Vector3

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

public Vector3,Microsoft.Xna.Framework B
Результат Microsoft.Xna.Framework.Vector3

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

public Vector3,Microsoft.Xna.Framework C
Результат Microsoft.Xna.Framework.Vector3

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

public Vector3,Microsoft.Xna.Framework D
Результат Microsoft.Xna.Framework.Vector3

DistanceConvergenceEpsilon публичное статическое свойство

The baseline amount that an iteration must converge with its distance to avoid exiting. Defaults to 1e-7f.
public static float DistanceConvergenceEpsilon
Результат float

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

Transform of the second shape in the first shape's local space.
public RigidTransform,BEPUutilities LocalTransformB
Результат BEPUutilities.RigidTransform

ProgressionEpsilon публичное статическое свойство

The baseline amount that a GJK iteration must progress through to avoid exiting. Defaults to 1e-8f.
public static float ProgressionEpsilon
Результат float

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

Simplex as viewed from the local space of A.
public ContributingShapeSimplex,BEPUphysics.CollisionTests.CollisionAlgorithms.GJK SimplexA
Результат ContributingShapeSimplex

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

Simplex as viewed from the local space of B.
public ContributingShapeSimplex,BEPUphysics.CollisionTests.CollisionAlgorithms.GJK SimplexB
Результат ContributingShapeSimplex

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

public SimplexState State
Результат SimplexState

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

Weight of vertex A.
public float U
Результат float

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

Weight of vertex B.
public float V
Результат float

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

Weight of vertex C.
public float W
Результат float