C# Class UEx.MathX

Most of these are speedups of builtin Lerps, as well as a bunch of extra lerp options
Afficher le fichier Open project: jbruening/unity3d-extensions Class Usage Examples

Méthodes publiques

Méthode Description
Approx ( float val, float about, float range ) : bool
Approximately ( this a, float other ) : bool

is this float approximately other

Approximately ( this x, float other, float delta ) : bool

is this float within range of other

Berp ( float start, float end, float value ) : float
Bounce ( float x ) : float
Clerp ( float start, float end, float value ) : float
ConvertSeconds ( int time ) : string
Coserp ( float start, float end, float value ) : float
FastInvSqrt ( float x ) : float
FastSqrt ( float x ) : float
GaussFalloff ( float distance, float inRadius ) : float
Hermite ( float start, float end, float value ) : float
InverseLerp ( float from, float to, float value ) : float
InverseLerpUnclamped ( float from, float to, float value ) : float
Lerp ( float from, float to, float value ) : float
LerpUnclamped ( float from, float to, float value ) : float
Sinerp ( float start, float end, float value ) : float
SmoothStep ( float from, float to, float value ) : float
SmoothStepUnclamped ( float from, float to, float value ) : float
SuperLerp ( float from, float to, float from2, float to2, float value ) : float
SuperLerpUnclamped ( float from, float to, float from2, float to2, float value ) : float

Method Details

Approx() public static méthode

public static Approx ( float val, float about, float range ) : bool
val float
about float
range float
Résultat bool

Approximately() public static méthode

is this float approximately other
public static Approximately ( this a, float other ) : bool
a this
other float
Résultat bool

Approximately() public static méthode

is this float within range of other
public static Approximately ( this x, float other, float delta ) : bool
x this
other float
delta float
Résultat bool

Berp() public static méthode

public static Berp ( float start, float end, float value ) : float
start float
end float
value float
Résultat float

Bounce() public static méthode

public static Bounce ( float x ) : float
x float
Résultat float

Clerp() public static méthode

public static Clerp ( float start, float end, float value ) : float
start float
end float
value float
Résultat float

ConvertSeconds() public static méthode

public static ConvertSeconds ( int time ) : string
time int
Résultat string

Coserp() public static méthode

public static Coserp ( float start, float end, float value ) : float
start float
end float
value float
Résultat float

FastInvSqrt() public static méthode

public static FastInvSqrt ( float x ) : float
x float
Résultat float

FastSqrt() public static méthode

public static FastSqrt ( float x ) : float
x float
Résultat float

GaussFalloff() public static méthode

public static GaussFalloff ( float distance, float inRadius ) : float
distance float
inRadius float
Résultat float

Hermite() public static méthode

public static Hermite ( float start, float end, float value ) : float
start float
end float
value float
Résultat float

InverseLerp() public static méthode

public static InverseLerp ( float from, float to, float value ) : float
from float
to float
value float
Résultat float

InverseLerpUnclamped() public static méthode

public static InverseLerpUnclamped ( float from, float to, float value ) : float
from float
to float
value float
Résultat float

Lerp() public static méthode

public static Lerp ( float from, float to, float value ) : float
from float
to float
value float
Résultat float

LerpUnclamped() public static méthode

public static LerpUnclamped ( float from, float to, float value ) : float
from float
to float
value float
Résultat float

Sinerp() public static méthode

public static Sinerp ( float start, float end, float value ) : float
start float
end float
value float
Résultat float

SmoothStep() public static méthode

public static SmoothStep ( float from, float to, float value ) : float
from float
to float
value float
Résultat float

SmoothStepUnclamped() public static méthode

public static SmoothStepUnclamped ( float from, float to, float value ) : float
from float
to float
value float
Résultat float

SuperLerp() public static méthode

public static SuperLerp ( float from, float to, float from2, float to2, float value ) : float
from float
to float
from2 float
to2 float
value float
Résultat float

SuperLerpUnclamped() public static méthode

public static SuperLerpUnclamped ( float from, float to, float from2, float to2, float value ) : float
from float
to float
from2 float
to2 float
value float
Résultat float