ManiaScript  2019-10-10
The script language used in ManiaPlanet gaming system
Functions
MathLib Namespace Reference

Functions

Integer Abs (Integer Argument1)
 
Real Abs (Real Argument1)
 
Real ToReal (Integer Argument1)
 
Real Sin (Real Argument1)
 
Real Cos (Real Argument1)
 
Real Tan (Real Argument1)
 
Real Atan2 (Real Argument1, Real Argument2)
 
Real Exp (Real Argument1)
 
Real Rand (Real Argument1, Real Argument2)
 
Real Rand (Real Argument1, Real Argument2, Integer Argument3)
 
Integer Rand (Integer Argument1, Integer Argument2)
 
Integer Rand (Integer Argument1, Integer Argument2, Integer Argument3)
 
Real NearestReal (Integer Argument1)
 
Integer NearestInteger (Real Argument1)
 
Integer FloorInteger (Real Argument1)
 
Integer TruncInteger (Real Argument1)
 
Integer CeilingInteger (Real Argument1)
 
Real Distance (Real Argument1, Real Argument2)
 
Real Distance (Vec2 Argument1, Vec2 Argument2)
 
Real Distance (Vec3 Argument1, Vec3 Argument2)
 
Real DotProduct (Vec3 Argument1, Vec3 Argument2)
 
Vec3 CrossProduct (Vec3 Argument1, Vec3 Argument2)
 
Real Angle (Vec3 Argument1, Vec3 Argument2)
 
Real OrientedAngle (Vec3 Argument1, Vec3 Argument2)
 
Real Angle (Real _Radian1, Real _Radian2)
 Returns the smallest angle from A to B. More...
 
Real Angle (Vec2 Argument1, Vec2 Argument2)
 
Real OrientedAngle (Vec2 Argument1, Vec2 Argument2)
 
Real PI ()
 
Real Asin (Real Argument1)
 
Real Acos (Real Argument1)
 
Real Pow (Real Argument1, Real Argument2)
 
Real Ln (Real Argument1)
 
Real Sqrt (Real Argument1)
 
Integer Max (Integer _A, Integer _B)
 Returns the maximum between A and B. More...
 
Integer Min (Integer _A, Integer _B)
 Returns the minimum between A and B. More...
 
Integer Clamp (Integer _X, Integer _Min, Integer _Max)
 Returns the value X clamped to the range Min..Max. More...
 
Real Max (Real _A, Real _B)
 Returns the maximum between A and B. More...
 
Real Min (Real _A, Real _B)
 Returns the minimum between A and B. More...
 
Real Clamp (Real _X, Real _Min, Real _Max)
 Returns the value X clamped to the range Min..Max. More...
 
Real Mod (Real _X, Real _Min, Real _Max)
 Returns the modulus of X in the range Min..Max. More...
 

Function Documentation

◆ Abs() [1/2]

Integer MathLib::Abs ( Integer  Argument1)

◆ Abs() [2/2]

Real MathLib::Abs ( Real  Argument1)

◆ Acos()

Real MathLib::Acos ( Real  Argument1)

◆ Angle() [1/3]

Real MathLib::Angle ( Vec3  Argument1,
Vec3  Argument2 
)

◆ Angle() [2/3]

Real MathLib::Angle ( Real  _Radian1,
Real  _Radian2 
)

Returns the smallest angle from A to B.

◆ Angle() [3/3]

Real MathLib::Angle ( Vec2  Argument1,
Vec2  Argument2 
)

◆ Asin()

Real MathLib::Asin ( Real  Argument1)

◆ Atan2()

Real MathLib::Atan2 ( Real  Argument1,
Real  Argument2 
)

◆ CeilingInteger()

Integer MathLib::CeilingInteger ( Real  Argument1)

◆ Clamp() [1/2]

Integer MathLib::Clamp ( Integer  _X,
Integer  _Min,
Integer  _Max 
)

Returns the value X clamped to the range Min..Max.

◆ Clamp() [2/2]

Real MathLib::Clamp ( Real  _X,
Real  _Min,
Real  _Max 
)

Returns the value X clamped to the range Min..Max.

◆ Cos()

Real MathLib::Cos ( Real  Argument1)

◆ CrossProduct()

Vec3 MathLib::CrossProduct ( Vec3  Argument1,
Vec3  Argument2 
)

◆ Distance() [1/3]

Real MathLib::Distance ( Real  Argument1,
Real  Argument2 
)

◆ Distance() [2/3]

Real MathLib::Distance ( Vec2  Argument1,
Vec2  Argument2 
)

◆ Distance() [3/3]

Real MathLib::Distance ( Vec3  Argument1,
Vec3  Argument2 
)

◆ DotProduct()

Real MathLib::DotProduct ( Vec3  Argument1,
Vec3  Argument2 
)

◆ Exp()

Real MathLib::Exp ( Real  Argument1)

◆ FloorInteger()

Integer MathLib::FloorInteger ( Real  Argument1)

◆ Ln()

Real MathLib::Ln ( Real  Argument1)

◆ Max() [1/2]

Integer MathLib::Max ( Integer  _A,
Integer  _B 
)

Returns the maximum between A and B.

◆ Max() [2/2]

Real MathLib::Max ( Real  _A,
Real  _B 
)

Returns the maximum between A and B.

◆ Min() [1/2]

Integer MathLib::Min ( Integer  _A,
Integer  _B 
)

Returns the minimum between A and B.

◆ Min() [2/2]

Real MathLib::Min ( Real  _A,
Real  _B 
)

Returns the minimum between A and B.

◆ Mod()

Real MathLib::Mod ( Real  _X,
Real  _Min,
Real  _Max 
)

Returns the modulus of X in the range Min..Max.

◆ NearestInteger()

Integer MathLib::NearestInteger ( Real  Argument1)

◆ NearestReal()

Real MathLib::NearestReal ( Integer  Argument1)

◆ OrientedAngle() [1/2]

Real MathLib::OrientedAngle ( Vec3  Argument1,
Vec3  Argument2 
)

◆ OrientedAngle() [2/2]

Real MathLib::OrientedAngle ( Vec2  Argument1,
Vec2  Argument2 
)

◆ PI()

Real MathLib::PI ( )

◆ Pow()

Real MathLib::Pow ( Real  Argument1,
Real  Argument2 
)

◆ Rand() [1/4]

Real MathLib::Rand ( Real  Argument1,
Real  Argument2 
)

◆ Rand() [2/4]

Real MathLib::Rand ( Real  Argument1,
Real  Argument2,
Integer  Argument3 
)

◆ Rand() [3/4]

Integer MathLib::Rand ( Integer  Argument1,
Integer  Argument2 
)

◆ Rand() [4/4]

Integer MathLib::Rand ( Integer  Argument1,
Integer  Argument2,
Integer  Argument3 
)

◆ Sin()

Real MathLib::Sin ( Real  Argument1)

◆ Sqrt()

Real MathLib::Sqrt ( Real  Argument1)

◆ Tan()

Real MathLib::Tan ( Real  Argument1)

◆ ToReal()

Real MathLib::ToReal ( Integer  Argument1)

◆ TruncInteger()

Integer MathLib::TruncInteger ( Real  Argument1)