Murl::Math Namespace Reference

Namespace containing mathematic related interfaces. More...

Classes

class  BigInteger
 An integer of variable capacity. More...
 
class  Box
 A box class describing the minimum and maximum coordinate of a 3d-box. More...
 
class  Cone
 A cone class describing a cone by its angle and length. More...
 
class  Cylinder
 A cylinder class describing a cylinder by its radius and length. More...
 
class  Easing
 The easing class implements the functions of the predefined IEnums::Interpolation curves. More...
 
class  Frustum
 A frustum describing 6 planes. More...
 
class  Limits
 The limit values class. More...
 
class  Matrix
 A 4x4 matrix class. More...
 
class  MinMax
 The minimum maximum values template class. More...
 
class  Plane
 A plane class describing the equation for a plane a*x + b*y + c*z + d = 0. More...
 
class  Quaternion
 A quaternion class. More...
 
class  Ray
 A ray class. More...
 
class  Rectangle
 A rectangle class with 2D coordinates. More...
 
class  Sphere
 A sphere class. More...
 
class  SplineBase
 A template base class for spline interpolations. More...
 
class  SplineBezier
 A template class to create a Bezier spline interpolation object. More...
 
class  SplineHermite
 A template class to create a Cubic Hermite spline interpolation (aka as Cardinal Spline / Catmull-Rom spline) object. More...
 
class  SplineKey
 A template class to create spline key objects for the spline interpolation classes. More...
 
class  StaticMatrix
 The static matrix class. More...
 
class  StaticVector
 The static vector class. More...
 
class  Vector
 A 4-component vector class. More...
 
class  VectorUninitialized
 A 4-component uninitialized vector class. More...
 

Typedefs

typedef SplineBase< Vector< Real > > SplineBaseVector
 Predefined SplineBase using a Vector data type. More...
 
typedef SharedPointer< SplineBaseVectorSplineBaseVectorPtr
 The SplineBaseVector shared pointer type. More...
 
typedef SplineBaseVector::Key SplineVectorKey
 Predefined SplineBaseKey using a Vector data type. More...
 
typedef SplineBase< ColorSplineBaseColor
 Predefined SplineBase using a Color data type. More...
 
typedef SharedPointer< SplineBaseColorSplineBaseColorPtr
 The SplineBaseColor shared pointer type. More...
 
typedef SplineBaseColor::Key SplineColorKey
 Predefined SplineBaseKey using a Color data type. More...
 
typedef SplineBase< RealSplineBaseReal
 Predefined SplineBase using a Real data type. More...
 
typedef SharedPointer< SplineBaseRealSplineBaseRealPtr
 The SplineBaseReal shared pointer type. More...
 
typedef SplineBaseReal::Key SplineRealKey
 Predefined SplineBaseKey using a Real data type. More...
 
typedef SplineBezier< Vector< Real > > SplineBezierVector
 Predefined SplineBezier using a Vector data type. More...
 
typedef SharedPointer< SplineBezierVectorSplineBezierVectorPtr
 The SplineBezierVector shared pointer type. More...
 
typedef SplineBezier< ColorSplineBezierColor
 Predefined SplineBezier using a Color data type. More...
 
typedef SharedPointer< SplineBezierColorSplineBezierColorPtr
 The SplineBezierColor shared pointer type. More...
 
typedef SplineBezier< RealSplineBezierReal
 Predefined SplineBezier using a Real data type. More...
 
typedef SharedPointer< SplineBezierRealSplineBezierRealPtr
 The SplineBezierReal shared pointer type. More...
 
typedef SplineHermite< Vector< Real > > SplineHermiteVector
 Predefined SplineHermite using a Vector data type. More...
 
typedef SharedPointer< SplineHermiteVectorSplineHermiteVectorPtr
 The SplineHermiteVector shared pointer type. More...
 
typedef SplineHermite< ColorSplineHermiteColor
 Predefined SplineHermite using a Color data type. More...
 
typedef SharedPointer< SplineHermiteColorSplineHermiteColorPtr
 The SplineHermiteColor shared pointer type. More...
 
typedef SplineHermite< RealSplineHermiteReal
 Predefined SplineHermite using a Real data type. More...
 
typedef SharedPointer< SplineHermiteRealSplineHermiteRealPtr
 The SplineHermiteReal shared pointer type. More...
 

Functions

template<class DataType >
DataType Abs (DataType value)
 Get the absolute value. More...
 
template<class DataType >
DataType Sgn (DataType value)
 Get the sign of a value. More...
 
template<class DataType >
const DataType & Min (const DataType &x, const DataType &y)
 Get the minimum of two values. More...
 
template<class DataType >
const DataType & Min (const DataType &x, const DataType &y, const DataType &z)
 Get the minimum of three values. More...
 
template<class DataType >
const DataType & Min (const DataType &x, const DataType &y, const DataType &z, const DataType &w)
 Get the minimum of four values. More...
 
template<class DataType >
const DataType & Max (const DataType &x, const DataType &y)
 Get the maximum of two values. More...
 
template<class DataType >
const DataType & Max (const DataType &x, const DataType &y, const DataType &z)
 Get the maximum of three values. More...
 
template<class DataType >
const DataType & Max (const DataType &x, const DataType &y, const DataType &z, const DataType &w)
 Get the maximum of four values. More...
 
template<class DataType >
const DataType & Clamp (const DataType &val, const DataType &min, const DataType &max)
 Clamp a value. More...
 
template<class DataType >
Bool IsNaN (DataType value)
 Check if a value is not a number (NaN). More...
 
template<class DataType >
Bool IsInfinite (DataType value)
 Check if a value is infinite (either positive infinity or negative infinity). More...
 
template<class DataType >
Bool IsFinite (DataType value)
 Check if a value is finite. More...
 
template<class DataType >
DataType Exp (DataType value)
 Get the the e number raised to the power of a value. More...
 
template<class DataType >
DataType Log (DataType value)
 Get the natural logarithm of a value. More...
 
template<class DataType >
DataType Log2 (DataType value)
 Get the base 2 logarithm of a value. More...
 
template<class DataType >
DataType Log10 (DataType value)
 Get the base 10 logarithm of a value. More...
 
template<class DataType >
DataType Sqrt (DataType value)
 Get the square root of a value. More...
 
template<class DataType >
DataType Pow (DataType base, DataType exponent)
 Get a base raised to the power of an exponent. More...
 
template<class DataType >
DataType Fmod (DataType numerator, DataType denominator)
 Get the remainder of a numerator divided by a denominator. More...
 
template<class DataType >
DataType ModF (DataType value, DataType &intPart)
 Get the integer part and the fractional part of a value. More...
 
template<class DataType >
DataType Remainder (DataType numerator, DataType denominator)
 Get the IEEE remainder of a numerator divided by a denominator. More...
 
template<class DataType >
DataType Sin (DataType radAngle)
 Get the sine of an angle value. More...
 
template<class DataType >
DataType Cos (DataType radAngle)
 Get the cosine of an angle value. More...
 
template<class DataType >
DataType Tan (DataType radAngle)
 Get the tangent of an angle value. More...
 
template<class DataType >
DataType ArcSin (DataType value)
 Get the arc sine of a value. More...
 
template<class DataType >
DataType ArcCos (DataType value)
 Get the arc cosine of a value. More...
 
template<class DataType >
DataType ArcTan (DataType value)
 Get the arc tangent of a value. More...
 
template<class DataType >
DataType ArcTan2 (DataType y, DataType x)
 Get the arc tangent of y divided by x. More...
 
template<class DataType >
DataType SinHyp (DataType value)
 Get the hyperbolic sine of an value. More...
 
template<class DataType >
DataType CosHyp (DataType value)
 Get the hyperbolic cosine of an value. More...
 
template<class DataType >
DataType TanHyp (DataType value)
 Get the hyperbolic tangent of an value. More...
 
template<class DataType >
DataType ArcSinHyp (DataType value)
 Get the hyperbolic arc sine of an value. More...
 
template<class DataType >
DataType ArcCosHyp (DataType value)
 Get the hyperbolic arc cosine of an value. More...
 
template<class DataType >
DataType ArcTanHyp (DataType value)
 Get the hyperbolic arc tangent of an value. More...
 
template<class DataType >
DataType Floor (DataType value)
 Round down to an integral value. More...
 
template<class DataType >
DataType Ceil (DataType value)
 Round up to an integral value. More...
 
template<class DataType >
DataType Round (DataType value)
 Round to an integral value, regardless of the rounding direction. More...
 
template<class DataType >
Bool IsEqual (const DataType &a, const DataType &b, const DataType &epsilon=Limits< DataType >::Epsilon())
 Check if two values are equal within an epsilon range. More...
 
template<class DataType >
DataType DegToRad (DataType degrees)
 Convert degrees into radiants. More...
 
template<class DataType >
DataType RadToDeg (DataType radiants)
 Convert radiants into degrees. More...
 
template<class DataType >
DataType MapAngle (DataType angle)
 Map an angle into range [-PI . More...
 
template<class DataType >
DataType AddAngle (DataType angle1, DataType angle2)
 Calculate the sum of two angles. More...
 
template<class DataType >
DataType SubAngle (DataType angle1, DataType angle2)
 Calculate the difference between two angles. More...
 
UInt16 FloatToHalfFloat (Float value)
 Convert a given 32bit float value to 16bit ("half float"), represented by a UInt16 integer. More...
 
UInt16 IntToHalfFloat (UInt8 value)
 Convert a given 8bit unsigned integer value to a 16bit floating point value ("half float"), represented by a UInt16 integer. More...
 
Float HalfFloatToFloat (UInt16 value)
 Convert a given 16bit half float value stored in a UInt16 to a 32bit float value. More...
 
UInt8 HalfFloatToInt (UInt16 value)
 Convert a given 16bit half float value stored in a UInt16 to a 8bit unsigned integer value. More...
 
template<class DataTypeV , class DataTypeT >
DataTypeV Lerp (const DataTypeV &startValue, const DataTypeV &endValue, DataTypeT t)
 The linear interpolation template function. More...
 
template<class DataTypeT >
Double Lerp (Double startValue, Double endValue, DataTypeT t)
 The linear interpolation template function for Double. More...
 
template<class DataType >
Easing< DataType >::Interpolate GetEasingFunction (IEnums::Interpolation interpolation)
 Get the Easing::Interpolate function for a specified interpolation. More...
 
template<class DataType >
DataType Interpolation (IEnums::Interpolation interpolation, DataType x)
 The interpolation template function calculates the IEnums::Interpolation curve (easing function). More...
 

Variables

const Double E
 Definition of e.
 
const Double PI
 Definition of pi.
 
const Double TWO_PI
 Definition of two pi.
 
const Double HALF_PI
 Definition of halve pi.
 
const Double INV_PI
 Definition of inverse pi.
 
const Double INV_TWO_PI
 Definition of inverse 2*pi.
 
const Double INV_HALF_PI
 Definition of inverse pi/2.
 
const Double DEG_TO_RAD
 Definition of degrees to radians factor.
 
const Double RAD_TO_DEG
 Definition of radians to degrees factor.
 
const Double MM_TO_CM
 Definition of millimeters to centimeters factor.
 
const Double CM_TO_MM
 Definition of centimeters to millimeters factor.
 
const Double MM_TO_INCHES
 Definition of millimeters to inches factor.
 
const Double CM_TO_INCHES
 Definition of centimeters to inches factor.
 
const Double INCHES_TO_MM
 Definition of inches to millimeters factor.
 
const Double INCHES_TO_CM
 Definition of inches to centimeters factor.
 

Detailed Description

Namespace containing mathematic related interfaces.


Copyright © 2011-2018 Spraylight GmbH.