math wrapper and convenience functions [詳細]
Static Public メソッド | |
| static float | Radians (float x) |
| convert from degrees to radians | |
| static float | Degrees (float x) |
| convert from radians to degrees | |
| static float | Sin (float x) |
| equivalent to (float)Math.Sin(x) | |
| static float | Cos (float x) |
| equivalent to (float)Math.Cos(x) | |
| static float | Tan (float x) |
| equivalent to (float)Math.Tan(x) | |
| static float | Asin (float x) |
| equivalent to (float)Math.Asin(x) | |
| static float | Acos (float x) |
| equivalent to (float)Math.Acos(x) | |
| static float | Atan (float x) |
| equivalent to (float)Math.Atan(x) | |
| static float | Atan2 (float x, float y) |
| equivalent to (float)Math.Atan2(x,y) | |
| static float | Sqrt (float x) |
| equivalent to (float)Math.Sqrt(x) | |
| static float | Pow (float x, float y) |
| equivalent to (float)Math.Pow(x,y) | |
| static float | Exp (float x) |
| equivalent to (float)Math.Exp(x) | |
| static float | Log (float x) |
| equivalent to (float)Math.Log(x) | |
| static float | Log10 (float x) |
| equivalent to (float)Math.Log10(x) | |
| static float | Abs (float x) |
| equivalent to Math.Abs(x) | |
| static int | Sign (float x) |
| equivalent to Math.Sign(x) | |
| static float | Min (float x, float y) |
| equivalent to Math.Min(x,y) | |
| static float | Max (float x, float y) |
| equivalent to Math.Max(x,y) | |
| static float | Floor (float x) |
| equivalent to (float)Math.Floor(x) | |
| static float | Ceiling (float x) |
| equivalent to (float)Math.Ceiling(x) | |
| static float | Round (float x) |
| equivalent to (float)Math.Round(x) | |
| static float | Truncate (float x) |
| equivalent to (float)Math.Truncate(x) | |
| static float | Clamp (float x, float min, float max) |
| clamp between two values | |
| static float | Repeat (float x, float min, float max) |
| repeat between two values | |
| static float | Mirror (float x, float min, float max) |
| repeat shuttlewise between two values | |
| static float | Lerp (float x1, float x2, float f) |
| lerp between two values | |
| static float | MoveTo (float x1, float x2, float amount) |
| move one value to another value by specified amount | |
| static float | Step (float edge, float x) |
| step function returning 0 or 1 | |
| static float | LinearStep (float min, float max, float x) |
| linear step function returning a value between 0 and 1 | |
| static float | SmoothStep (float min, float max, float x) |
| smooth step function returning a value between 0 and 1 | |
Public 変数 | |
| const float | E = (float)Math.E |
| E. | |
| const float | PI = (float)Math.PI |
| PI. | |
| const float | DegToRad = (float)( Math.PI / 180.0 ) |
| conversion ratio from degrees to radians | |
| const float | RadToDeg = (float)( 180.0 / Math.PI ) |
| conversion ratio from radians to degrees | |
math wrapper and convenience functions
| static float Abs | ( | float | x | ) | [static] |
equivalent to Math.Abs(x)
| x | the value to take the absolute value of |
| static float Acos | ( | float | x | ) | [static] |
equivalent to (float)Math.Acos(x)
| x | the value to take the acos of |
| static float Asin | ( | float | x | ) | [static] |
equivalent to (float)Math.Asin(x)
| x | the value to take the asin of |
| static float Atan | ( | float | x | ) | [static] |
equivalent to (float)Math.Atan(x)
| x | the value to take the atan of |
| static float Atan2 | ( | float | x, |
| float | y | ||
| ) | [static] |
equivalent to (float)Math.Atan2(x,y)
| x | the x coordinate to take the atan2 of |
| y | the y coordinate to take the atan2 of |
| static float Ceiling | ( | float | x | ) | [static] |
equivalent to (float)Math.Ceiling(x)
| x | the value to take the ceil of |
| static float Clamp | ( | float | x, |
| float | min, | ||
| float | max | ||
| ) | [static] |
clamp between two values
| x | the value to clamp |
| min | the min to clamp against |
| max | the max to clamp against |
| static float Cos | ( | float | x | ) | [static] |
equivalent to (float)Math.Cos(x)
| x | the value to take the cos of |
| static float Degrees | ( | float | x | ) | [static] |
convert from radians to degrees
| x | the value to convert |
| static float Exp | ( | float | x | ) | [static] |
equivalent to (float)Math.Exp(x)
| x | the value to take the exp of |
| static float Floor | ( | float | x | ) | [static] |
equivalent to (float)Math.Floor(x)
| x | the value to take the floor of |
| static float Lerp | ( | float | x1, |
| float | x2, | ||
| float | f | ||
| ) | [static] |
lerp between two values
| x1 | value 1 |
| x2 | value 2 |
| f | lerp amount |
| static float LinearStep | ( | float | min, |
| float | max, | ||
| float | x | ||
| ) | [static] |
linear step function returning a value between 0 and 1
| min | the min to be compared |
| max | the max to be compared |
| x | the value to be compared |
| static float Log | ( | float | x | ) | [static] |
equivalent to (float)Math.Log(x)
| x | the value to take the log of |
| static float Log10 | ( | float | x | ) | [static] |
equivalent to (float)Math.Log10(x)
| x | the value to take the log 10 of |
| static float Max | ( | float | x, |
| float | y | ||
| ) | [static] |
equivalent to Math.Max(x,y)
| x | first input to max |
| y | second input to max |
| static float Min | ( | float | x, |
| float | y | ||
| ) | [static] |
equivalent to Math.Min(x,y)
| x | first input to min |
| y | second input to min |
| static float Mirror | ( | float | x, |
| float | min, | ||
| float | max | ||
| ) | [static] |
repeat shuttlewise between two values
| x | the value to repeat |
| min | the min to repeat over |
| max | the max to repeat over |
| static float MoveTo | ( | float | x1, |
| float | x2, | ||
| float | amount | ||
| ) | [static] |
move one value to another value by specified amount
| x1 | value 1 |
| x2 | value 2 |
| amount | step amount |
| static float Pow | ( | float | x, |
| float | y | ||
| ) | [static] |
equivalent to (float)Math.Pow(x,y)
| x | the value to raise |
| y | the power to raise to |
| static float Radians | ( | float | x | ) | [static] |
convert from degrees to radians
| x | the value to convert |
| static float Repeat | ( | float | x, |
| float | min, | ||
| float | max | ||
| ) | [static] |
repeat between two values
| x | the value to repeat |
| min | the min to repeat over |
| max | the max to repeat over |
| static float Round | ( | float | x | ) | [static] |
equivalent to (float)Math.Round(x)
| x | the value to take the round of |
| static int Sign | ( | float | x | ) | [static] |
equivalent to Math.Sign(x)
| x | the value to take the sign of |
| static float Sin | ( | float | x | ) | [static] |
equivalent to (float)Math.Sin(x)
| x | the value to take the sin of |
| static float SmoothStep | ( | float | min, |
| float | max, | ||
| float | x | ||
| ) | [static] |
smooth step function returning a value between 0 and 1
| min | the min to be compared |
| max | the max to be compared |
| x | the value to be compared |
| static float Sqrt | ( | float | x | ) | [static] |
equivalent to (float)Math.Sqrt(x)
| x | the value to take the square root of |
| static float Step | ( | float | edge, |
| float | x | ||
| ) | [static] |
step function returning 0 or 1
| edge | the edge to be compared |
| x | the value to be compared |
| static float Tan | ( | float | x | ) | [static] |
equivalent to (float)Math.Tan(x)
| x | the value to take the tan of |
| static float Truncate | ( | float | x | ) | [static] |
equivalent to (float)Math.Truncate(x)
| x | the value to take the trunc of |
| const float DegToRad = (float)( Math.PI / 180.0 ) |
conversion ratio from degrees to radians
| const float E = (float)Math.E |
E.
| const float PI = (float)Math.PI |
PI.
| const float RadToDeg = (float)( 180.0 / Math.PI ) |
conversion ratio from radians to degrees