namespace sys.core
class Math
A collection of math related functions.
static func Sin(value: Double): Double;
static func Sin(value: Float) : Float;
Returns the sine of a value.
value | the value |
---|
the sine
static func Cos(value: Double): Double;
static func Cos(value: Float) : Float;
Returns the cosine of a value.
value | the value |
---|
the cosine
static func Tan(value: Double): Double;
static func Tan(value: Float) : Float;
Returns the tangent of a value.
value | the value |
---|
the tangent
static func Asin(value: Double): Double;
static func Asin(value: Float) : Float;
Returns the arcsine of a value.
value | the value |
---|
the arcsine
static func Acos(value: Double): Double;
static func Acos(value: Float) : Float;
Returns the arccosine of a value.
value | the value |
---|
the arccossine
static func Atan(value: Double): Double;
static func Atan(value: Float) : Float;
Returns the arctangent of a value.
value | the value |
---|
the arctangent
static func Sinh(value: Double): Double;
static func Sinh(value: Float) : Float;
Returns the hyperbolic sine of a value.
value | the value |
---|
the hyperbolic sine
static func Cosh(value: Double): Double;
static func Cosh(value: Float) : Float;
Returns the hyperbolic cosine of a value.
value | the value |
---|
the hyperbolic cosine
static func Tanh(value: Double): Double;
static func Tanh(value: Float) : Float;
Returns the hyperbolic tangent of a value.
value | the value |
---|
the hyperbolic tangent
static func Asinh(value: Double): Double;
static func Asinh(value: Float) : Float;
Returns the hyperbolic arcsine of a value.
value | the value |
---|
the hyperbolic arcsine
static func Acosh(value: Double): Double;
static func Acosh(value: Float) : Float;
Returns the hyperbolic arccosine of a value.
value | the value |
---|
the hyperbolic arccosine
static func Atanh(value: Double): Double;
static func Atanh(value: Float) : Float;
Returns the hyperbolic tangent of a value.
value | the value |
---|
the hyperbolic tangent
static func Pow(base: Double, exponent: Double): Double;
Raises a base to an exponent.
base | the base |
---|---|
exponent | the power to raise to |
the resulting value
static func Sqrt(value: Double): Double;
static func Sqrt(value: Float) : Float;
Returns the square root of a number.
value | the value |
---|
the square root
static func Log(value: Double): Double;
static func Log(value: Float) : Float;
Returns the natural logarithm of a value.
value | the value |
---|
the logarithm
static func Log2(value: Double): Double;
static func Log2(value: Float) : Float;
Returns the base 2 logarithm of a value.
value | the value |
---|
the logarithm
static func Log10(value: Double): Double;
static func Log10(value: Float) : Float;
Returns the base 10 logarithm of a value.
value | the value |
---|
the logarithm
static func Rol8(value: Int, bits: DWord): Byte;
static func Rol8(value: DWord, bits: DWord): Byte;
Performs a bitwise left rotate on a 8 bit value.
value | the value |
---|---|
bits | the rotate amount |
the rotation result
static func Ror8(value: Int, bits: DWord): Byte;
static func Ror8(value: DWord, bits: DWord): Byte;
Performs a bitwise right rotate on a 8 bit value.
value | the value |
---|---|
bits | the rotate amount |
the rotation result
static func Rol16(value: Int, bits: DWord): Word;
static func Rol16(value: DWord, bits: DWord): Word;
Performs a bitwise left rotate on a 16 bit value.
value | the value |
---|---|
bits | the rotate amount |
the rotation result
static func Ror16(value: Int, bits: DWord): Word;
static func Ror16(value: DWord, bits: DWord): Word;
Performs a bitwise right rotate on a 16 bit value.
value | the value |
---|---|
bits | the rotate amount |
the rotation result
static func Rol32(value: Int, bits: DWord): DWord;
static func Rol32(value: DWord, bits: DWord): DWord;
Performs a bitwise left rotate on a 32 bit value.
value | the value |
---|---|
bits | the rotate amount |
the rotation result
static func Ror32(value: Int, bits: DWord): DWord;
static func Ror32(value: DWord, bits: DWord): DWord;
Performs a bitwise right rotate on a 32 bit value.
value | the value |
---|---|
bits | the rotate amount |
the rotation result
static func Rol64(value: Long, bits: DWord): QWord;
static func Rol64(value: QWord, bits: DWord): QWord;
Performs a bitwise left rotate on a 64 bit value.
value | the value |
---|---|
bits | the rotate amount |
the rotation result
static func Ror64(value: Long, bits: DWord): QWord;
static func Ror64(value: QWord, bits: DWord): QWord;
Performs a bitwise right rotate on a 64 bit value.
value | the value |
---|---|
bits | the rotate amount |
the rotation result