Class SeparationFunction
- Namespace
- Alis.Core.Physic.Collision
- Assembly
- Alis.dll
The separation function class
public static class SeparationFunction
Inheritance
Inherited Members
Fields
_axis
The axis
[ThreadStatic]
private static Vector2 _axis
Field Value
_localPoint
The local point
[ThreadStatic]
private static Vector2 _localPoint
Field Value
_proxyA
The proxy
[ThreadStatic]
private static DistanceProxy _proxyA
Field Value
_proxyB
The proxy
[ThreadStatic]
private static DistanceProxy _proxyB
Field Value
_sweepA
The sweep
[ThreadStatic]
private static Sweep _sweepA
Field Value
_sweepB
The sweep
[ThreadStatic]
private static Sweep _sweepB
Field Value
_type
The type
[ThreadStatic]
private static SeparationFunctionType _type
Field Value
Methods
Evaluate(int, int, float)
Evaluates the index a
public static float Evaluate(int indexA, int indexB, float t)
Parameters
Returns
- float
-
The float
FindMinSeparation(out int, out int, float)
Finds the min separation using the specified index a
public static float FindMinSeparation(out int indexA, out int indexB, float t)
Parameters
Returns
- float
-
The float
Set(ref SimplexCache, ref DistanceProxy, ref Sweep, ref DistanceProxy, ref Sweep, float)
Sets the cache
public static void Set(ref SimplexCache cache, ref DistanceProxy proxyA, ref Sweep sweepA, ref DistanceProxy proxyB, ref Sweep sweepB, float t1)
Parameters
cache
SimplexCache-
The cache
proxyA
DistanceProxy-
The proxy
sweepA
Sweep-
The sweep
proxyB
DistanceProxy-
The proxy
sweepB
Sweep-
The sweep
t1
float-
The