C# Class Afterglow.Math.Functions

Contains common mathematical functions.
Mostra file Open project: Christof/afterglow

Public Methods

Method Description
Abs ( float value ) : float

Returns the absolute value for the given one.

Acos ( float number ) : float

Calculates the angle whose cosine is the given number.

Asin ( float number ) : float

Calculates the angle whose sine is the given number.

Atan ( float number ) : float

Calculates the angle whose tangent is the specified number.

CoTan ( float angle ) : float

Co-Tangens function (cos / sin).

Cos ( float angle ) : float

Returns the cosine of the given angle.

Pow ( float baseValue, float exponent ) : float

Returns base raised to exponent.

Sin ( float angle ) : float

Returns the sine of the given angle.

Sqrt ( float x ) : float

Returns the square root of a specified number.

Tan ( float angle ) : float

Returns the tangent of the given angle.

Method Details

Abs() public static method

Returns the absolute value for the given one.
public static Abs ( float value ) : float
value float The value.
return float

Acos() public static method

Calculates the angle whose cosine is the given number.
public static Acos ( float number ) : float
number float A number representing a cosine, where -1 ≤ number ≤ 1.
return float

Asin() public static method

Calculates the angle whose sine is the given number.
public static Asin ( float number ) : float
number float A number representing a sine, where -1 ≤ number ≤ 1.
return float

Atan() public static method

Calculates the angle whose tangent is the specified number.
public static Atan ( float number ) : float
number float A number representing a tangent.
return float

CoTan() public static method

Co-Tangens function (cos / sin).
public static CoTan ( float angle ) : float
angle float An angle, measured in radians.
return float

Cos() public static method

Returns the cosine of the given angle.
public static Cos ( float angle ) : float
angle float An angle, measured in radians.
return float

Pow() public static method

Returns base raised to exponent.
public static Pow ( float baseValue, float exponent ) : float
baseValue float The base value.
exponent float The exponent value.
return float

Sin() public static method

Returns the sine of the given angle.
public static Sin ( float angle ) : float
angle float An angle, measured in radians.
return float

Sqrt() public static method

Returns the square root of a specified number.
public static Sqrt ( float x ) : float
x float The number.
return float

Tan() public static method

Returns the tangent of the given angle.
public static Tan ( float angle ) : float
angle float An angle, measured in radians.
return float