Blender V5.3
node_math.h File Reference
#include "vector2.h"
#include "vector4.h"

Go to the source code of this file.

Macros

#define vector3   point

Functions

float safe_divide (float a, float b)
vector safe_divide (vector a, vector b)
float safe_modulo (float a, float b)
float safe_floored_modulo (float a, float b)
float sqr (float a)
float endvalue_preserving_mix (float a, float b, float t)
vector2 endvalue_preserving_mix (vector2 a, vector2 b, float t)
vector2 endvalue_preserving_mix (vector2 a, vector2 b, vector2 t)
vector3 endvalue_preserving_mix (vector3 a, vector3 b, float t)
vector3 endvalue_preserving_mix (vector3 a, vector3 b, vector3 t)
vector4 endvalue_preserving_mix (vector4 a, vector4 b, float t)
vector4 endvalue_preserving_mix (vector4 a, vector4 b, vector4 t)
vector2 round (vector2 a)
vector4 round (vector4 a)
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)
float average (point a)

Macro Definition Documentation

◆ vector3

#define vector3   point

Definition at line 8 of file node_math.h.

Function Documentation

◆ average()

float average ( point a)

Definition at line 194 of file node_math.h.

References average().

◆ compatible_faceforward()

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

Definition at line 168 of file node_math.h.

References compatible_faceforward(), and dot().

Referenced by compatible_faceforward().

◆ endvalue_preserving_mix() [1/7]

float endvalue_preserving_mix ( float a,
float b,
float t )

Definition at line 52 of file node_math.h.

References b, endvalue_preserving_mix(), and mix.

◆ endvalue_preserving_mix() [2/7]

vector2 endvalue_preserving_mix ( vector2 a,
vector2 b,
float t )

Definition at line 57 of file node_math.h.

References b, and endvalue_preserving_mix().

◆ endvalue_preserving_mix() [3/7]

vector2 endvalue_preserving_mix ( vector2 a,
vector2 b,
vector2 t )

Definition at line 62 of file node_math.h.

References b, and endvalue_preserving_mix().

◆ endvalue_preserving_mix() [4/7]

vector3 endvalue_preserving_mix ( vector3 a,
vector3 b,
float t )

Definition at line 67 of file node_math.h.

References b, endvalue_preserving_mix(), mix, and vector3.

◆ endvalue_preserving_mix() [5/7]

vector3 endvalue_preserving_mix ( vector3 a,
vector3 b,
vector3 t )

Definition at line 72 of file node_math.h.

References b, endvalue_preserving_mix(), mix, and vector3.

◆ endvalue_preserving_mix() [6/7]

vector4 endvalue_preserving_mix ( vector4 a,
vector4 b,
float t )

Definition at line 77 of file node_math.h.

References b, and endvalue_preserving_mix().

◆ endvalue_preserving_mix() [7/7]

vector4 endvalue_preserving_mix ( vector4 a,
vector4 b,
vector4 t )

Definition at line 82 of file node_math.h.

References b, and endvalue_preserving_mix().

◆ euler_to_mat()

matrix euler_to_mat ( point euler)

Definition at line 173 of file node_math.h.

References cos, euler_to_mat(), and sin.

Referenced by euler_to_mat().

◆ fract()

float fract ( float a)

Definition at line 109 of file node_math.h.

References floor, and fract().

◆ pingpong()

float pingpong ( float a,
float b )

Definition at line 126 of file node_math.h.

References abs, b, fract(), and pingpong().

Referenced by pingpong().

◆ project()

vector project ( vector v,
vector v_proj )

Definition at line 141 of file node_math.h.

References dot(), and project().

Referenced by project(), project(), project(), project(), svm_vector_math(), and btWheelInfo::updateWheel().

◆ round() [1/2]

vector2 round ( vector2 a)

Definition at line 99 of file node_math.h.

References floor, and round.

◆ round() [2/2]

vector4 round ( vector4 a)

Definition at line 104 of file node_math.h.

References floor, and round.

◆ safe_divide() [1/2]

float safe_divide ( float a,
float b )

Definition at line 10 of file node_math.h.

References b, and safe_divide().

◆ safe_divide() [2/2]

vector safe_divide ( vector a,
vector b )

Definition at line 15 of file node_math.h.

References b, and safe_divide().

◆ safe_floored_modulo()

float safe_floored_modulo ( float a,
float b )

Definition at line 27 of file node_math.h.

References b, floor, and safe_floored_modulo().

Referenced by safe_floored_modulo(), safe_floored_modulo(), and svm_math().

◆ safe_log()

float safe_log ( float a,
float b )

Definition at line 136 of file node_math.h.

References b, log, and safe_log().

Referenced by safe_log(), safe_log(), and safe_pow().

◆ safe_modulo()

float safe_modulo ( float a,
float b )

Definition at line 22 of file node_math.h.

References b, fmod(), and safe_modulo().

Referenced by safe_modulo(), safe_modulo(), and svm_math().

◆ safe_sqrt()

float safe_sqrt ( float a)

Definition at line 131 of file node_math.h.

References safe_sqrt(), and sqrt.

◆ smoothmin()

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

Definition at line 115 of file node_math.h.

References abs, b, max, min, and smoothmin().

Referenced by smoothmin().

◆ snap()

◆ sqr()

float sqr ( float a)

Definition at line 32 of file node_math.h.

References sqr.

◆ wrap() [1/2]

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

Definition at line 153 of file node_math.h.

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

◆ wrap() [2/2]

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

Definition at line 159 of file node_math.h.

References max, min, and wrap().