C# 클래스 BEPUphysics.CollisionTests.CollisionAlgorithms.GJK.PairSimplex

GJK simplex used to support closest point tests with warmstarting.
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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