C# Class Box2D.Collision.Distance.Simplex

Afficher le fichier Open project: gerich-home/box2dnet

Méthodes publiques

Свойство Type Description
Count int
Vertices SimplexVertex[]

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
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

Method Details

GetClosestPoint() public méthode

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

GetSearchDirection() public méthode

public GetSearchDirection ( Vec2 result ) : void
result Box2D.Common.Vec2
Résultat void

GetWitnessPoints() public méthode

public GetWitnessPoints ( Vec2 pA, Vec2 pB ) : void
pA Box2D.Common.Vec2
pB Box2D.Common.Vec2
Résultat void

ReadCache() public méthode

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
Résultat void

Simplex() public méthode

public Simplex ( ) : System
Résultat System

Solve2() public méthode

Solve a line segment using barycentric coordinates.
public Solve2 ( ) : void
Résultat void

Solve3() public méthode

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
Résultat void

WriteCache() public méthode

public WriteCache ( SimplexCache cache ) : void
cache SimplexCache
Résultat void

Property Details

Count public_oe property

public int Count
Résultat int

Vertices public_oe property

public SimplexVertex[] Vertices
Résultat SimplexVertex[]