C# Class UnityEngine.Mathf

Afficher le fichier Open project: jbruening/UnEngine Class Usage Examples

Méthodes publiques

Méthode Description
Abs ( float f ) : float

Abs ( int value ) : int

Acos ( float f ) : float

Approximately ( float a, float b ) : bool

Asin ( float f ) : float

Atan ( float f ) : float

Atan2 ( float y, float x ) : float

Ceil ( float f ) : float

CeilToInt ( float f ) : int

Clamp ( float value, float min, float max ) : float

Clamp ( int value, int min, int max ) : int

Clamp01 ( float value ) : float

Cos ( float f ) : float

DeltaAngle ( float current, float target ) : float

Exp ( float power ) : float

Floor ( float f ) : float

FloorToInt ( float f ) : int

Gamma ( float value, float absmax, float gamma ) : float

InverseLerp ( float from, float to, float value ) : float

Lerp ( float from, float to, float t ) : float

faster than unity's lerp

LerpAngle ( float a, float b, float t ) : float

Log ( float f ) : float

Log ( float f, float p ) : float

Log10 ( float f ) : float

Max ( ) : float

Max ( float a, float b ) : float

Max ( ) : int

Max ( int a, int b ) : int

Min ( ) : float

Min ( float a, float b ) : float

Min ( ) : int

Min ( int a, int b ) : int

MoveTowards ( float current, float target, float maxDelta ) : float

MoveTowardsAngle ( float current, float target, float maxDelta ) : float

PingPong ( float t, float length ) : float

Pow ( float f, float p ) : float

Repeat ( float t, float length ) : float

Round ( float f ) : float

RoundToInt ( float f ) : int

Sign ( float f ) : float

Sin ( float f ) : float

SmoothDamp ( float current, float target, float &currentVelocity, float smoothTime ) : float

SmoothDamp ( float current, float target, float &currentVelocity, float smoothTime, float maxSpeed ) : float

SmoothDamp ( float current, float target, float &currentVelocity, float smoothTime, float maxSpeed, float deltaTime ) : float

SmoothDampAngle ( float current, float target, float &currentVelocity, float smoothTime ) : float

SmoothDampAngle ( float current, float target, float &currentVelocity, float smoothTime, float maxSpeed ) : float

SmoothDampAngle ( float current, float target, float &currentVelocity, float smoothTime, float maxSpeed, float deltaTime ) : float

SmoothStep ( float from, float to, float t ) : float

Sqrt ( float f ) : float

Tan ( float f ) : float

Method Details

Abs() public static méthode

public static Abs ( float f ) : float
f float
Résultat float

Abs() public static méthode

public static Abs ( int value ) : int
value int
Résultat int

Acos() public static méthode

public static Acos ( float f ) : float
f float
Résultat float

Approximately() public static méthode

public static Approximately ( float a, float b ) : bool
a float
b float
Résultat bool

Asin() public static méthode

public static Asin ( float f ) : float
f float
Résultat float

Atan() public static méthode

public static Atan ( float f ) : float
f float
Résultat float

Atan2() public static méthode

public static Atan2 ( float y, float x ) : float
y float
x float
Résultat float

Ceil() public static méthode

public static Ceil ( float f ) : float
f float
Résultat float

CeilToInt() public static méthode

public static CeilToInt ( float f ) : int
f float
Résultat int

Clamp() public static méthode

public static Clamp ( float value, float min, float max ) : float
value float
min float
max float
Résultat float

Clamp() public static méthode

public static Clamp ( int value, int min, int max ) : int
value int
min int
max int
Résultat int

Clamp01() public static méthode

public static Clamp01 ( float value ) : float
value float
Résultat float

Cos() public static méthode

public static Cos ( float f ) : float
f float
Résultat float

DeltaAngle() public static méthode

public static DeltaAngle ( float current, float target ) : float
current float
target float
Résultat float

Exp() public static méthode

public static Exp ( float power ) : float
power float
Résultat float

Floor() public static méthode

public static Floor ( float f ) : float
f float
Résultat float

FloorToInt() public static méthode

public static FloorToInt ( float f ) : int
f float
Résultat int

Gamma() public static méthode

public static Gamma ( float value, float absmax, float gamma ) : float
value float
absmax float
gamma 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

Lerp() public static méthode

faster than unity's lerp
public static Lerp ( float from, float to, float t ) : float
from float
to float
t float
Résultat float

LerpAngle() public static méthode

public static LerpAngle ( float a, float b, float t ) : float
a float
b float
t float
Résultat float

Log() public static méthode

public static Log ( float f ) : float
f float
Résultat float

Log() public static méthode

public static Log ( float f, float p ) : float
f float
p float
Résultat float

Log10() public static méthode

public static Log10 ( float f ) : float
f float
Résultat float

Max() public static méthode

public static Max ( ) : float
Résultat float

Max() public static méthode

public static Max ( float a, float b ) : float
a float
b float
Résultat float

Max() public static méthode

public static Max ( ) : int
Résultat int

Max() public static méthode

public static Max ( int a, int b ) : int
a int
b int
Résultat int

Min() public static méthode

public static Min ( ) : float
Résultat float

Min() public static méthode

public static Min ( float a, float b ) : float
a float
b float
Résultat float

Min() public static méthode

public static Min ( ) : int
Résultat int

Min() public static méthode

public static Min ( int a, int b ) : int
a int
b int
Résultat int

MoveTowards() public static méthode

public static MoveTowards ( float current, float target, float maxDelta ) : float
current float
target float
maxDelta float
Résultat float

MoveTowardsAngle() public static méthode

public static MoveTowardsAngle ( float current, float target, float maxDelta ) : float
current float
target float
maxDelta float
Résultat float

PingPong() public static méthode

public static PingPong ( float t, float length ) : float
t float
length float
Résultat float

Pow() public static méthode

public static Pow ( float f, float p ) : float
f float
p float
Résultat float

Repeat() public static méthode

public static Repeat ( float t, float length ) : float
t float
length float
Résultat float

Round() public static méthode

public static Round ( float f ) : float
f float
Résultat float

RoundToInt() public static méthode

public static RoundToInt ( float f ) : int
f float
Résultat int

Sign() public static méthode

public static Sign ( float f ) : float
f float
Résultat float

Sin() public static méthode

public static Sin ( float f ) : float
f float
Résultat float

SmoothDamp() public static méthode

public static SmoothDamp ( float current, float target, float &currentVelocity, float smoothTime ) : float
current float
target float
currentVelocity float
smoothTime float
Résultat float

SmoothDamp() public static méthode

public static SmoothDamp ( float current, float target, float &currentVelocity, float smoothTime, float maxSpeed ) : float
current float
target float
currentVelocity float
smoothTime float
maxSpeed float
Résultat float

SmoothDamp() public static méthode

public static SmoothDamp ( float current, float target, float &currentVelocity, float smoothTime, float maxSpeed, float deltaTime ) : float
current float
target float
currentVelocity float
smoothTime float
maxSpeed float
deltaTime float
Résultat float

SmoothDampAngle() public static méthode

public static SmoothDampAngle ( float current, float target, float &currentVelocity, float smoothTime ) : float
current float
target float
currentVelocity float
smoothTime float
Résultat float

SmoothDampAngle() public static méthode

public static SmoothDampAngle ( float current, float target, float &currentVelocity, float smoothTime, float maxSpeed ) : float
current float
target float
currentVelocity float
smoothTime float
maxSpeed float
Résultat float

SmoothDampAngle() public static méthode

public static SmoothDampAngle ( float current, float target, float &currentVelocity, float smoothTime, float maxSpeed, float deltaTime ) : float
current float
target float
currentVelocity float
smoothTime float
maxSpeed float
deltaTime float
Résultat float

SmoothStep() public static méthode

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

Sqrt() public static méthode

public static Sqrt ( float f ) : float
f float
Résultat float

Tan() public static méthode

public static Tan ( float f ) : float
f float
Résultat float