Class Mathf
Inheritance
System.Object
Mathf
Assembly: Sylves.dll
Syntax
public static class Mathf : Object
Properties
PI
Declaration
public static float PI { get; }
Property Value
Type |
Description |
System.Single |
|
Methods
Abs(Single)
Declaration
public static float Abs(float v)
Parameters
Type |
Name |
Description |
System.Single |
v |
|
Returns
Type |
Description |
System.Single |
|
Acos(Single)
Declaration
public static float Acos(float x)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
Returns
Type |
Description |
System.Single |
|
Asin(Single)
Declaration
public static float Asin(float x)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
Returns
Type |
Description |
System.Single |
|
Atan(Single)
Declaration
public static float Atan(float x)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
Returns
Type |
Description |
System.Single |
|
Atan2(Single, Single)
Declaration
public static float Atan2(float y, float x)
Parameters
Type |
Name |
Description |
System.Single |
y |
|
System.Single |
x |
|
Returns
Type |
Description |
System.Single |
|
CeilToInt(Single)
Declaration
public static int CeilToInt(float x)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
Returns
Type |
Description |
System.Int32 |
|
Clamp(Single, Single, Single)
Declaration
public static float Clamp(float value, float min, float max)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
System.Single |
min |
|
System.Single |
max |
|
Returns
Type |
Description |
System.Single |
|
Clamp01(Single)
Declaration
public static float Clamp01(float value)
Parameters
Type |
Name |
Description |
System.Single |
value |
|
Returns
Type |
Description |
System.Single |
|
Cos(Single)
Declaration
public static float Cos(float x)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
Returns
Type |
Description |
System.Single |
|
FloorToInt(Single)
Declaration
public static int FloorToInt(float x)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
Returns
Type |
Description |
System.Int32 |
|
Max(Single, Single)
Declaration
public static float Max(float v1, float v2)
Parameters
Type |
Name |
Description |
System.Single |
v1 |
|
System.Single |
v2 |
|
Returns
Type |
Description |
System.Single |
|
Max(Single, Single, Single)
Declaration
public static float Max(float v1, float v2, float v3)
Parameters
Type |
Name |
Description |
System.Single |
v1 |
|
System.Single |
v2 |
|
System.Single |
v3 |
|
Returns
Type |
Description |
System.Single |
|
Min(Single, Single)
Declaration
public static float Min(float v1, float v2)
Parameters
Type |
Name |
Description |
System.Single |
v1 |
|
System.Single |
v2 |
|
Returns
Type |
Description |
System.Single |
|
Min(Single, Single, Single)
Declaration
public static float Min(float v1, float v2, float v3)
Parameters
Type |
Name |
Description |
System.Single |
v1 |
|
System.Single |
v2 |
|
System.Single |
v3 |
|
Returns
Type |
Description |
System.Single |
|
RoundToInt(Single)
Declaration
public static int RoundToInt(float x)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
Returns
Type |
Description |
System.Int32 |
|
Sin(Single)
Declaration
public static float Sin(float x)
Parameters
Type |
Name |
Description |
System.Single |
x |
|
Returns
Type |
Description |
System.Single |
|
Sqrt(Single)
Declaration
public static float Sqrt(float v)
Parameters
Type |
Name |
Description |
System.Single |
v |
|
Returns
Type |
Description |
System.Single |
|