Blender  V3.3
Functions
node_math.h File Reference

Go to the source code of this file.

Functions

float safe_divide (float a, float b)
 
vector safe_divide (vector a, vector b)
 
float safe_modulo (float a, float b)
 
float fract (float a)
 
float smoothmin (float a, float b, float c)
 
float pingpong (float a, float b)
 
float safe_sqrt (float a)
 
float safe_log (float a, float b)
 
vector project (vector v, vector v_proj)
 
vector snap (vector a, vector b)
 
float wrap (float value, float max, float min)
 
point wrap (point value, point max, point min)
 
point compatible_faceforward (point vec, point incident, point reference)
 
matrix euler_to_mat (point euler)
 

Function Documentation

◆ compatible_faceforward()

point compatible_faceforward ( point  vec,
point  incident,
point  reference 
)

Definition at line 80 of file node_math.h.

References blender::math::dot().

◆ euler_to_mat()

matrix euler_to_mat ( point  euler)

Definition at line 85 of file node_math.h.

References KDL::cos(), KDL::sin(), sx, and sy.

◆ fract()

float fract ( float  a)

◆ pingpong()

float pingpong ( float  a,
float  b 
)

Definition at line 38 of file node_math.h.

References Freestyle::a, blender::math::abs(), usdtokens::b(), and fract().

◆ project()

vector project ( vector  v,
vector  v_proj 
)

Definition at line 53 of file node_math.h.

References blender::math::dot(), v, and vector.

◆ safe_divide() [1/2]

float safe_divide ( float  a,
float  b 
)

Definition at line 4 of file node_math.h.

References Freestyle::a, and usdtokens::b().

Referenced by snap().

◆ safe_divide() [2/2]

vector safe_divide ( vector  a,
vector  b 
)

Definition at line 9 of file node_math.h.

References Freestyle::a, usdtokens::b(), and vector.

◆ safe_log()

float safe_log ( float  a,
float  b 
)

Definition at line 48 of file node_math.h.

References Freestyle::a, usdtokens::b(), and log().

◆ safe_modulo()

float safe_modulo ( float  a,
float  b 
)

Definition at line 16 of file node_math.h.

References Freestyle::a, and usdtokens::b().

Referenced by svm_math(), and svm_vector_math().

◆ safe_sqrt()

float safe_sqrt ( float  a)

Definition at line 43 of file node_math.h.

References Freestyle::a, and sqrt().

◆ smoothmin()

float smoothmin ( float  a,
float  b,
float  c 
)

Definition at line 27 of file node_math.h.

References Freestyle::a, blender::math::abs(), usdtokens::b(), Freestyle::c, max, and min.

◆ snap()

vector snap ( vector  a,
vector  b 
)

◆ wrap() [1/2]

float wrap ( float  value,
float  max,
float  min 
)

Definition at line 65 of file node_math.h.

References blender::math::floor(), max, and min.

Referenced by wrap().

◆ wrap() [2/2]

point wrap ( point  value,
point  max,
point  min 
)

Definition at line 71 of file node_math.h.

References max, min, point, and wrap().