C# 클래스 Box2D.Collision.Distance.Simplex

파일 보기 프로젝트 열기: gerich-home/box2dnet

공개 프로퍼티들

프로퍼티 타입 설명
Count int
Vertices SimplexVertex[]

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
GetClosestPoint ( Vec2 result ) : void

this returns pooled objects. don't keep or modify them

GetSearchDirection ( Vec2 result ) : void
GetWitnessPoints ( Vec2 pA, Vec2 pB ) : void
ReadCache ( SimplexCache cache, DistanceProxy proxyA, Transform transformA, DistanceProxy proxyB, Transform transformB ) : void
Simplex ( ) : System
Solve2 ( ) : void

Solve a line segment using barycentric coordinates.

Solve3 ( ) : void

Solve a line segment using barycentric coordinates.
Possible regions:
- points[2]
- edge points[0]-points[2]
- edge points[1]-points[2]
- inside the triangle

WriteCache ( SimplexCache cache ) : void

메소드 상세

GetClosestPoint() 공개 메소드

this returns pooled objects. don't keep or modify them
public GetClosestPoint ( Vec2 result ) : void
result Box2D.Common.Vec2
리턴 void

GetSearchDirection() 공개 메소드

public GetSearchDirection ( Vec2 result ) : void
result Box2D.Common.Vec2
리턴 void

GetWitnessPoints() 공개 메소드

public GetWitnessPoints ( Vec2 pA, Vec2 pB ) : void
pA Box2D.Common.Vec2
pB Box2D.Common.Vec2
리턴 void

ReadCache() 공개 메소드

public ReadCache ( SimplexCache cache, DistanceProxy proxyA, Transform transformA, DistanceProxy proxyB, Transform transformB ) : void
cache SimplexCache
proxyA DistanceProxy
transformA Box2D.Common.Transform
proxyB DistanceProxy
transformB Box2D.Common.Transform
리턴 void

Simplex() 공개 메소드

public Simplex ( ) : System
리턴 System

Solve2() 공개 메소드

Solve a line segment using barycentric coordinates.
public Solve2 ( ) : void
리턴 void

Solve3() 공개 메소드

Solve a line segment using barycentric coordinates.
Possible regions:
- points[2]
- edge points[0]-points[2]
- edge points[1]-points[2]
- inside the triangle
public Solve3 ( ) : void
리턴 void

WriteCache() 공개 메소드

public WriteCache ( SimplexCache cache ) : void
cache SimplexCache
리턴 void

프로퍼티 상세

Count 공개적으로 프로퍼티

public int Count
리턴 int

Vertices 공개적으로 프로퍼티

public SimplexVertex[] Vertices
리턴 SimplexVertex[]