Table of Contents

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

Vector2

_localPoint

The local point

[ThreadStatic]
private static Vector2 _localPoint

Field Value

Vector2

_proxyA

The proxy

[ThreadStatic]
private static DistanceProxy _proxyA

Field Value

DistanceProxy

_proxyB

The proxy

[ThreadStatic]
private static DistanceProxy _proxyB

Field Value

DistanceProxy

_sweepA

The sweep

[ThreadStatic]
private static Sweep _sweepA

Field Value

Sweep

_sweepB

The sweep

[ThreadStatic]
private static Sweep _sweepB

Field Value

Sweep

_type

The type

[ThreadStatic]
private static SeparationFunctionType _type

Field Value

SeparationFunctionType

Methods

Evaluate(int, int, float)

Evaluates the index a

public static float Evaluate(int indexA, int indexB, float t)

Parameters

indexA int

The index

indexB int

The index

t float

The

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

indexA int

The index

indexB int

The index

t float

The

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