c4d_tools.h File Reference

Classes

class  LMinMax
 
class  SMinMax
 
class  Random
 

Macros

#define COLORTOINT_MULTIPLIER
 
#define PERCENT
 
#define THIRD
 
#define SIXTH
 
#define MAXRANGE
 
#define MAXELEMENTS
 
#define MIN_EPSILON
 

Typedefs

typedef LMinMax MinMax
 

Functions

Float32 StepEx (Float32 a, Float32 x)
 
Float64 StepEx (Float64 a, Float64 x)
 
Float32 Boxstep (Float32 a, Float32 b, Float32 x)
 
Float64 Boxstep (Float64 a, Float64 b, Float64 x)
 
Float32 Smoothstep (Float32 a, Float32 b, Float32 x)
 
Float64 Smoothstep (Float64 a, Float64 b, Float64 x)
 
Float32 Modulo (Float32 a, Float32 b)
 
Float64 Modulo (Float64 a, Float64 b)
 
Int32 LModulo (Int32 a, Int32 b)
 
Int64 LModulo (Int64 a, Int64 b)
 
Float32 Bias (Float32 b, Float32 x)
 
Float64 Bias (Float64 b, Float64 x)
 
Float32 Truncate (Float32 x)
 
Float64 Truncate (Float64 x)
 
Matrix MatrixMove (const Vector &t)
 
Matrix MatrixScale (const Vector &s)
 
Matrix MatrixRotX (Float w)
 
Matrix MatrixRotY (Float w)
 
Matrix MatrixRotZ (Float w)
 
Vector MatrixToHPB (const Matrix &m, ROTATIONORDER rot_order)
 
Vector VectorToHPB (const Vector &p)
 
Matrix HPBToMatrix (const Vector &hpb, ROTATIONORDER rot_order)
 
void MatrixToRotAxis (const Matrix &m, Vector *v, Float *w)
 
Matrix RotAxisToMatrix (const Vector &v, Float w)
 
Matrix RebuildMatrix (const Matrix &m)
 
Vector GetOptimalAngle (const Vector &hpb_old, const Vector &hpb_new, ROTATIONORDER order)
 
Vector PointLineDistance (const Vector &p0, const Vector &v, const Vector &p)
 
Vector64 ReflectRay (const Vector64 &v, const Vector64 &n)
 
Vector RGBToHSV (const Vector &col)
 
Vector HSVToRGB (const Vector &col)
 
Vector RGBToHSL (const Vector &col)
 
Vector HSLtoRGB (const Vector &col)
 
Bool IsMatrixRectangular (const Matrix &m)
 
Bool IsMatrixNormed (const Matrix &m)
 

Macro Definition Documentation

◆ COLORTOINT_MULTIPLIER

#define COLORTOINT_MULTIPLIER

Constant to convert from vectors color components to integers.

◆ PERCENT

#define PERCENT

Constant to convert from 0-1 range to percentage.

◆ THIRD

#define THIRD

Constant to calculate the third of a value.

◆ SIXTH

#define SIXTH

Constant to calculate the sixth of a value.

◆ MAXRANGE

#define MAXRANGE

Maximum value for metric data.

◆ MAXELEMENTS

#define MAXELEMENTS

Maximum number of points.

◆ MIN_EPSILON

#define MIN_EPSILON

Minimum epsilon value.