C# Class Box2D.Collision.Distance.Simplex

Mostrar archivo Open project: gerich-home/box2dnet

Public Properties

Property Type Description
Count int
Vertices SimplexVertex[]

Private Properties

Property Type Description

Public Methods

Method 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 method

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

GetSearchDirection() public method

public GetSearchDirection ( Vec2 result ) : void
result Box2D.Common.Vec2
return void

GetWitnessPoints() public method

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

ReadCache() public method

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
return void

Simplex() public method

public Simplex ( ) : System
return System

Solve2() public method

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

Solve3() public method

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
return void

WriteCache() public method

public WriteCache ( SimplexCache cache ) : void
cache SimplexCache
return void

Property Details

Count public_oe property

public int Count
return int

Vertices public_oe property

public SimplexVertex[] Vertices
return SimplexVertex[]