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

GJK simplex supporting ray-based tests.
파일 보기 프로젝트 열기: Indiefreaks/igf 1 사용 예제들

공개 프로퍼티들

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