C# Class UnityEngine.Mathf

ファイルを表示 Open project: jbruening/UnEngine Class Usage Examples

Public Methods

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

public static Abs ( float f ) : float
f float
return float

Abs() public static method

public static Abs ( int value ) : int
value int
return int

Acos() public static method

public static Acos ( float f ) : float
f float
return float

Approximately() public static method

public static Approximately ( float a, float b ) : bool
a float
b float
return bool

Asin() public static method

public static Asin ( float f ) : float
f float
return float

Atan() public static method

public static Atan ( float f ) : float
f float
return float

Atan2() public static method

public static Atan2 ( float y, float x ) : float
y float
x float
return float

Ceil() public static method

public static Ceil ( float f ) : float
f float
return float

CeilToInt() public static method

public static CeilToInt ( float f ) : int
f float
return int

Clamp() public static method

public static Clamp ( float value, float min, float max ) : float
value float
min float
max float
return float

Clamp() public static method

public static Clamp ( int value, int min, int max ) : int
value int
min int
max int
return int

Clamp01() public static method

public static Clamp01 ( float value ) : float
value float
return float

Cos() public static method

public static Cos ( float f ) : float
f float
return float

DeltaAngle() public static method

public static DeltaAngle ( float current, float target ) : float
current float
target float
return float

Exp() public static method

public static Exp ( float power ) : float
power float
return float

Floor() public static method

public static Floor ( float f ) : float
f float
return float

FloorToInt() public static method

public static FloorToInt ( float f ) : int
f float
return int

Gamma() public static method

public static Gamma ( float value, float absmax, float gamma ) : float
value float
absmax float
gamma float
return float

InverseLerp() public static method

public static InverseLerp ( float from, float to, float value ) : float
from float
to float
value float
return float

Lerp() public static method

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

LerpAngle() public static method

public static LerpAngle ( float a, float b, float t ) : float
a float
b float
t float
return float

Log() public static method

public static Log ( float f ) : float
f float
return float

Log() public static method

public static Log ( float f, float p ) : float
f float
p float
return float

Log10() public static method

public static Log10 ( float f ) : float
f float
return float

Max() public static method

public static Max ( ) : float
return float

Max() public static method

public static Max ( float a, float b ) : float
a float
b float
return float

Max() public static method

public static Max ( ) : int
return int

Max() public static method

public static Max ( int a, int b ) : int
a int
b int
return int

Min() public static method

public static Min ( ) : float
return float

Min() public static method

public static Min ( float a, float b ) : float
a float
b float
return float

Min() public static method

public static Min ( ) : int
return int

Min() public static method

public static Min ( int a, int b ) : int
a int
b int
return int

MoveTowards() public static method

public static MoveTowards ( float current, float target, float maxDelta ) : float
current float
target float
maxDelta float
return float

MoveTowardsAngle() public static method

public static MoveTowardsAngle ( float current, float target, float maxDelta ) : float
current float
target float
maxDelta float
return float

PingPong() public static method

public static PingPong ( float t, float length ) : float
t float
length float
return float

Pow() public static method

public static Pow ( float f, float p ) : float
f float
p float
return float

Repeat() public static method

public static Repeat ( float t, float length ) : float
t float
length float
return float

Round() public static method

public static Round ( float f ) : float
f float
return float

RoundToInt() public static method

public static RoundToInt ( float f ) : int
f float
return int

Sign() public static method

public static Sign ( float f ) : float
f float
return float

Sin() public static method

public static Sin ( float f ) : float
f float
return float

SmoothDamp() public static method

public static SmoothDamp ( float current, float target, float &currentVelocity, float smoothTime ) : float
current float
target float
currentVelocity float
smoothTime float
return float

SmoothDamp() public static method

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

SmoothDamp() public static method

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

SmoothDampAngle() public static method

public static SmoothDampAngle ( float current, float target, float &currentVelocity, float smoothTime ) : float
current float
target float
currentVelocity float
smoothTime float
return float

SmoothDampAngle() public static method

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

SmoothDampAngle() public static method

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

SmoothStep() public static method

public static SmoothStep ( float from, float to, float t ) : float
from float
to float
t float
return float

Sqrt() public static method

public static Sqrt ( float f ) : float
f float
return float

Tan() public static method

public static Tan ( float f ) : float
f float
return float