Blender V4.3
BLI_math_vector.h File Reference

Go to the source code of this file.

Functions

Init
MINLINE void zero_v2 (float r[2])
 
MINLINE void zero_v3 (float r[3])
 
MINLINE void zero_v4 (float r[4])
 
MINLINE void copy_v2_v2 (float r[2], const float a[2])
 
MINLINE void copy_v3_v3 (float r[3], const float a[3])
 
MINLINE void copy_v4_v4 (float r[4], const float a[4])
 
MINLINE void copy_v2_fl (float r[2], float f)
 
MINLINE void copy_v3_fl (float r[3], float f)
 
MINLINE void copy_v4_fl (float r[4], float f)
 
MINLINE void swap_v2_v2 (float a[2], float b[2])
 
MINLINE void swap_v3_v3 (float a[3], float b[3])
 
MINLINE void swap_v4_v4 (float a[4], float b[4])
 
MINLINE void copy_v2_v2_uchar (unsigned char r[2], const unsigned char a[2])
 
MINLINE void copy_v3_v3_uchar (unsigned char r[3], const unsigned char a[3])
 
MINLINE void copy_v4_v4_uchar (unsigned char r[4], const unsigned char a[4])
 
MINLINE void copy_v2_uchar (unsigned char r[2], unsigned char a)
 
MINLINE void copy_v3_uchar (unsigned char r[3], unsigned char a)
 
MINLINE void copy_v4_uchar (unsigned char r[4], unsigned char a)
 
MINLINE void copy_v2_v2_char (char r[2], const char a[2])
 
MINLINE void copy_v3_v3_char (char r[3], const char a[3])
 
MINLINE void copy_v4_v4_char (char r[4], const char a[4])
 
MINLINE void copy_v2_v2_short (short r[2], const short a[2])
 
MINLINE void copy_v3_v3_short (short r[3], const short a[3])
 
MINLINE void copy_v4_v4_short (short r[4], const short a[4])
 
MINLINE void zero_v3_int (int r[3])
 
MINLINE void copy_v2_v2_int (int r[2], const int a[2])
 
MINLINE void copy_v3_v3_int (int r[3], const int a[3])
 
MINLINE void copy_v4_v4_int (int r[4], const int a[4])
 
MINLINE void zero_v3_db (double r[3])
 
MINLINE void copy_v2_v2_db (double r[2], const double a[2])
 
MINLINE void copy_v3_v3_db (double r[3], const double a[3])
 
MINLINE void copy_v4_v4_db (double r[4], const double a[4])
 
MINLINE void copy_v3fl_v3s (float r[3], const short a[3])
 
MINLINE void copy_v2fl_v2i (float r[2], const int a[2])
 
MINLINE void round_v2i_v2fl (int r[2], const float a[2])
 
MINLINE void copy_v2fl_v2db (float r[2], const double a[2])
 
MINLINE void copy_v3fl_v3db (float r[3], const double a[3])
 
MINLINE void copy_v4fl_v4db (float r[4], const double a[4])
 
MINLINE void copy_v2db_v2fl (double r[2], const float a[2])
 
MINLINE void copy_v3db_v3fl (double r[3], const float a[3])
 
MINLINE void copy_v4db_v4fl (double r[4], const float a[4])
 
MINLINE void copy_v2_fl2 (float v[2], float x, float y)
 
MINLINE void copy_v3_fl3 (float v[3], float x, float y, float z)
 
MINLINE void copy_v4_fl4 (float v[4], float x, float y, float z, float w)
 
Arithmetic
MINLINE void add_v2_fl (float r[2], float f)
 
MINLINE void add_v3_fl (float r[3], float f)
 
MINLINE void add_v4_fl (float r[4], float f)
 
MINLINE void add_v2_v2 (float r[2], const float a[2])
 
MINLINE void add_v2_v2_db (double r[2], const double a[2])
 
MINLINE void add_v2_v2v2 (float r[2], const float a[2], const float b[2])
 
MINLINE void add_v2_v2_int (int r[2], const int a[2])
 
MINLINE void add_v2_v2v2_int (int r[2], const int a[2], const int b[2])
 
MINLINE void add_v3_v3 (float r[3], const float a[3])
 
MINLINE void add_v3_v3_db (double r[3], const double a[3])
 
MINLINE void add_v3_v3v3 (float r[3], const float a[3], const float b[3])
 
MINLINE void add_v4_v4 (float r[4], const float a[4])
 
MINLINE void add_v4_v4v4 (float r[4], const float a[4], const float b[4])
 
MINLINE void add_v3fl_v3fl_v3i (float r[3], const float a[3], const int b[3])
 
MINLINE void add_v3_uchar_clamped (uchar r[3], int i)
 
MINLINE void sub_v2_v2 (float r[2], const float a[2])
 
MINLINE void sub_v2_v2_db (double r[2], const double a[2])
 
MINLINE void sub_v2_v2v2 (float r[2], const float a[2], const float b[2])
 
MINLINE void sub_v2_v2v2_db (double r[2], const double a[2], const double b[2])
 
MINLINE void sub_v2_v2v2_int (int r[2], const int a[2], const int b[2])
 
MINLINE void sub_v3_v3 (float r[3], const float a[3])
 
MINLINE void sub_v3_v3v3 (float r[3], const float a[3], const float b[3])
 
MINLINE void sub_v3_v3v3_int (int r[3], const int a[3], const int b[3])
 
MINLINE void sub_v3_v3v3_db (double r[3], const double a[3], const double b[3])
 
MINLINE void sub_v4_v4 (float r[4], const float a[4])
 
MINLINE void sub_v4_v4v4 (float r[4], const float a[4], const float b[4])
 
MINLINE void sub_v2db_v2fl_v2fl (double r[2], const float a[2], const float b[2])
 
MINLINE void sub_v3db_v3fl_v3fl (double r[3], const float a[3], const float b[3])
 
MINLINE void mul_v2_fl (float r[2], float f)
 
MINLINE void mul_v2_v2fl (float r[2], const float a[2], float f)
 
MINLINE void mul_v3_fl (float r[3], float f)
 
MINLINE void mul_v3db_db (double r[3], double f)
 
MINLINE void mul_v3_v3fl (float r[3], const float a[3], float f)
 
MINLINE void mul_v3_v3db_db (double r[3], const double a[3], double f)
 
MINLINE void mul_v2_v2 (float r[2], const float a[2])
 
MINLINE void mul_v2_v2v2 (float r[2], const float a[2], const float b[2])
 
MINLINE void mul_v3_v3 (float r[3], const float a[3])
 
MINLINE void mul_v3_v3v3 (float r[3], const float v1[3], const float v2[3])
 
MINLINE void mul_v4_fl (float r[4], float f)
 
MINLINE void mul_v4_v4 (float r[4], const float a[4])
 
MINLINE void mul_v4_v4fl (float r[4], const float a[4], float f)
 
MINLINE void mul_v2_v2_cw (float r[2], const float mat[2], const float vec[2])
 
MINLINE void mul_v2_v2_ccw (float r[2], const float mat[2], const float vec[2])
 
MINLINE float mul_project_m4_v3_zfac (const float mat[4][4], const float co[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float dot_m3_v3_row_x (const float M[3][3], const float a[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float dot_m3_v3_row_y (const float M[3][3], const float a[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float dot_m3_v3_row_z (const float M[3][3], const float a[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float dot_m4_v3_row_x (const float M[4][4], const float a[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float dot_m4_v3_row_y (const float M[4][4], const float a[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float dot_m4_v3_row_z (const float M[4][4], const float a[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE void madd_v2_v2fl (float r[2], const float a[2], float f)
 
MINLINE void madd_v3_v3fl (float r[3], const float a[3], float f)
 
MINLINE void madd_v3_v3v3 (float r[3], const float a[3], const float b[3])
 
MINLINE void madd_v2_v2v2fl (float r[2], const float a[2], const float b[2], float f)
 
MINLINE void madd_v2_v2db_db (double r[2], const double a[2], const double b[2], double f)
 
MINLINE void madd_v3_v3v3fl (float r[3], const float a[3], const float b[3], float f)
 
MINLINE void madd_v3_v3v3db_db (double r[3], const double a[3], const double b[3], double f)
 
MINLINE void madd_v3_v3v3v3 (float r[3], const float a[3], const float b[3], const float c[3])
 
MINLINE void madd_v4_v4fl (float r[4], const float a[4], float f)
 
MINLINE void madd_v4_v4v4 (float r[4], const float a[4], const float b[4])
 
MINLINE void madd_v3fl_v3fl_v3fl_v3i (float r[3], const float a[3], const float b[3], const int c[3])
 
MINLINE void negate_v2 (float r[2])
 
MINLINE void negate_v2_v2 (float r[2], const float a[2])
 
MINLINE void negate_v3 (float r[3])
 
MINLINE void negate_v3_v3 (float r[3], const float a[3])
 
MINLINE void negate_v4 (float r[4])
 
MINLINE void negate_v4_v4 (float r[4], const float a[4])
 
MINLINE void negate_v3_short (short r[3])
 
MINLINE void negate_v3_db (double r[3])
 
MINLINE void invert_v2 (float r[2])
 
MINLINE void invert_v3 (float r[3])
 
MINLINE void invert_v3_safe (float r[3])
 
MINLINE void abs_v2 (float r[2])
 
MINLINE void abs_v2_v2 (float r[2], const float a[2])
 
MINLINE void abs_v3 (float r[3])
 
MINLINE void abs_v3_v3 (float r[3], const float a[3])
 
MINLINE void abs_v4 (float r[4])
 
MINLINE void abs_v4_v4 (float r[4], const float a[4])
 
MINLINE float dot_v2v2 (const float a[2], const float b[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE double dot_v2v2_db (const double a[2], const double b[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float dot_v3v3 (const float a[3], const float b[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float dot_v3v3v3 (const float p[3], const float a[3], const float b[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float dot_v4v4 (const float a[4], const float b[4]) ATTR_WARN_UNUSED_RESULT
 
MINLINE double dot_v3db_v3fl (const double a[3], const float b[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE double dot_v3v3_db (const double a[3], const double b[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float cross_v2v2 (const float a[2], const float b[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE double cross_v2v2_db (const double a[2], const double b[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE void cross_v3_v3v3 (float r[3], const float a[3], const float b[3])
 
MINLINE void cross_v3_v3v3_hi_prec (float r[3], const float a[3], const float b[3])
 
MINLINE void cross_v3_v3v3_db (double r[3], const double a[3], const double b[3])
 
MINLINE void add_newell_cross_v3_v3v3 (float n[3], const float v_prev[3], const float v_curr[3])
 
MINLINE void star_m3_v3 (float rmat[3][3], const float a[3])
 
Length
MINLINE float len_squared_v2 (const float v[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float len_squared_v3 (const float v[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float len_manhattan_v2 (const float v[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE int len_manhattan_v2_int (const int v[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float len_manhattan_v3 (const float v[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float len_v2 (const float v[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE double len_v2_db (const double v[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float len_v2v2 (const float v1[2], const float v2[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE double len_v2v2_db (const double v1[2], const double v2[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float len_v2v2_int (const int v1[2], const int v2[2])
 
MINLINE float len_squared_v2v2 (const float a[2], const float b[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE double len_squared_v2v2_db (const double a[2], const double b[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float len_squared_v3v3 (const float a[3], const float b[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float len_squared_v4v4 (const float a[4], const float b[4]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float len_manhattan_v2v2 (const float a[2], const float b[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE int len_manhattan_v2v2_int (const int a[2], const int b[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float len_manhattan_v3v3 (const float a[3], const float b[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float len_v3 (const float a[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float len_v3v3 (const float a[3], const float b[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE double len_v3_db (const double a[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE double len_squared_v3_db (const double v[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE float normalize_v2_length (float n[2], float unit_length)
 
MINLINE float normalize_v2_v2_length (float r[2], const float a[2], float unit_length)
 
MINLINE float normalize_v3_length (float n[3], float unit_length)
 
MINLINE float normalize_v3_v3_length (float r[3], const float a[3], float unit_length)
 
MINLINE double normalize_v3_length_db (double n[3], double unit_length)
 
MINLINE double normalize_v3_v3_length_db (double r[3], const double a[3], double unit_length)
 
MINLINE float normalize_v2 (float n[2])
 
MINLINE float normalize_v2_v2 (float r[2], const float a[2])
 
MINLINE float normalize_v3 (float n[3])
 
MINLINE float normalize_v3_v3 (float r[3], const float a[3])
 
MINLINE double normalize_v3_v3_db (double r[3], const double a[3])
 
MINLINE double normalize_v3_db (double n[3])
 
Interpolation
void interp_v2_v2v2 (float r[2], const float a[2], const float b[2], float t)
 
void interp_v2_v2v2_db (double target[2], const double a[2], const double b[2], double t)
 
void interp_v2_v2v2v2 (float r[2], const float a[2], const float b[2], const float c[2], const float t[3])
 
void interp_v3_v3v3 (float r[3], const float a[3], const float b[3], float t)
 
void interp_v3_v3v3_db (double target[3], const double a[3], const double b[3], double t)
 
void interp_v3_v3v3v3 (float p[3], const float v1[3], const float v2[3], const float v3[3], const float w[3])
 
void interp_v3_v3v3v3v3 (float p[3], const float v1[3], const float v2[3], const float v3[3], const float v4[3], const float w[4])
 
void interp_v4_v4v4 (float r[4], const float a[4], const float b[4], float t)
 
void interp_v4_v4v4v4 (float p[4], const float v1[4], const float v2[4], const float v3[4], const float w[3])
 
void interp_v4_v4v4v4v4 (float p[4], const float v1[4], const float v2[4], const float v3[4], const float v4[4], const float w[4])
 
void interp_v3_v3v3v3_uv (float p[3], const float v1[3], const float v2[3], const float v3[3], const float uv[2])
 
bool interp_v3_v3v3_slerp (float target[3], const float a[3], const float b[3], float t) ATTR_WARN_UNUSED_RESULT
 
bool interp_v2_v2v2_slerp (float target[2], const float a[2], const float b[2], float t) ATTR_WARN_UNUSED_RESULT
 
void interp_v3_v3v3_slerp_safe (float target[3], const float a[3], const float b[3], float t)
 
void interp_v2_v2v2_slerp_safe (float target[2], const float a[2], const float b[2], float t)
 
void interp_v2_v2v2v2v2_cubic (float p[2], const float v1[2], const float v2[2], const float v3[2], const float v4[2], float u)
 
void interp_v3_v3v3_char (char target[3], const char a[3], const char b[3], float t)
 
void interp_v3_v3v3_uchar (unsigned char target[3], const unsigned char a[3], const unsigned char b[3], float t)
 
void interp_v4_v4v4_char (char target[4], const char a[4], const char b[4], float t)
 
void interp_v4_v4v4_uchar (unsigned char target[4], const unsigned char a[4], const unsigned char b[4], float t)
 
void mid_v3_v3v3 (float r[3], const float a[3], const float b[3])
 
void mid_v2_v2v2 (float r[2], const float a[2], const float b[2])
 
void mid_v3_v3v3v3 (float v[3], const float v1[3], const float v2[3], const float v3[3])
 
void mid_v2_v2v2v2 (float v[2], const float v1[2], const float v2[2], const float v3[2])
 
void mid_v3_v3v3v3v3 (float v[3], const float v1[3], const float v2[3], const float v3[3], const float v4[3])
 
void mid_v3_v3_array (float r[3], const float(*vec_arr)[3], unsigned int vec_arr_num)
 
void mid_v3_v3v3_angle_weighted (float r[3], const float a[3], const float b[3])
 
void mid_v3_angle_weighted (float r[3])
 
void flip_v4_v4v4 (float v[4], const float v1[4], const float v2[4])
 
void flip_v3_v3v3 (float v[3], const float v1[3], const float v2[3])
 
void flip_v2_v2v2 (float v[2], const float v1[2], const float v2[2])
 
Comparison
MINLINE bool is_zero_v2 (const float v[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool is_zero_v3 (const float v[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool is_zero_v4 (const float v[4]) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool is_zero_v2_db (const double v[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool is_zero_v3_db (const double v[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool is_zero_v4_db (const double v[4]) ATTR_WARN_UNUSED_RESULT
 
bool is_finite_v2 (const float v[2]) ATTR_WARN_UNUSED_RESULT
 
bool is_finite_v3 (const float v[3]) ATTR_WARN_UNUSED_RESULT
 
bool is_finite_v4 (const float v[4]) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool is_one_v3 (const float v[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool equals_v2v2 (const float v1[2], const float v2[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool equals_v3v3 (const float v1[3], const float v2[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool equals_v4v4 (const float v1[4], const float v2[4]) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool equals_v2v2_int (const int v1[2], const int v2[2]) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool equals_v3v3_int (const int v1[3], const int v2[3]) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool equals_v4v4_int (const int v1[4], const int v2[4]) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool compare_v2v2 (const float v1[2], const float v2[2], float limit) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool compare_v3v3 (const float v1[3], const float v2[3], float limit) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool compare_v4v4 (const float v1[4], const float v2[4], float limit) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool compare_v2v2_relative (const float v1[2], const float v2[2], float limit, int max_ulps) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool compare_v3v3_relative (const float v1[3], const float v2[3], float limit, int max_ulps) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool compare_v4v4_relative (const float v1[4], const float v2[4], float limit, int max_ulps) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool compare_len_v3v3 (const float v1[3], const float v2[3], float limit) ATTR_WARN_UNUSED_RESULT
 
MINLINE bool compare_size_v3v3 (const float v1[3], const float v2[3], float limit) ATTR_WARN_UNUSED_RESULT
 
MINLINE float line_point_side_v2 (const float l1[2], const float l2[2], const float pt[2]) ATTR_WARN_UNUSED_RESULT
 
Angles
float angle_v2v2 (const float a[2], const float b[2]) ATTR_WARN_UNUSED_RESULT
 
float angle_signed_v2v2 (const float v1[2], const float v2[2]) ATTR_WARN_UNUSED_RESULT
 
float angle_v2v2v2 (const float a[2], const float b[2], const float c[2]) ATTR_WARN_UNUSED_RESULT
 
float angle_normalized_v2v2 (const float a[2], const float b[2]) ATTR_WARN_UNUSED_RESULT
 
float angle_v3v3 (const float a[3], const float b[3]) ATTR_WARN_UNUSED_RESULT
 
float angle_v3v3v3 (const float a[3], const float b[3], const float c[3]) ATTR_WARN_UNUSED_RESULT
 
float cos_v3v3v3 (const float p1[3], const float p2[3], const float p3[3]) ATTR_WARN_UNUSED_RESULT
 
float cos_v2v2v2 (const float p1[2], const float p2[2], const float p3[2]) ATTR_WARN_UNUSED_RESULT
 
float angle_on_axis_v3v3_v3 (const float v1[3], const float v2[3], const float axis[3]) ATTR_WARN_UNUSED_RESULT
 
float angle_signed_on_axis_v3v3_v3 (const float v1[3], const float v2[3], const float axis[3]) ATTR_WARN_UNUSED_RESULT
 
float angle_normalized_v3v3 (const float v1[3], const float v2[3]) ATTR_WARN_UNUSED_RESULT
 
float angle_on_axis_v3v3v3_v3 (const float v1[3], const float v2[3], const float v3[3], const float axis[3]) ATTR_WARN_UNUSED_RESULT
 
float angle_signed_on_axis_v3v3v3_v3 (const float v1[3], const float v2[3], const float v3[3], const float axis[3]) ATTR_WARN_UNUSED_RESULT
 
void angle_tri_v3 (float angles[3], const float v1[3], const float v2[3], const float v3[3])
 
void angle_quad_v3 (float angles[4], const float v1[3], const float v2[3], const float v3[3], const float v4[3])
 
void angle_poly_v3 (float *angles, const float *verts[3], int len)
 
Geometry
void project_v2_v2v2 (float out[2], const float p[2], const float v_proj[2])
 
void project_v3_v3v3 (float out[3], const float p[3], const float v_proj[3])
 
void project_v3_v3v3_db (double out[3], const double p[3], const double v_proj[3])
 
void project_v2_v2v2_normalized (float out[2], const float p[2], const float v_proj[2])
 
void project_v3_v3v3_normalized (float out[3], const float p[3], const float v_proj[3])
 
void project_plane_v3_v3v3 (float out[3], const float p[3], const float v_plane[3])
 
void project_plane_v2_v2v2 (float out[2], const float p[2], const float v_plane[2])
 
void project_plane_normalized_v3_v3v3 (float out[3], const float p[3], const float v_plane[3])
 
void project_plane_normalized_v2_v2v2 (float out[2], const float p[2], const float v_plane[2])
 
void project_v3_plane (float out[3], const float plane_no[3], const float plane_co[3])
 
void reflect_v3_v3v3 (float out[3], const float v[3], const float normal[3])
 
void reflect_v3_v3v3_db (double out[3], const double v[3], const double normal[3])
 
void ortho_basis_v3v3_v3 (float r_n1[3], float r_n2[3], const float n[3])
 
void ortho_v3_v3 (float out[3], const float v[3])
 
void ortho_v2_v2 (float out[2], const float v[2])
 
void bisect_v3_v3v3v3 (float r[3], const float a[3], const float b[3], const float c[3])
 
void rotate_v2_v2fl (float r[2], const float p[2], float angle)
 
void rotate_v3_v3v3fl (float r[3], const float p[3], const float axis[3], float angle)
 
void rotate_normalized_v3_v3v3fl (float out[3], const float p[3], const float axis[3], float angle)
 
Array Functions

Follow fixed length vector function conventions.

double dot_vn_vn (const float *array_src_a, const float *array_src_b, int size) ATTR_WARN_UNUSED_RESULT
 
double len_squared_vn (const float *array, int size) ATTR_WARN_UNUSED_RESULT
 
float normalize_vn_vn (float *array_tar, const float *array_src, int size)
 
float normalize_vn (float *array_tar, int size)
 
void range_vn_i (int *array_tar, int size, int start)
 
void range_vn_u (unsigned int *array_tar, int size, unsigned int start)
 
void range_vn_fl (float *array_tar, int size, float start, float step)
 
void negate_vn (float *array_tar, int size)
 
void negate_vn_vn (float *array_tar, const float *array_src, int size)
 
void mul_vn_vn (float *array_tar, const float *array_src, int size)
 
void mul_vn_vnvn (float *array_tar, const float *array_src_a, const float *array_src_b, int size)
 
void mul_vn_fl (float *array_tar, int size, float f)
 
void mul_vn_vn_fl (float *array_tar, const float *array_src, int size, float f)
 
void add_vn_vn (float *array_tar, const float *array_src, int size)
 
void add_vn_vnvn (float *array_tar, const float *array_src_a, const float *array_src_b, int size)
 
void madd_vn_vn (float *array_tar, const float *array_src, float f, int size)
 
void madd_vn_vnvn (float *array_tar, const float *array_src_a, const float *array_src_b, float f, int size)
 
void sub_vn_vn (float *array_tar, const float *array_src, int size)
 
void sub_vn_vnvn (float *array_tar, const float *array_src_a, const float *array_src_b, int size)
 
void msub_vn_vn (float *array_tar, const float *array_src, float f, int size)
 
void msub_vn_vnvn (float *array_tar, const float *array_src_a, const float *array_src_b, float f, int size)
 
void interp_vn_vn (float *array_tar, const float *array_src, float t, int size)
 
void copy_vn_i (int *array_tar, int size, int val)
 
void copy_vn_short (short *array_tar, int size, short val)
 
void copy_vn_ushort (unsigned short *array_tar, int size, unsigned short val)
 
void copy_vn_uchar (unsigned char *array_tar, int size, unsigned char val)
 
void copy_vn_fl (float *array_tar, int size, float val)
 
void add_vn_vn_d (double *array_tar, const double *array_src, int size)
 
void add_vn_vnvn_d (double *array_tar, const double *array_src_a, const double *array_src_b, int size)
 
void mul_vn_db (double *array_tar, int size, double f)
 

Other

#define print_v2_id(v)   print_v2(STRINGIFY(v), v)
 
#define print_v3_id(v)   print_v3(STRINGIFY(v), v)
 
#define print_v4_id(v)   print_v4(STRINGIFY(v), v)
 
#define print_vn_id(v, n)   print_vn(STRINGIFY(v), v, n)
 
void print_v2 (const char *str, const float v[2])
 
void print_v3 (const char *str, const float v[3])
 
void print_v4 (const char *str, const float v[4])
 
void print_vn (const char *str, const float v[], int n)
 
MINLINE void normal_float_to_short_v2 (short out[2], const float in[2])
 
MINLINE void normal_short_to_float_v3 (float out[3], const short in[3])
 
MINLINE void normal_float_to_short_v3 (short out[3], const float in[3])
 
MINLINE void normal_float_to_short_v4 (short out[4], const float in[4])
 
void minmax_v4v4_v4 (float min[4], float max[4], const float vec[4])
 
void minmax_v3v3_v3 (float min[3], float max[3], const float vec[3])
 
void minmax_v2v2_v2 (float min[2], float max[2], const float vec[2])
 
void dist_ensure_v3_v3fl (float v1[3], const float v2[3], float dist)
 
void dist_ensure_v2_v2fl (float v1[2], const float v2[2], float dist)
 
void axis_sort_v3 (const float axis_values[3], int r_axis_order[3])
 
MINLINE void clamp_v2 (float vec[2], float min, float max)
 
MINLINE void clamp_v3 (float vec[3], float min, float max)
 
MINLINE void clamp_v4 (float vec[4], float min, float max)
 
MINLINE void clamp_v2_v2v2 (float vec[2], const float min[2], const float max[2])
 
MINLINE void clamp_v3_v3v3 (float vec[3], const float min[3], const float max[3])
 
MINLINE void clamp_v4_v4v4 (float vec[4], const float min[4], const float max[4])
 

Macro Definition Documentation

◆ print_v2_id

#define print_v2_id ( v)    print_v2(STRINGIFY(v), v)

Definition at line 661 of file BLI_math_vector.h.

◆ print_v3_id

#define print_v3_id ( v)    print_v3(STRINGIFY(v), v)

Definition at line 662 of file BLI_math_vector.h.

Referenced by find_nearest_points_test().

◆ print_v4_id

#define print_v4_id ( v)    print_v4(STRINGIFY(v), v)

Definition at line 663 of file BLI_math_vector.h.

◆ print_vn_id

#define print_vn_id ( v,
n )   print_vn(STRINGIFY(v), v, n)

Definition at line 664 of file BLI_math_vector.h.

Function Documentation

◆ abs_v2()

MINLINE void abs_v2 ( float r[2])

Definition at line 843 of file math_vector_inline.c.

References fabsf.

◆ abs_v2_v2()

MINLINE void abs_v2_v2 ( float r[2],
const float a[2] )

Definition at line 849 of file math_vector_inline.c.

References fabsf.

◆ abs_v3()

MINLINE void abs_v3 ( float r[3])

Definition at line 855 of file math_vector_inline.c.

References fabsf.

◆ abs_v3_v3()

MINLINE void abs_v3_v3 ( float r[3],
const float a[3] )

Definition at line 862 of file math_vector_inline.c.

References fabsf.

Referenced by generate_vert_coordinates().

◆ abs_v4()

MINLINE void abs_v4 ( float r[4])

Definition at line 869 of file math_vector_inline.c.

References fabsf.

◆ abs_v4_v4()

MINLINE void abs_v4_v4 ( float r[4],
const float a[4] )

Definition at line 877 of file math_vector_inline.c.

References fabsf.

◆ add_newell_cross_v3_v3v3()

◆ add_v2_fl()

◆ add_v2_v2()

MINLINE void add_v2_v2 ( float r[2],
const float a[2] )

Definition at line 366 of file math_vector_inline.c.

Referenced by accumulate_marker(), annotation_stroke_arrow_calc_points(), bev_merge_edge_uvs(), bev_merge_uvs(), BKE_tracking_marker_get_subframe_position(), BKE_tracking_plane_track_add(), BM_face_splits_check_legal(), BM_face_uv_calc_center_median(), compensate_rotation_center(), createTransUVs(), do_projectpaint_soften(), do_projectpaint_soften_f(), do_vert_pair(), draw_distortion(), ED_uvedit_median_multi(), edbm_rip_edge_invoke(), edit_text_cache_populate_select(), gpencil_calc_stroke_fill_uv(), grab_clone_apply(), HC_relaxation_iteration_uv(), blender::eevee::DepthOfField::jitter_apply(), kdtree2d_isect_tri(), laplacian_relaxation_iteration_uv(), layerAdd_mloop_origspace(), mask_spline_feather_differentiated_points_with_resolution__double(), blender::ed::transform::node_snap_grid_apply(), blender::ed::object::object_warp_transverts(), blender::ed::sculpt_paint::paint_stroke_sample_average(), paintcurve_slide_modal(), paste_animedit_keys_fcurve(), points_to_bezier(), rotate_around_center_v2(), seq_get_strip_pivot_median(), setup_pivot(), slide_marker_modal(), slide_marker_tilt_slider(), slide_point_modal(), stabilization_data_to_mat4(), stitch_calculate_island_snapping(), stitch_init(), stitch_process_data(), tracking_average_tracks(), ui_mouse_motion_towards_check(), ui_pie_handler(), uv_remove_doubles_to_selected(), uv_rip_pairs_calc_center_and_direction(), uv_rotation_in_clip_bounds_test(), uv_shear_in_clip_bounds_test(), uv_snap_uvs_to_adjacent_unselected(), uvedit_center(), uvedit_translate(), v2_quad_corners_to_mat4(), v3d_editvertex_buts(), and wm_gesture_straightline_do_angle_snap().

◆ add_v2_v2_db()

MINLINE void add_v2_v2_db ( double r[2],
const double a[2] )

◆ add_v2_v2_int()

MINLINE void add_v2_v2_int ( int r[2],
const int a[2] )

Definition at line 384 of file math_vector_inline.c.

◆ add_v2_v2v2()

MINLINE void add_v2_v2v2 ( float r[2],
const float a[2],
const float b[2] )

Definition at line 378 of file math_vector_inline.c.

References b.

Referenced by BKE_fcurve_bezt_subdivide_handles(), BKE_mask_calc_tangent_polyline(), BKE_mask_point_normal(), BKE_mask_point_set_handle(), BKE_maskrasterize_handle_init(), boid_brain(), calculate_autoscale_factor(), blender::compositor::KeyingScreenOperation::compute_marker_points(), draw_marker_areas(), draw_marker_outline(), draw_marker_slide_zones(), draw_spline_curve(), DRW_cache_lightprobe_grid_get(), blender::ed::transform::flushTransNodes(), flushTransTracking(), getArrowEndPoint(), handle_flatten(), handle_set_length(), knife_snap_angle_screen(), marker_block_handler(), marker_to_path_point(), mask_parent_set_exec(), maskrasterize_spline_differentiate_point_outset(), blender::bke::mesh_init_origspace(), mouse_to_closest_corners_edge_distance_squared(), mouse_to_closest_pattern_corner_distance_squared(), mouse_to_offset_distance_squared(), move_all_selected_points(), move_bezt_handle_or_vertex_by_displacement(), blender::ed::sculpt_paint::expand::move_propagation_origin(), blender::geometry::p_chart_stretch_minimize(), blender::ed::sculpt_paint::paint_stroke_jitter_pos(), paintcurve_slide_modal(), search_pixel_to_marker_unified(), shell_v2v2_mid_normalized_to_dist(), slide_marker_modal(), slide_marker_tilt_slider_relative(), slide_marker_tilt_slider_relative(), slide_point_modal(), slide_spline_curvature_modal(), stencil_control_calculate(), stitch_uv_rotate(), translation_contribution(), uiTemplateMarker(), uv_image_outset(), and wm_gesture_draw_line_active_side().

◆ add_v2_v2v2_int()

MINLINE void add_v2_v2v2_int ( int r[2],
const int a[2],
const int b[2] )

Definition at line 390 of file math_vector_inline.c.

References b.

Referenced by ViewOpsData::init_navigation(), and ui_handle_menu_event().

◆ add_v3_fl()

◆ add_v3_uchar_clamped()

MINLINE void add_v3_uchar_clamped ( uchar r[3],
int i )

Definition at line 440 of file math_vector_inline.c.

References clamp_i().

Referenced by color_ensure_contrast_v3(), and uiTemplateReportsBanner().

◆ add_v3_v3()

MINLINE void add_v3_v3 ( float r[3],
const float a[3] )

Definition at line 396 of file math_vector_inline.c.

Referenced by _scan_for_ext_spring_forces(), _softbody_calc_forces_slice_in_a_thread(), accum_density(), adj_vmesh(), apply_raw_diff_v3(), apply_spring(), apply_tangmat_callback(), blender::ed::sculpt_paint::apply_translations(), applyBoneSize(), applyFaceNearest(), applyFaceProject(), applyResize(), applySkinResize(), applyTranslation(), applyTranslationMatrix(), armature_vert_task_with_dvert(), arrayModifier_doArray(), blender::bke::subdiv::average_with_other(), avg4(), blender::ed::object::bake_result_add_to_rgba(), bezier_handle_calc_length_v3(), BKE_curve_center_median(), BKE_curve_translate(), BKE_effectors_apply(), BKE_gpencil_layer_transform_matrix_get(), BKE_gpencil_stroke_smooth_point(), BKE_keyblock_update_from_offset(), BKE_lattice_center_median(), BKE_lattice_translate(), BKE_mball_center_median(), BKE_mball_translate(), BKE_mesh_calc_relative_deform(), BKE_mesh_center_median(), BKE_mesh_center_median_from_faces(), BKE_mesh_center_of_volume(), BKE_mesh_normals_loop_to_vertex(), BKE_mesh_remesh_voxel_fix_poles(), BKE_nurb_bpoint_calc_normal(), BKE_object_minmax(), BKE_pose_where_is_bone(), BM_edgeloop_calc_normal_aligned(), bm_edgering_pair_interpolate(), BM_face_calc_center_median(), bm_face_calc_poly_center_median_vertex_cos(), BM_mesh_edgeloops_calc_order(), bm_mesh_loops_assign_normal_data(), bm_to_mesh_shape(), bm_vert_boundary_tangent(), bm_vert_calc_surface_tangent(), blender::ed::sculpt_paint::smooth::bmesh_four_neighbor_average(), bmesh_selected_verts_center_calc(), bmo_collapse_exec(), bmo_extrude_face_region_exec(), bmo_inset_region_exec(), bmo_triangle_fill_exec(), boid_body(), boid_brain(), boid_find_ground(), bone_connect_to_new_parent(), brush_add(), brush_comb(), blender::ed::sculpt_paint::brush_delta_update(), brush_puff(), brush_smooth_do(), brush_smooth_get(), blender::ed::sculpt_paint::filter::cache_init(), blender::compositor::calc_area_luminance(), calc_bbox(), blender::ed::sculpt_paint::calc_brush_plane(), calc_frame_center(), blender::ed::sculpt_paint::calc_local_from_screen(), calc_point_from_barycentric_extrusion(), calc_shapeKeys(), calc_solidify_normals(), calc_tangent_loop(), calc_tw_center(), calculateCenterMedian(), camera_stereoscopy_extra(), blender::bke::pbvh::clip_ray_ortho(), clip_to_ortho_planes(), closest_on_tri_to_point_v3(), closest_point_on_surface(), cloth_bvh_objcollisions_resolve(), cloth_bvh_selfcollisions_resolve(), cloth_calc_average_acceleration(), cloth_calc_helper_forces(), cloth_get_grid_location(), collision_response(), constraintTransLim(), contarget_get_lattice_mat(), blender::compositor::ColorBalanceNode::convert_to_operations(), createFacepa(), createTransGPencil_center_get(), cubic_subdiv(), cuboid_do(), cycle_offset_triple(), deflect_emitter_iter(), displaceModifier_do_task(), blender::ed::sculpt_paint::do_brush_action(), do_guides(), do_kink(), do_path_effectors(), do_physical_effector(), do_texture_effector(), do_twist(), draw_frustum_bound_sphere_calc(), drawConstraint(), drawEdgeSlide(), drawVertSlide(), dynamicPaint_paintMesh(), ED_armature_ebone_from_mat4(), ED_armature_origin_set(), ed_editcurve_addvert(), ed_editnurb_translate_flag(), ED_gpencil_drawing_reference_get(), ED_transverts_update_obedit(), ED_view3d_depth_read_cached_normal(), ED_view3d_minmax_verts(), ED_view3d_offset_distance(), edbm_average_normals_exec(), edbm_calc_loop_co(), edbm_dupli_extrude_cursor_invoke(), edbm_normals_tools_exec(), edbm_point_normals_modal(), edbm_smooth_normals_exec(), edge_slide_transform_matrix_fn(), ElementMirror(), ElementResize(), ElementRotation_ex(), blender::bke::subdiv::eval_final_point(), blender::bke::subdiv::evaluate_vertex_and_apply_displacement_interpolate(), explodeMesh(), extrude_vertices_from_selected_endpoints(), eyedropper_color_sample(), faces_check_flip(), find_internal_spring_target_vertex(), fix_connected_bone(), flyApply(), blender::draw::View::frustum_culling_sphere_calc(), generate_vert_coordinates(), get_effector_data(), get_selected_center(), getSnapPoint(), getTransformOrientation_ex(), give_parvert(), gizmo_3d_calc_pos(), gizmo_mesh_spin_init_refresh(), gizmo_move_matrix_basis_get(), grid_to_world(), heat_calc_vnormals(), idp_snap_calc_incremental(), imm_draw_cube_corners_3d(), blender::io::usd::import_blendshapes(), initLaplacianMatrix(), integrate_particle(), interp_barycentric_tri_v3(), interp_bilinear_quad_v3(), isect_sweeping_sphere_tri_v3(), iterate_lengths_iter(), knife_snap_angle_relative(), laplaciansmoothModifier_do(), blender::ed::sculpt_paint::vwpaint::last_stroke_update(), make_selection_list_nurb(), make_unit_cube_map(), mdisp_in_mdispquad(), merge_target(), blender::bke::shrinkwrap::merge_vert_dir(), mesh_calc_hq_normal(), mesh_remove_doubles_on_axis(), meshdeform_vert_task(), mix_normals(), MOD_lineart_chain_offset_towards_camera(), MOD_solidify_nonmanifold_modifyMesh(), modify_mesh(), modify_mesh(), move_bezt_by_displacement(), multires_disp_run_cb(), multires_reshape_apply_base_refit_base_mesh(), normals_merge(), normals_split(), ob_parbone(), blender::ed::object::object_origin_set_exec(), blender::ed::object::object_transform_axis_target_calc_depth_init(), blender::ed::object::object_transform_axis_target_modal(), blender::ed::object::object_xform_array_m4(), offset_child(), offset_meet(), OVERLAY_gpencil_legacy_cache_init(), blender::geometry::p_chart_correct_degenerate_triangle_point(), blender::geometry::p_chart_correct_degenerate_triangles2(), blender::geometry::p_face_stretch(), blender::ed::sculpt_paint::paint_brush_stroke_add_step(), particles_fluid_step(), blender::bke::pbvh::pbvh_bmesh_collapse_edge(), point_normals_apply(), pointdensity_cache_vertex_color(), prepare_for_decimate(), proj_paint_state_cavity_init(), proj_paint_state_viewport_init(), project_paint_op(), psys_particle_on_dm(), psys_thread_create_path(), quad_verts_to_barycentric_tri(), RE_point_density_minmax(), recalc_emitter_field(), reference_to_scratch(), blender::ed::object::return_editcurve_indexar(), blender::ed::object::return_editlattice_indexar(), blender::ed::object::return_editmesh_indexar(), blender::ed::object::return_editmesh_vgroup(), rotateDifferentialCoordinates(), rotateflagNurb(), rotlike_evaluate(), rule_average_speed(), rule_flock(), rule_goal_avoid(), rule_separate(), sb_detect_vertex_collisionCached(), scale_point(), scale_tri(), SCULPT_cursor_geometry_info_update(), sculpt_kelvinet_integrate(), SCULPT_stroke_get_location_ex(), set_origin_exec(), setNearestAxis3d(), SIM_hair_volume_grid_velocity(), SIM_mass_spring_add_constraint_ndof1(), SIM_mass_spring_add_constraint_ndof2(), SIM_mass_spring_force_edge_wind(), SIM_mass_spring_force_extern(), SIM_mass_spring_force_face_extern(), SIM_mass_spring_force_gravity(), SIM_mass_spring_force_reference_frame(), SIM_mass_spring_force_spring_angular(), SIM_mass_spring_force_spring_bending_hair(), SIM_mass_spring_force_spring_goal(), SIM_mass_spring_force_vertex_wind(), simpleDeform_stretch(), simpleDeform_taper(), simpleDeform_twist(), sizelike_evaluate(), skin_smooth_hulls(), smart_uv_project_calculate_project_normals(), smooth_iter__length_weight(), smooth_iter__simple(), smoothModifier_do(), snap_curs_to_sel_ex(), snap_grid(), snap_sel_to_grid_exec(), snap_selected_to_location(), snapObjectsTransform(), softbody_apply_forces(), sph_particle_courant(), sphere_do(), spring_hairbend_forces(), blender::ed::curves::stroke_elem_project(), stroke_elem_project(), studiolight_matcap_preview(), blender::bke::subdiv::subdiv_accumulate_vertex_displacement(), blender::bke::subdiv::subdiv_mesh_vertex_corner(), subsurf_calculate_limit_positions(), tranform_snap_target_median_calc(), transdata_elem_bend(), transdata_elem_shear(), transdata_elem_to_sphere(), transdata_elem_translate(), transform_convert_mesh_islands_calc(), transform_convert_mesh_mirrordata_calc(), transform_evaluate(), translate_snap_increment(), txt_add_object(), blender::compositor::ConvolutionEdgeFilterOperation::update_memory_buffer_partial(), blender::compositor::TonemapOperation::update_memory_buffer_started(), uv_map_transform_calc_center_median(), v3d_editvertex_buts(), vcloud_estimate_transform_v3(), vert_slide_transform_matrix_fn(), view3d_orbit_apply_dyn_ofs(), view3d_orbit_calc_center(), vmesh_center(), walk_floor_distance_get(), walkApply(), walkEvent(), WIDGETGROUP_light_spot_refresh(), wm_xr_navigation_reset_exec(), wm_xr_navigation_teleport(), and wm_xr_session_controller_data_update().

◆ add_v3_v3_db()

MINLINE void add_v3_v3_db ( double r[3],
const double a[3] )

Definition at line 403 of file math_vector_inline.c.

Referenced by lineart_main_cull_triangles().

◆ add_v3_v3v3()

MINLINE void add_v3_v3v3 ( float r[3],
const float a[3],
const float b[3] )

Definition at line 410 of file math_vector_inline.c.

References b.

Referenced by _scan_for_ext_spring_forces(), _softbody_calc_forces_slice_in_a_thread(), add_fmatrix_fmatrix(), add_lfvector_lfvector(), alter_co(), apply_lengths_iter(), blender::ed::object::apply_objects_internal(), armature_bone_primitive_add_exec(), armature_calc_roll_exec(), armature_vert_task_with_dvert(), assign_final_coords_from_mdisps(), assign_final_elements_from_orig_mdisps(), avg4(), axisProjection(), bevel_harden_normals(), bevel_vert_construct(), bezier_output_handle_inner(), bindVert(), bisect_v3_v3v3v3(), BKE_effectors_apply(), BKE_gpencil_stroke_2d_flat_ref(), BKE_nurb_bezt_calc_normal(), BKE_nurb_bezt_calc_plane(), BKE_nurb_bpoint_calc_plane(), BKE_object_to_mat4(), BKE_pchan_bbone_spline_compute(), BKE_pchan_bbone_spline_params_get(), BKE_pose_where_is_bone_tail(), blinn_specular(), bm_edge_calc_rotate_beauty__area(), BM_editselection_normal(), BM_face_calc_tangent_edge_pair(), BM_face_multires_bounds_smooth(), BM_loop_calc_face_direction(), BM_loop_calc_face_tangent(), bm_loop_flip_disp(), bm_vert_boundary_tangent(), bm_vert_calc_surface_tangent(), bm_vert_pair_to_matrix(), BMBVH_EdgeVisible(), bmo_face_inset_individual(), bmo_inset_region_exec(), bmo_smooth_vert_exec(), boid_body(), boid_climb(), boid_find_ground(), bone_align_to_bone(), bridge_loop_pair(), brush_add(), brush_length(), calc_bbox(), calc_curve_deform(), calc_frame_center(), calc_nurb_minmax(), calc_solidify_normals(), calculate_profile_segments(), camera_frame_fit_calc_from_data(), check_path_length(), cloth_bvh_collision(), collision_response(), create_frame(), createFacepa(), cubic_subdiv(), curvemap_make_table(), dist_squared_to_ray_v3_normalized(), do_clump(), do_kink(), do_kink_spiral_deform(), do_physical_effector(), do_version_bone_head_tail_237(), drawEdgeSlide(), drawLine(), ebone_spline_preview(), ed_editcurve_addvert(), edge_slide_apply_elem(), edge_slide_snap_apply(), ElementMirror(), ElementResize(), ElementRotation_ex(), get_effector_data(), getTransformOrientation_ex(), gizmo_move_modal(), gpencil_stroke_editcurve_generate_edgecases(), hair_create_input_mesh(), ViewOpsData::init_navigation(), integrate_particle(), interp_slerp_co_no_v3(), isect_line_line_epsilon_v3(), isect_line_line_strict_v3(), iterate_lengths_iter(), layerCopyValue_normal(), blender::ed::sculpt_paint::gesture::line_calculate_plane_points(), M_Geometry_intersect_ray_tri(), make_duplis_particle_system(), make_unit_square_map(), mask_calc_point_handle(), mesh_calc_hq_normal(), mesh_edges_spherecast(), mesh_verts_spherecast_do(), mid_v3_v3v3_angle_weighted(), MOD_solidify_nonmanifold_modifyMesh(), move_bezt_handle_or_vertex_by_displacement(), move_segment(), mul_m4_m4m4_split_channels(), multires_disp_run_cb(), multires_reshape_apply_base_update_mesh_coords(), blender::ed::object::object_transform_axis_target_calc_depth_init(), offset_meet(), old_mdisps_bilinear(), blender::ed::sculpt_paint::paint_line_strokes_spacing(), blender::ed::sculpt_paint::paint_space_stroke(), paintface_minmax(), particle_system_minmax(), particles_fluid_step(), pivotcon_evaluate(), blender::ed::sculpt_paint::cloth::plane_falloff_preview_draw(), planeProjection(), blender::ed::sculpt_paint::project_brush_radius(), quad_edges_to_normal(), recalc_emitter_field(), remap_hair_emitter(), rule_avoid_collision(), scale_point_factor(), sculpt_kelvinet_integrate(), set_handle_type_exec(), set_profile_params(), shell_v3v3_mid_normalized_to_dist(), SIM_hair_volume_solve_divergence(), SIM_mass_spring_force_spring_angular(), snap_selected_to_location(), blender::ed::sculpt_paint::pose::solve_translate_chain(), square_out_adj_vmesh(), studiolight_lights_eval(), subsurf_calculate_limit_positions(), transdata_elem_push_pull(), transdata_elem_shear(), transdata_elem_translate(), vert_slide_snap_apply(), view3d_interactive_add_begin(), view3d_zoom_border_exec(), view_zoom_to_window_xy_3d(), VoronoiVertexWeight::VoronoiVertexWeight(), blender::ed::object::voxel_size_parallel_lines_draw(), where_is_ik_bone(), and wm_xr_grab_compute_bimanual().

◆ add_v3fl_v3fl_v3i()

MINLINE void add_v3fl_v3fl_v3i ( float r[3],
const float a[3],
const int b[3] )

Definition at line 417 of file math_vector_inline.c.

References b, and float.

◆ add_v4_fl()

MINLINE void add_v4_fl ( float r[4],
float f )

Definition at line 358 of file math_vector_inline.c.

◆ add_v4_v4()

◆ add_v4_v4v4()

MINLINE void add_v4_v4v4 ( float r[4],
const float a[4],
const float b[4] )

Definition at line 432 of file math_vector_inline.c.

References b.

◆ add_vn_vn()

void add_vn_vn ( float * array_tar,
const float * array_src,
int size )

Definition at line 1123 of file math_vector.c.

References size().

Referenced by Color_iadd(), and Vector_iadd().

◆ add_vn_vn_d()

void add_vn_vn_d ( double * array_tar,
const double * array_src,
int size )

Definition at line 1285 of file math_vector.c.

References size().

Referenced by BLI_quadric_add_qu_qu().

◆ add_vn_vnvn()

void add_vn_vnvn ( float * array_tar,
const float * array_src_a,
const float * array_src_b,
int size )

Definition at line 1133 of file math_vector.c.

References size().

Referenced by Color_add(), Matrix_add(), and Vector_add().

◆ add_vn_vnvn_d()

void add_vn_vnvn_d ( double * array_tar,
const double * array_src_a,
const double * array_src_b,
int size )

Definition at line 1295 of file math_vector.c.

References size().

Referenced by BLI_quadric_add_qu_ququ().

◆ angle_normalized_v2v2()

◆ angle_normalized_v3v3()

float angle_normalized_v3v3 ( const float v1[3],
const float v2[3] )

Definition at line 454 of file math_vector.c.

References BLI_ASSERT_UNIT_V3, dot_v3v3(), len_v3v3(), M_PI, negate_v3_v3(), safe_asinf(), and v2.

Referenced by blender::nodes::node_fn_align_euler_to_vector_cc::align_rotations_auto_pivot(), blender::nodes::node_fn_align_rotation_to_vector_cc::align_rotations_auto_pivot(), angle_poly_v3(), angle_quad_v3(), angle_tri_v3(), angle_v3v3(), angle_v3v3v3(), bevel_list_flip_tangents(), bevel_list_smooth(), BM_edge_calc_face_angle_ex(), BM_edge_calc_face_angle_signed_ex(), BM_edge_calc_face_angle_with_imat3_ex(), bm_edge_calc_rotate_beauty__angle(), bm_edge_is_delimit(), bm_edgering_pair_interpolate(), bm_interior_face_group_calc_cost(), build_emats_stack(), calc_solidify_normals(), blender::bke::curves::poly::calculate_next_normal(), computeBindWeights(), connection_node_mat(), curve_nurb_select_similar_type(), DRW_text_edit_mesh_measure_stats(), edbm_dupli_extrude_cursor_invoke(), edge_face_angle(), blender::draw::edituv_get_edituv_stretch_angle(), blender::bke::mesh::face_angles_calc(), blender::nodes::node_geo_input_mesh_edge_angle_cc::AngleFieldInput::get_varray_for_context(), blender::nodes::node_geo_input_mesh_edge_angle_cc::SignedAngleFieldInput::get_varray_for_context(), gizmo_ruler_draw(), knifetool_draw_angle(), make_bevel_list_3D_minimum_twist(), map_to_plane_v2_v3v3(), mball_select_similar_type(), mesh_calc_hq_normal(), minimum_twist_between_two_points(), MOD_solidify_extrude_modifyMesh(), offset_meet_edge(), pipe_test(), point_between_edges(), quad_calc_error(), rotation_between_vecs_to_quat(), similar_edge_select_exec(), similar_face_select_exec(), similar_vert_select_exec(), blender::draw::statvis_calc_distort(), blender::draw::statvis_calc_overhang(), blender::draw::statvis_calc_sharp(), viewrotate_apply(), and viewrotate_apply_snap().

◆ angle_on_axis_v3v3_v3()

float angle_on_axis_v3v3_v3 ( const float v1[3],
const float v2[3],
const float axis[3] )

Angle between 2 vectors, about an axis (axis can be considered a plane).

Definition at line 486 of file math_vector.c.

References angle_v3v3(), project_plane_normalized_v3_v3v3(), and v2.

Referenced by angle_on_axis_v3v3v3_v3(), and blender::write_weights_for_drawing().

◆ angle_on_axis_v3v3v3_v3()

float angle_on_axis_v3v3v3_v3 ( const float v1[3],
const float v2[3],
const float v3[3],
const float axis[3] )

Angle between 2 vectors defined by 3 coords, about an axis (axis can be considered a plane).

Definition at line 517 of file math_vector.c.

References angle_on_axis_v3v3_v3(), sub_v3_v3v3(), and v2.

Referenced by BM_mesh_wireframe().

◆ angle_poly_v3()

void angle_poly_v3 ( float * angles,
const float * verts[3],
int len )

Definition at line 582 of file math_vector.c.

References angle_normalized_v3v3(), float, len, M_PI, normalize_v3(), sub_v3_v3v3(), and verts.

Referenced by solidify_add_thickness().

◆ angle_quad_v3()

void angle_quad_v3 ( float angles[4],
const float v1[3],
const float v2[3],
const float v3[3],
const float v4[3] )

Definition at line 561 of file math_vector.c.

References angle_normalized_v3v3(), float, M_PI, normalize_v3(), sub_v3_v3v3(), and v2.

◆ angle_signed_on_axis_v3v3_v3()

◆ angle_signed_on_axis_v3v3v3_v3()

float angle_signed_on_axis_v3v3v3_v3 ( const float v1[3],
const float v2[3],
const float v3[3],
const float axis[3] )

◆ angle_signed_v2v2()

◆ angle_tri_v3()

void angle_tri_v3 ( float angles[3],
const float v1[3],
const float v2[3],
const float v3[3] )

Definition at line 543 of file math_vector.c.

References angle_normalized_v3v3(), float, M_PI, normalize_v3(), sub_v3_v3v3(), and v2.

◆ angle_v2v2()

float angle_v2v2 ( const float a[2],
const float b[2] )

Return the shortest angle in radians between the 2 vectors.

Definition at line 432 of file math_vector.c.

References angle_normalized_v2v2(), b, and normalize_v2().

Referenced by bezt_edge_handle_angle(), BKE_mask_spline_project_co(), bm_loop_calc_uv_angle_from_dir(), get_updated_data_for_edge(), and uv_rip_pairs_calc_uv_angle().

◆ angle_v2v2v2()

float angle_v2v2v2 ( const float a[2],
const float b[2],
const float c[2] )

◆ angle_v3v3()

◆ angle_v3v3v3()

float angle_v3v3v3 ( const float a[3],
const float b[3],
const float c[3] )

Return the angle in radians between vecs 1-2 and 2-3 in radians If v1 is a shoulder, v2 is the elbow and v3 is the hand, this would return the angle at the elbow.

note that when v1/v2/v3 represent 3 points along a straight line that the angle returned will be pi (180deg), rather than 0.0.

Definition at line 370 of file math_vector.c.

References angle_normalized_v3v3(), b, normalize_v3(), and sub_v3_v3v3().

Referenced by BM_loop_calc_face_angle(), BM_vert_calc_edge_angle_ex(), DRW_text_edit_mesh_measure_stats(), edbm_fill_grid_vert_tag_angle(), geometry_collide_offset(), knifetool_draw_visible_angles(), laplacian_triangle_area(), mesh_customdatacorrect_init_vert(), MOD_solidify_nonmanifold_modifyMesh(), blender::geometry::p_edge_boundary_angle(), blender::geometry::p_triangle_angles(), ruler_item_as_string(), square_out_adj_vmesh(), and VoronoiVertexWeight::VoronoiVertexWeight().

◆ axis_sort_v3()

void axis_sort_v3 ( const float axis_values[3],
int r_axis_order[3] )

Definition at line 946 of file math_vector.c.

References copy_v3_v3(), SWAP_AXIS, and v.

Referenced by bm_vert_tri_find_unique_edge(), draw_view_axis(), and splineik_evaluate_bone().

◆ bisect_v3_v3v3v3()

void bisect_v3_v3v3v3 ( float r[3],
const float a[3],
const float b[3],
const float c[3] )

Returns a vector bisecting the angle at b formed by a, b and c.

Definition at line 693 of file math_vector.c.

References add_v3_v3v3(), b, normalize_v3(), and sub_v3_v3v3().

Referenced by bevel_list_calc_bisect(), bm_edgering_pair_interpolate(), and make_bevel_list_2D().

◆ clamp_v2()

◆ clamp_v2_v2v2()

MINLINE void clamp_v2_v2v2 ( float vec[2],
const float min[2],
const float max[2] )

Definition at line 1446 of file math_vector_inline.c.

References CLAMP, and min.

Referenced by blender::tests::TEST().

◆ clamp_v3()

◆ clamp_v3_v3v3()

MINLINE void clamp_v3_v3v3 ( float vec[3],
const float min[3],
const float max[3] )

Definition at line 1452 of file math_vector_inline.c.

References CLAMP, and min.

◆ clamp_v4()

◆ clamp_v4_v4v4()

MINLINE void clamp_v4_v4v4 ( float vec[4],
const float min[4],
const float max[4] )

Definition at line 1459 of file math_vector_inline.c.

References CLAMP, and min.

◆ compare_len_v3v3()

MINLINE bool compare_len_v3v3 ( const float v1[3],
const float v2[3],
float limit )

Definition at line 1396 of file math_vector_inline.c.

References dot_v3v3(), sub_v3_v3v3(), and v2.

Referenced by apply_boid_rule(), arrayModifier_doArray(), and dm_mvert_map_doubles().

◆ compare_size_v3v3()

MINLINE bool compare_size_v3v3 ( const float v1[3],
const float v2[3],
float limit )

Definition at line 1403 of file math_vector_inline.c.

References fabsf, and v2.

◆ compare_v2v2()

◆ compare_v2v2_relative()

MINLINE bool compare_v2v2_relative ( const float v1[2],
const float v2[2],
float limit,
int max_ulps )

Definition at line 1366 of file math_vector_inline.c.

References compare_ff_relative(), and v2.

◆ compare_v3v3()

◆ compare_v3v3_relative()

MINLINE bool compare_v3v3_relative ( const float v1[3],
const float v2[3],
float limit,
int max_ulps )

Definition at line 1375 of file math_vector_inline.c.

References compare_ff_relative(), and v2.

◆ compare_v4v4()

MINLINE bool compare_v4v4 ( const float v1[4],
const float v2[4],
float limit )

Definition at line 1360 of file math_vector_inline.c.

References compare_ff(), and v2.

Referenced by colorband_init_from_table_rgba_simple(), compare_m4m4(), and DRW_draw_cursor().

◆ compare_v4v4_relative()

MINLINE bool compare_v4v4_relative ( const float v1[4],
const float v2[4],
float limit,
int max_ulps )

Definition at line 1385 of file math_vector_inline.c.

References compare_ff_relative(), and v2.

◆ copy_v2_fl()

◆ copy_v2_fl2()

◆ copy_v2_uchar()

MINLINE void copy_v2_uchar ( unsigned char r[2],
unsigned char a )

Definition at line 109 of file math_vector_inline.c.

◆ copy_v2_v2()

MINLINE void copy_v2_v2 ( float r[2],
const float a[2] )

Definition at line 37 of file math_vector_inline.c.

Referenced by annotation_add_missing_events(), annotation_draw_apply(), annotation_draw_stroke_buffer(), annotation_smooth_buffer(), annotation_stroke_addpoint(), annotation_stroke_arrow_calc_points(), annotation_stroke_arrow_init_point(), annotation_stroke_filtermval(), applySeqSlide(), applyTrackball(), Bend(), bev_merge_edge_uvs(), bev_merge_uvs(), bezt_to_transdata(), BKE_curvemapping_premultiply(), BKE_curveprofile_move_handle(), BKE_fcurve_bezt_subdivide_handles(), BKE_gpencil_stroke_fill_triangulate(), BKE_image_find_nearest_tile_with_offset(), BKE_image_get_tile_from_pos(), BKE_mask_point_direction_switch(), BKE_mask_point_handle(), BKE_mask_point_segment_co(), BKE_mask_point_segment_diff(), BKE_mask_point_set_handle(), BKE_mask_spline_differentiate_with_resolution(), BKE_mesh_uv_vert_map_create(), BKE_movieclip_get_stable_ibuf(), BKE_tracking_marker_get_subframe_position(), BKE_tracking_plane_marker_get_subframe_corners(), BKE_tracking_plane_track_add(), BKE_tracking_stabilize_frame(), BKE_tracking_track_add(), BLI_convexhull_2d(), BLI_convexhull_aabb_fit_points_2d(), BLI_dial_angle(), BLI_dial_init(), BLI_rng_get_float_unit_v2(), BLI_rng_get_tri_sample_float_v2(), blo_do_versions_280(), bm_corners_to_loops_ex(), bm_face_reverse_uvs(), BM_face_split_edgenet_connect_islands(), BM_face_uv_calc_center_median_weighted(), bmbvh_ray_cast_cb(), bmo_rotate_uvs_exec(), boid_body(), BPy_BMLoopUV_AssignPyObject(), bpy_bmloopuv_uv_set(), bpy_bmvertskin_radius_set(), blender::ed::sculpt_paint::brush_delta_update(), calculate_autoscale_factor(), calculateTransformCenter(), cancel_mouse_slide(), cancel_mouse_slide_plane_marker(), clip_draw_main(), closest_seg_seg_v2(), closest_to_line_segment_v2(), compensate_rotation_center(), blender::draw::compute_normalize_edge_vectors(), blender::ed::greasepencil::image_render::create_shader_ubo(), create_slide_marker_data(), blender::ed::curves::curve_draw_event_add(), curve_draw_event_add(), blender::compositor::dilate_max_velocity(), do_projectpaint_thread(), do_rough_end(), do_versions_affine_tracker_track(), do_vert_pair(), draw_distortion(), draw_spline_points(), draw_tracking_tracks(), draw_widgetbase_batch(), DRW_cache_bone_envelope_outline_get(), DRW_cache_empty_capsule_cap_get(), DRW_cache_lightprobe_cube_get(), DRW_cache_lightprobe_grid_get(), DRW_globals_update(), dynamic_paint_find_island_border(), dynamic_paint_set_init_color_tex_to_imseq_cb(), dynamicPaint_createUVSurface(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_update_from_mouse_delta(), ED_clip_point_undistorted_pos(), ED_mask_cursor_location_get(), ED_node_cursor_location_get(), ED_node_cursor_location_set(), ED_node_tree_push(), ED_node_tree_start(), ED_uvedit_center_from_pivot_ex(), ED_view3d_project_float_ex(), edbm_rip_edge_invoke(), edge_slide_data_init_mval(), blender::draw::extract_uv_stretch_angle_bm(), blender::draw::extract_uv_stretch_angle_mesh(), facetag_cut_cost_edge_uv(), facetag_cut_cost_vert_uv(), fcurve_samples_to_keyframes(), feather_bucket_check_intersect(), find_nearest_edge__doClosest(), find_nearest_tracking_knot_cb(), find_nearest_tracking_segment_cb(), flushTransPaintCurve(), flushTransTracking(), gizmo2d_resize_refresh(), gizmo2d_rotate_refresh(), gizmo2d_xform_draw_prepare(), gizmo_arrow_test_select(), gizmo_button2d_test_select(), gizmo_window_project_2d(), gizmo_window_project_3d(), gpencil_uv_transform_get(), gpencil_vfx_shadow(), gpencil_vfx_wave(), gpu_batch_preset_rectf_tris_color_ex(), GPU_batch_tris_from_poly_2d_encoded(), grab_clone_invoke(), grab_clone_modal(), blender::draw::grease_pencil_geom_batch_ensure(), handle_position_for_minmax(), HC_relaxation_iteration_uv(), image_sample_line_exec(), imagewraposa(), imagewraposa_aniso(), InputAngle(), insert_seam_vert_array(), interp_v2_v2v2_slerp_safe(), blender::bke::pbvh::uv_islands::UVBorder::is_ccw(), is_poly_convex_v2(), isect_seg_seg_v2_point_ex(), isPolyValid(), knife_add_cut(), knife_constrain_axis(), knife_find_closest_vert_of_edge(), knife_find_line_hits(), knife_linehit_set(), knife_snap_angle_relative(), knife_snap_angle_screen(), knife_snap_curr(), knife_snap_update_from_mval(), knifeproject_poly_from_object(), knifetool_update_mval(), knot_remove_error_recalculate(), laplacian_relaxation_iteration_uv(), layerCopyValue_mloop_origspace(), layerInterp_mloop_origspace(), layerInterp_propfloat2(), layerSwap_origspace_face(), layerSwap_tface(), blender::bke::greasepencil::convert::legacy_object_modifier_texture(), line_clip_rect2f(), linehit_to_knifepos(), map_to_plane_axis_angle_v2_v3v3fl(), marker_block_handler(), markerToTransDataInit(), mask_layer_shape_from_mask_point(), mask_layer_shape_to_mask_point(), mask_parent_set_exec(), mask_spline_feather_differentiated_points_with_resolution__double(), MaskHandleToTransData(), maskrasterize_spline_differentiate_point_outset(), blender::bke::mesh_init_origspace(), mesh_loops_to_tessdata(), MOD_lineart_chain_compute_length(), mouse_select_init_data(), mouse_to_closest_corners_edge_distance_squared(), mul_v2_m3v2(), blender::geometry::new_geo_uv_pinindex(), blender::ed::space_node::node_draw_link_bezier_ex(), blender::ed::space_node::node_draw_space(), blender::ed::transform::node_snap_grid_apply(), blender::ed::space_node::nodelink_batch_add_link(), blender::ed::space_node::nodelink_batch_init(), OVERLAY_bounds(), blender::geometry::p_chart_lscm_solve(), blender::geometry::p_chart_stretch_minimize(), blender::geometry::p_chart_uv_to_array(), paint_2d_stroke(), blender::ed::sculpt_paint::paint_brush_stroke_add_step(), blender::ed::sculpt_paint::paint_brush_update(), paint_calculate_rake_rotation(), blender::ed::sculpt_paint::paint_draw_cursor_overlay(), blender::ed::sculpt_paint::paint_line_strokes_spacing(), blender::ed::sculpt_paint::paint_stroke_curve_end(), blender::ed::sculpt_paint::paint_stroke_jitter_pos(), blender::ed::sculpt_paint::paint_stroke_modal(), blender::ed::sculpt_paint::image::ops::paint::paint_stroke_update_step(), paintcurve_cursor_invoke(), paintcurve_slide_invoke(), paintcurve_slide_modal(), PaintCurveConvertHandle(), PaintCurvePointToTransData(), blender::draw::particle_batch_cache_fill_strands_data(), points_to_bezier(), project_bucket_clip_face(), project_paint_op(), project_paint_uvpixel_init(), put_postprocessed_frame_to_cache(), put_stabilized_frame_to_cache(), blender::compositor::read_input_corners(), recalcData_sequencer_image(), relaxation_iteration_uv(), remap_uvs_15(), remap_uvs_19_21_22(), remap_uvs_23(), remap_uvs_3_6_9_12(), remap_uvs_5_10(), remap_uvs_7_11_13_14(), scanfill_preprocess_self_isect(), blender::ed::sculpt_paint::expand::sculpt_expand_modal(), blender::ed::sculpt_paint::sculpt_update_cache_invariants(), blender::ed::sculpt_paint::sculpt_update_cache_variants(), seq_image_transform_quad_get_ex(), SeqToTransData(), sequencer_slip_invoke(), blender::realtime_compositor::Result::set_float2_value(), blender::ed::sculpt_paint::expand::set_initial_components_for_mouse(), blender::io::usd::USDMaterialReader::set_node_input(), set_subsurf_legacy_uv(), setup_vertex_point(), slide_marker_modal(), slide_plane_marker_customdata(), slide_plane_marker_modal(), slide_point_customdata(), slide_point_modal(), slide_spline_curvature_customdata(), slide_spline_curvature_modal(), snap_object_context_runtime_init(), snap_target_node_fn(), spline_under_mouse_get(), ss_sync_from_uv(), ViewOpsData::state_backup(), ViewOpsData::state_restore(), stencil_control_calculate(), stencil_control_invoke(), stencil_restore(), stencil_set_target(), stitch_process_data(), stitch_propagate_uv_final_position(), test_polyfill_template_main(), blender::ed::sculpt_paint::image::ops::paint::texture_paint_init(), blender::render::texturemargin::TextureMarginMap::TextureMarginMap(), TimeToTransData(), to_pixel_space(), track_plane_from_existing_motion(), transform_input_update(), transform_snap_nla_calc(), ui_block_calc_pie_segment(), ui_do_but_CURVE(), ui_do_but_CURVEPROFILE(), ui_pie_handler(), ui_popup_block_refresh(), blender::ed::sculpt_paint::vwpaint::update_cache_invariants(), update_cut_data_for_nurb(), uv_image_outset(), uv_remove_doubles_to_selected(), uv_remove_doubles_to_selected_shared_vertex(), uv_sculpt_stroke_apply(), uv_sculpt_stroke_init(), uv_select_overlap(), uv_set_connectivity_distance(), uv_warp_from_mat4_pair(), uvedit_line_update_endpoint(), uvedit_nearest_uv(), uvedit_pack_islands_multi(), uvedit_vertex_buttons(), uvprojectModifier_do(), UVsToTransData(), v2_quad_corners_to_mat4(), view3d_boxview_clip(), view_pan_exit(), view_pan_init(), view_pan_modal(), blender::ed::object::voxel_size_edit_modal(), walkApply(), walkEvent(), widget_verts_to_triangle_strip(), blender::ed::space_node::WIDGETGROUP_node_corner_pin_refresh(), blender::ed::space_node::WIDGETGROUP_node_crop_refresh(), blender::ed::space_node::WIDGETGROUP_node_sbeam_refresh(), WM_xr_action_state_get(), wm_xr_session_action_states_interpret(), and wm_xr_session_event_create().

◆ copy_v2_v2_char()

MINLINE void copy_v2_v2_char ( char r[2],
const char a[2] )

Definition at line 132 of file math_vector_inline.c.

◆ copy_v2_v2_db()

MINLINE void copy_v2_v2_db ( double r[2],
const double a[2] )

◆ copy_v2_v2_int()

MINLINE void copy_v2_v2_int ( int r[2],
const int a[2] )

Definition at line 190 of file math_vector_inline.c.

Referenced by annotation_stroke_newfrombuffer(), area_split_invoke(), blf_texture_draw(), blender::ui::bonedropper_sample_pt(), curve_pen_invoke(), curve_pen_modal(), datadropper_id_sample_pt(), depthdropper_depth_sample_pt(), DRW_view_data_texture_list_size_validate(), ED_curve_editnurb_select_pick(), ED_view3d_depth_read_cached_seg(), edbm_shortest_path_pick_invoke(), edcu_shortest_path_pick_invoke(), blender::ui::eyedropper_colorband_modal(), blender::ui::eyedropper_colorband_sample_point(), eyedropper_win_area_find(), flyEvent(), ghost_event_proc(), gizmo_preselect_edgering_test_select(), gizmo_preselect_elem_test_select(), GPU_viewport_bind(), ViewOpsData::init_navigation(), initFlyInfo(), initWalkInfo(), knifetool_invoke(), loopcut_init(), paintcurve_slide_invoke(), radial_control_set_initial_mouse(), region_scale_invoke(), select_linked_pick_invoke(), blender::realtime_compositor::Result::set_int2_value(), slide_marker_modal(), text_scroll_apply(), text_scroll_invoke(), textview_draw_string(), transform_gizmo_3d_model_from_constraint_and_mode_set(), UI_block_bounds_set_menu(), ui_block_func_POPOVER(), ui_block_func_POPUP(), ui_but_drag_init(), ui_do_but_NUM(), ui_do_but_SLI(), ui_drag_toggle_set(), ui_handle_menu_event(), ui_mouse_motion_keynav_init(), ui_panel_drag_collapse_handler_add(), ui_popup_block_create(), view3d_userdata_circleselect_init(), viewrotate_invoke_impl(), walkApply(), walkEvent(), WM_cursor_test_motion_and_update(), wm_event_add_ghostevent(), wm_event_add_mousemove(), wm_event_add_mousemove_to_head(), WM_event_add_simulate(), wm_event_cursor_other_windows(), wm_event_do_handlers(), WM_event_drag_start_xy(), wm_gizmomap_highlight_find(), wm_gizmomap_modal_set(), wm_handler_fileselect_do(), wm_handlers_do(), WM_tooltip_init(), WM_window_find_under_cursor(), and wm_window_update_eventstate().

◆ copy_v2_v2_short()

MINLINE void copy_v2_v2_short ( short r[2],
const short a[2] )

Definition at line 155 of file math_vector_inline.c.

Referenced by BKE_lnor_space_custom_normal_to_data().

◆ copy_v2_v2_uchar()

MINLINE void copy_v2_v2_uchar ( unsigned char r[2],
const unsigned char a[2] )

Definition at line 88 of file math_vector_inline.c.

◆ copy_v2db_v2fl()

MINLINE void copy_v2db_v2fl ( double r[2],
const float a[2] )

Definition at line 278 of file math_vector_inline.c.

References double().

Referenced by float_corners_to_double().

◆ copy_v2fl_v2db()

MINLINE void copy_v2fl_v2db ( float r[2],
const double a[2] )

Definition at line 255 of file math_vector_inline.c.

References float.

◆ copy_v2fl_v2i()

MINLINE void copy_v2fl_v2i ( float r[2],
const int a[2] )

◆ copy_v3_fl()

MINLINE void copy_v3_fl ( float r[3],
float f )

Definition at line 71 of file math_vector_inline.c.

Referenced by blender::ed::object::add_generic_get_opts(), blender::ed::object::apply_objects_internal(), applyarmature_transfer_properties(), applyBoneSize(), applyResize(), applySkinResize(), ApplySnapResize(), barycentric_weights(), barycentric_weights_v2(), barycentric_weights_v2_clamped(), barycentric_weights_v2_persp(), BKE_bone_parent_transform_calc_from_matrices(), BKE_bone_parent_transform_clear(), BKE_gpencil_layer_addnew(), BKE_histogram_update_sample_line(), BKE_pchan_bbone_spline_params_get(), BKE_pose_channel_ensure(), BKE_pose_rest(), BKE_texture_get_value_ex(), blo_do_versions_280(), blo_do_versions_290(), blo_do_versions_300(), blo_update_defaults_screen(), BLO_update_defaults_workspace(), bmo_symmetrize_exec(), button2d_draw_intern(), blender::compositor::ColorBalanceNode::convert_to_operations(), curvesurf_prim_add(), default_paint_slot_color_get(), do_version_replace_float_size_with_vector(), do_versions_sequencer_color_balance_sop(), draw_bone_update_disp_matrix_default(), draw_unit_state_create(), drw_call_calc_orco(), DRW_globals_update(), dynamic_paint_output_surface_image_displace_cb(), dynamic_paint_output_surface_image_wave_cb(), dynamic_paint_output_surface_image_wetmap_cb(), ED_armature_ebone_add(), ED_view3d_text_colors_get(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), gizmo_primitive_draw_intern(), gizmo_ruler_draw(), GPENCIL_engine_init(), blender::realtime_compositor::gpu_stack_vector_from_socket(), init_data(), init_mode_impl(), initBakeTime(), initBend(), initBoneEnvelope(), initBoneRoll(), initBoneSize(), initCurveShrinkFatten(), initEdgeSlide_ex(), initGPOpacity(), initGPShrinkFatten(), initMaskShrinkFatten(), initNormalRotation(), initPushPull(), initResize(), initRotation(), initSeqSlide(), initShear(), initShrinkFatten(), initSkinResize(), initTilt(), initTimeScale(), initTimeSlide(), initTimeTranslate(), initToSphere(), initTrackball(), initTranslation(), initVertSlide_ex(), blender::bke::greasepencil::Layer::Layer(), layerDefault_mvert_skin(), light_emission_node_to_energy(), blender::ed::object::lightprobe_add_exec(), make_cube_corner_adj_vmesh(), mat3_to_scale(), mat4_to_scale(), blender::eevee::MaterialModule::MaterialModule(), nearest_world_tree_co(), blender::io::usd::node_search(), ntree_shader_groups_expand_inputs(), blender::ed::object::object_add_exec(), OVERLAY_camera_cache_populate(), OVERLAY_grid_init(), blender::ed::sculpt_paint::paint_cursor_context_init(), pchan_clear_scale(), pointdensity_cache_vertex_weight(), scopes_update_cb(), setTransformViewAspect(), sizelike_evaluate(), blender::io::obj::transform_object(), blender::compositor::TextureBaseOperation::update_memory_buffer_partial(), update_vector_math_node_add_and_subtract_operators(), update_vector_math_node_dot_product_operator(), whiteBalance_init_data(), WIDGETGROUP_navigate_setup(), WIDGETGROUP_xform_shear_setup(), wm_xr_session_base_pose_calc(), and wm_xr_session_draw_data_update().

◆ copy_v3_fl3()

◆ copy_v3_uchar()

MINLINE void copy_v3_uchar ( unsigned char r[3],
unsigned char a )

Definition at line 115 of file math_vector_inline.c.

◆ copy_v3_v3()

MINLINE void copy_v3_v3 ( float r[3],
const float a[3] )

Definition at line 43 of file math_vector_inline.c.

Referenced by _softbody_calc_forces_slice_in_a_thread(), acf_nlaaction_color(), actcon_get_tarmat(), blender::ed::object::add_hook_object(), add_new_bound_vert(), add_points_bone(), add_pose_transdata(), blender::io::usd::add_scale_bias(), add_vertex_invoke(), add_verts_to_dgroups(), addSnapPoint(), Freestyle::BlenderFileLoader::addTriangle(), adj_vmesh(), MeshFairingContext::adjacents_coords_from_loop(), adjust_bound_vert(), adjust_miter_coords(), adjust_miter_inner_coords(), blender::ed::sculpt_paint::pose::align_pivot_local_space(), alter_co(), annotation_arrow_create(), annotation_draw_data_layers(), annotation_draw_onionskins(), annotation_draw_stroke_3d(), annotation_draw_stroke_point(), annotation_get_3d_reference(), annotation_paint_initstroke(), annotation_stroke_arrow_init_conv_point(), blender::ed::object::apply_objects_internal(), apply_raw_diff_v3(), apply_shear_value(), apply_weights_vertex_normal(), applyAlign(), applyarmature_set_edit_position(), applyAxisConstraintVec(), applyBoneSize(), applyFaceNearest(), applyFaceProject(), applyMirror(), applyNormalRotation(), applyObjectConstraintVec(), applyPushPull(), applyResize(), applyRotationValue(), applySkinResize(), applyTrackballValue(), applyTranslation(), applyTransObjects(), armature_bone_primitive_add_exec(), armature_calc_roll_exec(), armature_click_extrude_exec(), armature_click_extrude_invoke(), armature_dissolve_selected_exec(), armature_extrude_exec(), armature_fill_bones_exec(), armature_finalize_restpose(), armature_subdivide_exec(), armature_transform_recurse(), armature_vert_task_with_dvert(), armdef_evaluate(), arrayModifier_doArray(), axis_angle_to_gimbal_axis(), axis_dominant_v3_to_m3(), axis_set_view(), axis_sort_v3(), axisProjection(), base_callback(), basic_force_cb(), basic_integrate(), batch_sphere_lat_lon_vert(), bc_add_global_transform(), bc_add_global_transform(), bc_decompose(), Bend(), bev_create_ngon(), bevel_build_cutoff(), bevel_build_rings(), bevel_list_calc_bisect(), bevel_vert_two_edges(), bevelinside(), bevels_to_filledpoly(), bezier_handle_calc_length_v3(), bezier_output_handle(), bezier_output_handle_inner(), bezt_to_transdata(), blender::math::bicubic_interpolation(), bindVert(), BKE_armature_loc_pose_to_bone(), BKE_armature_loc_world_to_pose(), BKE_armature_where_is_bone(), BKE_bmbvh_new_ex(), BKE_bone_offset_matrix_get(), BKE_bone_parent_transform_apply(), BKE_bone_parent_transform_calc_from_matrices(), BKE_brush_color_set(), BKE_bvhtree_from_mesh_edges_init(), BKE_bvhtree_from_mesh_tris_init(), BKE_constraint_apply_for_pose(), BKE_crazyspace_api_displacement_to_original(), BKE_curve_bevelList_make(), BKE_curve_deform_co(), BKE_curve_eval_geometry(), BKE_curve_nurbs_key_vert_coords_alloc(), BKE_curve_nurbs_vert_coords_apply(), BKE_curve_nurbs_vert_coords_get(), BKE_curve_texspace_calc(), BKE_curvemapping_evaluate_premulRGBF_ex(), BKE_curvemapping_set_black_white(), BKE_displist_fill(), BKE_editlattice_load(), BKE_fluid_modifier_copy(), BKE_gpencil_centroid_3d(), BKE_gpencil_point_coords_apply(), BKE_gpencil_point_coords_get(), BKE_gpencil_stroke_2d_flat(), BKE_gpencil_stroke_2d_flat_ref(), BKE_gpencil_stroke_join(), BKE_gpencil_stroke_smooth_point(), BKE_gpencil_stroke_trim(), BKE_grease_pencil_copy_layer_parameters(), BKE_grease_pencil_point_coords_get(), BKE_histogram_update_sample_line(), BKE_keyblock_convert_to_vertcos(), BKE_keyblock_update_from_curve(), BKE_keyblock_update_from_lattice(), BKE_keyblock_update_from_vertcos(), BKE_lattice_deform_data_eval_co(), BKE_lattice_resize(), BKE_lattice_vert_coords_apply(), BKE_lattice_vert_coords_get(), BKE_lnor_space_custom_data_to_normal(), BKE_lnor_space_define(), BKE_mask_point_set_handle(), BKE_maskrasterize_handle_init(), BKE_mball_minmax_ex(), BKE_mesh_calc_relative_deform(), BKE_mesh_center_of_volume(), BKE_mesh_copy_parameters(), BKE_mesh_eval_geometry(), BKE_mesh_mirror_apply_mirror_on_axis_for_modifier(), BKE_mesh_mirror_bisect_on_mirror_plane_for_modifier(), BKE_mesh_remap_calc_difference_from_mesh(), BKE_mesh_remap_calc_edges_from_mesh(), BKE_mesh_remap_calc_faces_from_mesh(), BKE_mesh_remap_calc_loops_from_mesh(), BKE_mesh_remap_calc_verts_from_mesh(), BKE_mesh_remesh_voxel_fix_poles(), BKE_mesh_texspace_calc(), BKE_mesh_texspace_get(), BKE_mesh_to_curve_nurblist(), BKE_mesh_wrapper_vert_coords_copy(), BKE_multires_construct_tangent_matrix(), BKE_nurb_bezt_calc_plane(), BKE_nurb_bpoint_calc_plane(), BKE_nurb_type_convert(), BKE_nurbList_handles_recalculate(), BKE_nurbList_index_get_co(), BKE_object_dimensions_eval_cached_get(), BKE_object_dimensions_get(), BKE_object_eval_parent(), BKE_object_minmax(), BKE_object_minmax_empty_drawtype(), BKE_object_tfm_backup(), BKE_object_tfm_restore(), BKE_object_transform_copy(), BKE_paint_stroke_get_average(), BKE_palette_from_hash(), BKE_pchan_bbone_handles_compute(), BKE_pchan_bbone_spline_compute(), BKE_pchan_bbone_spline_params_get(), BKE_pchan_to_mat4(), BKE_pose_channel_copy_data(), BKE_pose_copy_pchan_result(), BKE_pose_eval_bone(), BKE_pose_where_is(), BKE_pose_where_is_bone(), BKE_pose_where_is_bone_tail(), BKE_screen_view3d_do_versions_250(), BKE_shrinkwrap_compute_smooth_normal(), BKE_shrinkwrap_project_normal(), BKE_shrinkwrap_snap_point_to_surface(), BKE_sim_debug_data_add_element(), BKE_texture_mapping_init(), blendColors(), BLF_color3fv_alpha(), BLI_bvhtree_bb_raycast(), BLI_bvhtree_get_bounding_box(), BLI_bvhtree_ray_cast_all_ex(), BLI_bvhtree_ray_cast_ex(), BLI_covariance_m3_v3n(), BLI_newton3d_solve(), BLI_rng_get_float_unit_v3(), BLI_rng_get_tri_sample_float_v3(), BLI_scanfill_calc_ex(), BLI_scanfill_vert_add(), BLI_uvproject_from_camera(), BLI_uvproject_from_view(), blo_do_versions_250(), blo_do_versions_260(), blo_do_versions_280(), blo_do_versions_pre250(), blo_update_defaults_scene(), bm_decim_edge_collapse(), BM_edge_calc_face_angle_with_imat3_ex(), bm_edge_symmetry_map(), bm_edgering_pair_interpolate(), bm_edgexedge_isect_cb(), bm_edgexvert_isect_cb(), BM_editselection_center(), BM_editselection_normal(), BM_elem_attrs_copy(), BM_elem_attrs_copy(), BM_elem_attrs_copy(), BM_elem_attrs_copy(), BM_face_calc_area_with_mat3(), BM_face_calc_perimeter_with_mat3(), BM_face_calc_tangent_edge_diagonal(), BM_face_calc_tangent_edge_pair(), BM_face_calc_tangent_vert_diagonal(), BM_face_create(), BM_face_multires_bounds_smooth(), bm_face_split_by_concave(), bm_face_split_edge_find(), BM_face_split_edgenet(), BM_face_split_edgenet_connect_islands(), BM_face_split_n(), bm_face_split_walk_back(), bm_isect_tri_tri(), bm_log_vert_bmvert_copy(), bm_log_verts_restore(), BM_loop_calc_face_normal(), BM_loop_calc_face_normal_safe_ex(), BM_loop_calc_face_normal_safe_vcos_ex(), bm_loop_calc_opposite_co(), BM_loop_interp_from_face(), BM_mesh_bm_from_me(), BM_mesh_calc_uvs_circle(), BM_mesh_copy(), bm_mesh_copy_new_face(), BM_mesh_intersect(), BM_mesh_intersect_edges(), bm_mesh_loops_calc_normals_for_loop(), bm_mesh_loops_calc_normals_no_autosmooth(), bm_mesh_loops_custom_normals_set(), BM_mesh_vert_coords_apply(), bm_to_mesh_shape(), bm_vert_boundary_tangent(), BM_vert_create(), bm_vert_pair_best_face_get(), bm_vert_pair_share_best_splittable_face_cb(), bm_vert_pair_share_splittable_face_cb(), bm_vert_pair_to_matrix(), BM_verts_calc_normal_from_cloud_ex(), BMBVH_EdgeVisible(), bmbvh_find_face_closest_cb(), bmbvh_find_vert_closest_cb(), bmbvh_ray_cast_cb(), bmbvh_ray_cast_handle_hit(), blender::ed::sculpt_paint::smooth::bmesh_four_neighbor_average(), bmo_bisect_plane_exec(), bmo_collapse_exec(), bmo_face_inset_individual(), bmo_inset_region_exec(), bmo_pointmerge_exec(), bmo_poke_exec(), BMO_slot_vec_get(), BMO_slot_vec_set(), bmo_smooth_vert_exec(), bmo_subdivide_edges_exec(), bmo_translate_exec(), bmo_triangle_fill_exec(), boid_body(), boid_brain(), boid_climb(), boid_find_ground(), boids_precalc_rules(), bone_connect_to_existing_parent(), bone_connect_to_new_parent(), bone_direction_worldspace_get(), boundInsert(), box_minmax_bounds_m4(), BPy_BMLayerItem_SetItem(), brush_comb(), blender::ed::sculpt_paint::brush_delta_update(), brush_length(), brush_painter_imbuf_new(), brush_painter_imbuf_update(), brush_puff(), brush_smooth_do(), blender::nodes::decl::Rotation::build(), blender::nodes::decl::Vector::build(), build_boundary(), build_square_in_vmesh(), build_vmesh(), bvhtree_build_from_cloth(), bvhtree_build_from_mvert(), bvhtree_from_mesh_corner_tris_create_tree(), bvhtree_from_mesh_edges_create_tree(), bvhtree_from_mesh_faces_create_tree(), bvhtree_update_from_cloth(), bvhtree_update_from_mvert(), C_BVHTree_FromBMesh(), C_BVHTree_FromObject(), C_BVHTree_FromPolygons(), C_Matrix_LocRotScale(), blender::ed::sculpt_paint::filter::cache_init(), blender::ed::sculpt_paint::expand::cache_initial_config_set(), cache_key_incremental_rotation(), cage_mapped_verts_callback(), blender::ed::object::calc_active_center(), blender::ed::object::calc_active_center_for_editmode(), blender::ed::object::calc_active_center_for_posemode(), calc_bbox(), blender::ed::sculpt_paint::calc_brush_local_mat(), blender::ed::sculpt_paint::calc_brush_plane(), calc_curve_deform(), blender::bke::pbvh::calc_grids_intersect_data(), calc_initial_placement_point_from_view(), calc_ortho_extent(), calc_point_from_barycentric_cage(), calc_point_from_barycentric_extrusion(), calc_shapeKeys(), calc_solidify_normals(), calc_tangent_loop(), calc_tangent_spaces(), calculate_profile_segments(), calculate_reprojection_error_at_marker(), calculateCenter(), calculateCenterActive(), calculateCenterCursor(), calculateCenterLocal(), calculateCenterMedian(), calculateTransformCenter(), camera_frame_fit_calc_from_data(), camera_stereoscopy_extra(), camera_view3d_reconstruction(), ccgDM_to_MVert(), change_input_socket_to_rotation_type(), blender::ed::sculpt_paint::face_set::change_visibility_exec(), childof_evaluate(), choose_winner(), clampto_evaluate(), blender::bke::pbvh::clip_ray_ortho(), clip_segment_v3_plane(), Freestyle::BlenderFileLoader::clipTriangle(), closer_v3_v3v3v3(), closest_on_tri_to_point_v3(), closest_point_on_surface(), closest_ray_to_segment_v3(), closest_to_line_segment_v3(), closest_to_ray_v3(), blender::ed::sculpt_paint::cloth::cloth_brush_collision_cb(), cloth_calc_force(), cloth_calc_helper_forces(), cloth_calc_spring_force(), cloth_collision(), cloth_collision_response_static(), cloth_continuum_add_hair_segments(), cloth_continuum_step(), cloth_from_object(), cloth_hair_update_bending_rest_targets(), cloth_hair_update_bending_targets(), cloth_selfcollision(), cloth_selfcollision_response_static(), cloth_to_object(), cloth_update_verts(), collision_check(), collision_fail(), collision_get_collider_velocity(), collision_newton_rhapson(), collision_point_velocity(), collision_response(), Color_CreatePyObject(), blender::ed::sculpt_paint::color::color_filter_task(), colorfn(), colorfn(), compute_collision_point_edge_tri(), compute_collision_point_tri_tri(), compute_mdisp_quad(), blender::ed::curves::convert_to_particle_system::compute_mface_weights_for_position(), blender::draw::compute_normalize_edge_vectors(), computeBindWeights(), computeImplictRotations(), connection_node_mat(), constraint_target_to_mat4(), constraints_rotation_impl(), constraintTransLim(), contarget_get_lattice_mat(), contarget_get_mesh_mat(), converge(), blender::ed::object::convert_psys_to_mesh(), convert_tree(), blender::io::usd::USDMaterialReader::convert_usd_transform_2d(), copy_bone_transform(), copy_mesh_vert(), blender::io::obj::copy_property_from_node(), SnapData_Mesh::copy_vert_no(), cp_fmatrix(), blender::ed::curves::create_Bezier(), GeometryExporter::create_normals(), blender::ed::curves::create_NURBS(), blender::io::usd::create_transform2d_shader(), blender::ed::transform::create_transform_data_for_node(), createSpaceNormal(), createTransArmatureVerts(), createTransCursor_2D_impl(), createTransCursor_view3d(), createTransCurveVerts(), createTransEditVerts(), createTransGPencil_curves(), createTransGPencil_strokes(), createTransLatticeVerts(), createTransMBallVerts(), createTransMeshSkin(), createTransMeshVertCData(), createTransNlaData(), createTransParticleVerts(), createTransSculpt(), createTransTexspace(), GeometryExporter::createVertsSource(), cubemap_glob(), cubic_subdiv(), cuboid_do(), blender::ed::sculpt_paint::cursor_draw_point_screen_space(), blender::ed::sculpt_paint::cursor_draw_tiling_preview(), blender::ed::curves::curve_draw_event_add(), curve_draw_event_add(), blender::ed::curves::curve_draw_event_add_first(), curve_draw_event_add_first(), curve_draw_exec(), curve_draw_invoke(), blender::ed::curves::curve_draw_stroke_3d(), curve_draw_stroke_3d(), curve_mapping_to_ocio_settings(), curve_to_displist(), curvemap_make_table(), blender::ed::curves::curves_draw_exec(), blender::ed::curves::curves_draw_invoke(), cutEdges(), damptrack_do_transform(), default_paint_slot_color_get(), deflect_emitter_iter(), deform_verts(), deformVert(), deformVerts_do(), dist_signed_squared_to_corner_v3v3v3(), dist_squared_ray_to_aabb_v3(), dist_squared_ray_to_aabb_v3_precalc(), dist_squared_ray_to_seg_v3(), blender::bke::pbvh::dist_squared_ray_to_tri_v3_fast(), distlimit_evaluate(), distribute_grid(), blender::ed::sculpt_paint::do_brush_action(), do_guides(), do_kink(), do_kink_spiral_deform(), blender::ed::sculpt_paint::paint::image::do_paint_pixels(), do_path_effectors(), do_physical_effector(), do_projectpaint_draw(), do_projectpaint_draw_f(), do_projectpaint_thread(), do_rough(), do_rough_curve(), blender::ed::sculpt_paint::cloth::do_simulation_step(), do_step_cloth(), do_texture_effector(), blender::ed::sculpt_paint::do_tiled(), do_version_bone_head_tail_237(), do_version_constraints_radians_degrees_270_5(), do_versions_after_linking_280(), do_versions_socket_default_value_259(), blender::io::usd::dome_light_to_world_material(), draw_frustum_bound_sphere_calc(), draw_points(), draw_primitive_view_impl(), draw_tracking_tracks(), drawEdgeSlide(), drawLine(), drawObjectConstraint(), drw_shgroup_bone_envelope(), DRW_text_cache_add(), DRW_text_cache_draw(), dvar_eval_locDiff(), dvar_eval_transChan(), dynamic_paint_brush_velocity_compute_cb(), dynamic_paint_generate_bake_data_cb(), dynamic_paint_paint_mesh_cell_point_cb_ex(), dynamic_paint_paint_particle_cell_point_cb_ex(), dynamic_paint_paint_single_point_cb_ex(), dynamic_paint_prepare_effect_cb(), dynamic_paint_set_init_color_tex_to_imseq_cb(), dynamic_paint_set_init_color_tex_to_vcol_cb(), blender::ed::sculpt_paint::dynamic_topology_update(), dynamicPaint_generateBakeData(), dynamicPaint_mixPaintColors(), dynamicPaint_paintMesh(), dynamicPaint_updatePointData(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_edit_invoke(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_parallel_lines_draw(), ease_handle_axis(), ebone_spline_preview(), ED_armature_ebone_from_mat4(), ED_armature_ebone_to_mat4(), ED_armature_ebone_transform_mirror_update(), ED_armature_from_edit(), ED_armature_origin_set(), ED_curve_active_center(), ED_curve_add_nurbs_primitive(), ed_editcurve_addvert(), ED_gizmotypes_snap_3d_data_get(), ED_gpencil_drawing_reference_get(), ED_gpencil_tpoint_to_point(), ED_image_draw_info(), ED_mball_add_primitive(), ED_mesh_deform_bind_callback(), ED_node_shader_default(), ED_space_clip_color_sample(), ED_space_image_color_sample(), ED_space_node_color_sample(), ED_transform_calc_gizmo_stats(), ED_transform_snap_object_project_ray_ex(), ED_transform_snap_object_project_view3d_ex(), ED_transverts_create_from_obedit(), ED_transverts_update_obedit(), ED_view3d_autodist_last_get(), ED_view3d_autodist_last_set(), ED_view3d_background_color_get(), ED_view3d_cameracontrol_acquire(), ED_view3d_cameracontrol_release(), ED_view3d_cameracontrol_update(), ED_view3d_clipping_clamp_minmax(), ED_view3d_cursor3d_position(), ED_view3d_cursor3d_position_rotation(), ED_view3d_cursor_snap_state_prevpoint_set(), ED_view3d_global_to_vector(), ED_view3d_minmax_verts(), ed_view3d_project__internal(), ED_view3d_project_float_v2_m4(), ED_view3d_project_float_v3_m4(), ED_view3d_smooth_view_ex(), ED_view3d_win_to_3d(), ED_view3d_win_to_origin(), edbm_average_normals_exec(), edbm_blend_from_shape_exec(), edbm_dupli_extrude_cursor_invoke(), edbm_extrude_discrete_faces(), edbm_extrude_edge_exclude_mirror(), edbm_extrude_repeat_exec(), edbm_normals_tools_exec(), edbm_point_normals_modal(), edbm_polybuild_face_at_cursor_invoke(), edbm_polybuild_split_at_cursor_invoke(), edbm_screw_exec(), EDBM_verts_mirror_apply(), EDBM_verts_mirror_cache_begin_ex(), edge_pos_direction_worldspace_get(), edge_slide_apply_elem(), edge_slide_transform_matrix_fn(), edgering_vcos_get(), edgering_vcos_get_pair(), edit_to_particle(), ElementMirror(), ElementResize(), ElementRotation_ex(), blender::ed::sculpt_paint::ensure_valid_pivot(), Euler_CreatePyObject(), eulO_to_gimbal_axis(), AnimationImporter::evaluate_animation(), evaluate_curve_type_object(), blender::bke::subdiv::evaluate_vertex_and_apply_displacement_copy(), blender::bke::subdiv::evaluate_vertex_and_apply_displacement_interpolate(), execute_posetree(), execute_scene(), explodeMesh(), blender::draw::extract_loose_positions_subdiv(), blender::draw::extract_tan_init_common(), blender::draw::extract_tangents_subdiv(), blender::draw::extract_uv_stretch_angle_bm(), blender::draw::extract_uv_stretch_angle_mesh(), extrude_points_from_selected_vertices(), blender::ui::greasepencil::eyedropper_add_material(), blender::ui::greasepencil::eyedropper_add_palette_color(), eyedropper_color_sample(), eyedropper_color_set(), eyedropper_init(), blender::ui::greasepencil::eyedropper_set_brush_color(), blender::bke::mesh::face_angles_calc(), blender::bke::mesh::face_area_centroid_calc(), face_dupli_from_editmesh(), face_to_plane(), facetag_cut_cost_edge(), fcurves_to_pchan_links_get(), fill_add_joint(), fill_profile_fracs(), find_internal_spring_target_vertex(), flushTransParticles(), flyApply(), followpath_get_tarmat(), followtrack_distance_from_viewplane_get(), followtrack_evaluate_using_2d_position(), blender::draw::View::frustum_culling_sphere_calc(), blender::ed::sculpt_paint::trim::generate_geometry(), generate_vert_coordinates(), get_angular_velocity_vector(), get_bone_wire_color(), get_cpa_texture(), get_effector_data(), blender::ed::object::get_new_constraint_target(), blender::ed::sculpt_paint::trim::get_origin_and_normal(), get_profile_point(), get_vertexcos__mapFunc(), getSnapPoint(), getTransformOrientation_ex(), give_parvert(), gizmo2d_xform_draw_prepare(), gizmo_3d_calc_pos(), gizmo_3d_dial_matrixbasis_calc(), gizmo_arrow_modal(), gizmo_bbone_offset_get(), gizmo_bbone_offset_set(), gizmo_cage2d_modal(), gizmo_dial_draw(), gizmo_dial_draw_select(), gizmo_dial_setup(), gizmo_mesh_extrude_draw_prepare(), gizmo_mesh_extrude_orientation_matrix_set_for_adjust(), gizmo_mesh_placement_modal_from_setup(), gizmo_mesh_spin_init_refresh(), gizmo_mesh_spin_init_refresh_axis_orientation(), gizmo_mesh_spin_redo_setup(), gizmo_mesh_spin_redo_update_from_op(), gizmo_mesh_spin_redo_update_orient_axis(), gizmo_move_invoke(), gizmo_snap_rna_location_get_fn(), gizmo_snap_rna_location_set_fn(), gizmo_snap_rna_normal_get_fn(), gizmo_snap_rna_prevpoint_get_fn(), globallen(), gpencil_depth_plane(), GPENCIL_engine_init(), gpencil_layer_final_tint_and_alpha_get(), gpencil_light_ambient_add(), gpencil_light_pool_populate(), gpencil_object_cache_add(), gpencil_stroke_convertcoords(), gpencil_stroke_editcurve_generate_edgecases(), gpencil_stroke_join_islands(), gpencil_vfx_glow(), gpencil_vfx_shadow(), gpencil_vfx_swirl(), gpencil_viewport_material_overrides(), GPU_material_sss_profile_create(), blender::realtime_compositor::gpu_stack_vector_from_socket(), blender::draw::grease_pencil_geom_batch_ensure(), grid_tangent_matrix(), grid_to_world(), hair_collision(), hair_create_input_mesh(), hair_to_particle(), handleNumInput(), harmonic_coordinates_bind(), harmonic_ray_callback(), headerTranslation(), heat_ray_source_visible(), hit_depth_create(), hue_correct_apply_threaded(), ibuf_get_color(), IMB_buffer_float_from_float(), IMB_buffer_float_from_float_mask(), IMB_colormanagement_blackbody_temperature_to_rgb(), IMB_colormanagement_color_picking_to_scene_linear_v3(), IMB_colormanagement_get_luminance_coefficients(), IMB_colormanagement_pixel_to_display_space_v3(), IMB_colormanagement_scene_linear_to_color_picking_v3(), IMB_colormanagement_wavelength_to_rgb(), imb_stereo3d_read_interlace(), imb_stereo3d_write_interlace(), imm_draw_cube_corners_3d(), blender::io::usd::import_skeleton(), blender::ed::sculpt_paint::gesture::init_common(), init_lfvector(), init_meta(), ViewOpsData::init_navigation(), init_selected_bezt_handles(), blender::ed::object::init_transform_on_add(), initBend(), blender::ed::sculpt_paint::trim::initialize_cursor_info(), initShear_mouseInputMode(), insert_bezt_to_nurb(), insert_bp_to_nurb(), Freestyle::BlenderFileLoader::insertShapeNode(), integrate_particle(), interp_barycentric_corner_tri(), interp_barycentric_tri_v3(), interp_bilinear_grid(), interp_bilinear_mpoly(), interp_bilinear_quad_v3(), interp_line_v3_v3v3v3(), interp_m4_m4m4(), interp_v3_v3v3_slerp_safe(), interp_vmesh(), intersect_dm_quad_weights(), intersect_line_tri(), is_quad_symmetric(), isect_line_line_epsilon_v3(), isect_plane_plane_v3(), isect_ray_aabb_v3(), isect_ray_aabb_v3_precalc(), isect_sweeping_sphere_tri_v3(), isect_tri_tri_v3(), isect_tri_tri_v3_ex(), join_mesh_single(), key_block_get_data(), keyblock_data_convert_to_curve(), keyblock_data_convert_to_lattice(), kinematic_get_tarmat(), knife_add_cut(), knife_bm_tri_cagecos_get(), knife_bvh_raycast(), knife_bvh_raycast_cb(), knife_constrain_axis(), knife_find_closest_edge_of_face(), knife_find_line_hits(), knife_linehit_face_test(), knife_linehit_set(), knife_snap_angle_relative(), knife_snap_curr(), knifetool_draw_angle(), knifetool_raycast_planes(), blender::bke::greasepencil::Layer::Layer(), layerCopyValue_normal(), layerInterp_mvert_skin(), layerInterp_propfloat3(), layerInterp_shapekey(), blender::bke::greasepencil::convert::legacy_gpencil_to_grease_pencil(), blender::bke::greasepencil::convert::legacy_object_modifier_array(), blender::bke::greasepencil::convert::legacy_object_modifier_color(), blender::bke::greasepencil::convert::legacy_object_modifier_hook(), blender::bke::greasepencil::convert::legacy_object_modifier_offset(), blender::bke::greasepencil::convert::legacy_object_modifier_tint(), light_emission_node_to_energy(), light_emission_unify(), limit_dist_v3(), lineart_chain_append_point(), lineart_chain_prepend_point(), linehit_to_knifepos(), loc_rot_size_to_mat4(), blender::ed::object::location_from_view(), loclike_evaluate(), loop_normal_editdata_init(), loose_data_instantiate_collection_process(), loose_data_instantiate_obdata_process(), make_bbone_spline_matrix(), make_bevel_list_3D_tangent(), make_bevel_list_segment_3D(), make_boneList_recursive(), make_box_from_metaelem(), make_child_duplis_verts_from_editmesh(), make_child_duplis_verts_from_mesh(), make_cube_corner_adj_vmesh(), make_cube_corner_square(), make_cube_corner_square_in(), make_duplis_font(), make_duplis_particle_system(), make_unit_cube_map(), blender::bke::make_vertexcos__mapFunc(), markerToTransCurveDataInit(), markerToTransDataInit(), mask_calc_point_handle(), MaskHandleToTransData(), MaskPointToTransData(), mat3_align_axis_to_v3(), mat3_normalized_to_compatible_eul(), mat3_normalized_to_compatible_eulO(), mat3_normalized_to_eul(), mat3_normalized_to_eul2(), mat3_normalized_to_eulO(), mat3_normalized_to_eulo2(), mat3_to_vec_roll(), mat4_to_dquat(), mat4_to_loc_quat(), mat4_to_loc_rot_size(), match_texture_space_exec(), material_default_surface_init(), matrix_as_3x3(), Matrix_to_euler(), Matrix_translation_set(), mball_select_similar_type_get(), merge_frame_corners(), merge_target(), mesh_bisect_exec(), blender::geometry::boolean::mesh_bm_concat(), mesh_calc_eigen_matrix(), blender::bke::mesh::mesh_calc_face_volume_centroid_with_reference_center(), mesh_calc_hq_normal(), mesh_calc_tri_tessface(), mesh_cdata_transdata_create(), mesh_copy_texture_space_from_curve_type(), mesh_corner_tris_nearest_point(), mesh_corner_tris_target_project(), mesh_edges_nearest_point(), mesh_edges_spherecast(), mesh_faces_nearest_point(), mesh_island_to_astar_graph_edge_process(), blender::geometry::mesh_merge_by_distance_connected(), blender::bke::mesh::mesh_normals_corner_custom_set(), mesh_nurbs_displist_to_mesh(), mesh_remap_interp_face_data_get(), mesh_remove_doubles_on_axis(), mesh_skin_apply_to_mirror(), mesh_skin_transdata_create(), mesh_symmetry_snap_exec(), mesh_transdata_center_copy(), mesh_transdata_mirror_apply(), mesh_tris_nearest_point_dp(), mesh_verts_spherecast_do(), meshdeform_dynamic_bind(), meshdeform_inside_cage(), meshdeform_matrix_solve(), meshdeform_ray_tree_intersect(), blender::ed::object::metaball_coords_and_quats_apply_with_mat4(), blender::ed::object::metaball_coords_and_quats_get(), min_dist_dir_update(), minmax_evaluate(), mixColors(), MOD_get_texture_coords(), MOD_solidify_extrude_modifyMesh(), MOD_solidify_nonmanifold_modifyMesh(), blender::ed::object::modifier_skin_armature_create(), modify_mesh(), modify_mesh(), motion_path_cache(), motionpaths_calc_bake_targets(), move_bezt_handle_or_vertex_by_displacement(), move_bp_to_location(), move_profile_plane(), move_weld_profile_planes(), mul_v2_m3v3(), mul_v3_m3v3(), multires_copy_grid(), multires_create_grids_in_unsubdivided_base_mesh(), multires_reshape_apply_base_refit_base_mesh(), multires_reshape_orig_grid_element_for_grid_coord(), multires_reshape_vertcos_foreach_single_vertex(), multires_subdivide_create_object_space_linear_grids(), multiresbake_get_normal(), multitex(), multitex_nodes_intern(), mvert_to_particle(), new_knife_vert(), blender::ed::object::new_primitive_matrix(), blender::ed::space_node::node_buts_curvecol(), blender::ed::space_node::node_composit_buts_huecorrect(), blender::ed::space_node::node_copy_color_exec(), blender::bke::pbvh::node_raycast_bmesh(), blender::io::usd::node_search(), node_socket_init_default_value_data(), blender::ed::space_node::nodelink_batch_add_link(), nodestack_get_vec(), normalEditModifier_do_directional(), ntree_shader_expand_socket_default(), ob_parbone(), ob_parcurve(), blender::ed::object::object_apply_location(), blender::ed::object::object_apply_rotation(), object_blend_read_data(), blender::ed::object::object_clear_rot(), object_grid_element_to_tangent_displacement(), blender::ed::object::object_hook_assign_exec(), blender::ed::object::object_origin_set_exec(), blender::ed::object::object_rand_transverts(), blender::ed::object::object_shape_key_mirror(), blender::draw::overlay::Cameras::object_sync(), blender::ed::object::object_transfer_mode_reposition_view_pivot(), blender::ed::object::object_transform_axis_target_modal(), blender::ed::object::object_warp_verts_exec(), ObjectToTransData(), offset_child(), offset_in_plane(), offset_meet(), offset_meet_edge(), offset_meet_lines_percent_or_absolute(), offset_on_edge_between(), orthogonalize_stable(), blender::ed::outliner::outliner_icon_background_colors(), OVERLAY_background_cache_init(), OVERLAY_bounds(), OVERLAY_camera_cache_populate(), OVERLAY_forcefield(), OVERLAY_gpencil_legacy_cache_init(), OVERLAY_grid_init(), OVERLAY_light_cache_populate(), OVERLAY_particle_cache_populate(), OVERLAY_texture_space(), OVERLAY_volume_extra(), blender::geometry::p_chart_correct_degenerate_triangle_point(), blender::geometry::p_chart_correct_degenerate_triangles2(), blender::geometry::p_edge_matrix(), blender::geometry::p_edge_matrix(), blender::geometry::p_face_stretch(), blender::geometry::p_vert_add(), blender::geometry::p_vert_copy(), paint_2d_bucket_fill(), paint_brush_color_get(), blender::ed::sculpt_paint::paint_brush_stroke_add_step(), blender::ed::sculpt_paint::paint_cursor_context_init(), blender::ed::sculpt_paint::paint_cursor_sculpt_session_update_and_init(), blender::ed::sculpt_paint::paint_cursor_update_pixel_radius(), blender::ed::sculpt_paint::paint_draw_tex_overlay(), paint_init_pivot(), blender::ed::sculpt_paint::paint_line_strokes_spacing(), paint_proj_begin_clone(), paint_sample_color(), blender::ed::sculpt_paint::paint_space_stroke(), paintcurve_point_add(), PaintCurveConvertHandle(), PaintCurvePointToTransData(), palette_color_add_exec(), palette_join_exec(), palette_sort_exec(), blender::ed::object::parent_set(), partial_buffer_update_rect(), blender::draw::particle_batch_cache_fill_segments_edit(), blender::draw::particle_batch_cache_fill_segments_proc_pos(), particle_intersect_mesh(), particles_fluid_step(), blender::bke::pbvh::pbvh_bmesh_vert_create(), pchan_clear_rot(), PE_lasso_select(), PE_minmax(), PE_mirror_particle(), PE_update_mirror_cache(), pivotcon_evaluate(), plane_from_point_normal_v3(), plane_to_point_vector_v3(), planeMarkerToTransDataInit(), point_density_sample_func(), point_is_visible(), point_normals_apply(), pointdensity(), pointdensity_cache_object(), pointdensity_cache_psys(), pointdensity_color(), poly_rotate_plane(), pose_bone_do_paste(), pose_channel_flush_to_orig_if_needed(), pose_grab_with_ik_add(), pose_mirror_info_init(), pose_mirror_info_restore(), poseAnim_mapping_reset(), position_tail_on_spline(), precalc_guides(), prepare_for_decimate(), proj_paint_state_screen_coords_init(), proj_paint_state_vert_flags_init(), proj_paint_state_viewport_init(), project_paint_PickFace(), project_paint_uvpixel_init(), project_to_edge(), psys_apply_child_modifiers(), psys_cache_edit_paths_iter(), psys_cache_paths(), psys_face_mat(), psys_get_birth_coords(), psys_get_dupli_path_transform(), psys_get_from_key(), psys_get_particle_on_path(), psys_get_texture(), psys_interpolate_face(), psys_mat_hair_to_object(), psys_mat_hair_to_orco(), psys_particle_on_dm(), psys_particle_on_emitter(), psys_particle_on_shape(), psys_thread_context_init_distribute(), psys_thread_create_path(), ptcache_cloth_extra_read(), ptcache_cloth_interpolate(), ptcache_softbody_interpolate(), put_postprocessed_frame_to_cache(), py_bvhtree_nearest_point_cb(), py_bvhtree_nearest_point_range_cb(), py_bvhtree_raycast_cb(), quad_co(), quad_verts_to_barycentric_tri(), Quaternion_matmul(), RE_bake_normal_world_to_object(), RE_bake_normal_world_to_tangent(), RE_bake_normal_world_to_world(), RE_point_density_minmax(), blender::bke::subdiv::read_displacement_grid(), blender::eevee::IrradianceBake::read_result_packed(), recalc_emitter_field(), recalcData_edit_armature(), reference_to_scratch(), SnapData::register_result(), rekey_particle(), rekey_particle_to_time(), remap_hair_emitter(), remove_doubles_exec(), remove_tagged_keys(), blender::ed::sculpt_paint::undo::restore_position_from_undo_step(), restoreBones(), restoreElement(), rotateBevelPiece(), rotateDifferentialCoordinates(), rotlike_evaluate(), rotlimit_evaluate(), rule_average_speed(), rule_avoid_collision(), rule_fight(), rule_follow_leader(), rule_goal_avoid(), sample_color_invoke(), save_hair(), sb_deflect_face(), sb_detect_aabb_collisionCached(), sb_detect_edge_collisionCached(), sb_detect_face_collisionCached(), sb_detect_face_pointCached(), sb_detect_vertex_collisionCached(), SB_estimate_transform(), scale_point_factor(), scopes_update_cb(), SCULPT_calc_vertex_displacement(), SCULPT_cursor_geometry_info_update(), sculpt_kelvinet_integrate(), SCULPT_stroke_get_location_ex(), SCULPT_tilt_effective_normal_get(), blender::ed::sculpt_paint::sculpt_update_cache_invariants(), SCULPT_vertex_is_occluded(), SeqToTransData(), SeqToTransData(), SeqToTransData(), set_axis(), blender::compositor::ConstantLevelColorCurveOperation::set_black_level(), blender::realtime_compositor::Result::set_float3_value(), blender::compositor::ColorBalanceLGGOperation::set_gain(), blender::compositor::ColorBalanceLGGOperation::set_gamma_inv(), blender::compositor::ColorBalanceLGGOperation::set_lift(), set_mapped_co(), blender::io::usd::USDMaterialReader::set_node_input(), blender::compositor::ColorBalanceASCCDLOperation::set_offset(), set_origin_exec(), blender::ed::sculpt_paint::set_pivot_position_exec(), set_plane_exec(), blender::compositor::ColorBalanceASCCDLOperation::set_power(), set_profile_params(), set_prop_dist(), blender::io::obj::set_property_of_socket(), blender::compositor::ColorBalanceASCCDLOperation::set_slope(), blender::compositor::ConstantLevelColorCurveOperation::set_white_level(), setNearestAxis3d(), setup_vertex_point(), shape_propagate(), shrinkwrap_calc_nearest_surface_point_cb_ex(), shrinkwrap_calc_nearest_vertex_cb_ex(), shrinkwrap_get_tarmat(), shrinkwrap_snap_with_side(), SIM_cloth_solve(), SIM_hair_volume_create_vertex_grid(), SIM_hair_volume_grid_geometry(), SIM_hair_volume_grid_velocity(), SIM_mass_spring_force_spring_bending_hair(), similar_face_select_exec(), similar_vert_select_exec(), simple_helper(), SimpleDeformModifier_do(), sizelimit_evaluate(), blender::ed::object::skin_armature_bone_create(), skin_smooth_hulls(), slide_dist(), snap_curs_to_sel_ex(), snap_grid(), snap_object_context_runtime_init(), snap_sel_to_grid_exec(), snap_selected_to_location(), snap_source_center_fn(), snap_source_closest_fn(), snap_target_view3d_fn(), snap_to_pipe_profile(), blender::bke::node_interface::socket_types::socket_data_init_impl(), softbody_apply_forces(), softbody_apply_goalsnap(), softbody_reset(), softbody_restore_prev_step(), softbody_to_object(), softbody_update_positions(), solve_parenting(), blender::ed::sculpt_paint::pose::solve_scale_chain(), sort_bmelem_flag(), sph_force_cb(), sph_particle_courant(), sphere_do(), spin_invoke(), splineik_evaluate_bone(), spring_hairbend_estimate_dfdv(), spring_hairbend_estimate_dfdx(), spring_hairbend_forces(), springs_from_mesh(), square_out_adj_vmesh(), ViewOpsData::state_backup(), state_link_add(), ViewOpsData::state_restore(), store_vertex_data(), stretchto_evaluate(), blender::ed::curves::stroke_elem_project(), stroke_elem_project(), blender::ed::curves::stroke_elem_project_fallback(), stroke_elem_project_fallback(), blender::ed::sculpt_paint::stroke_update_step(), studiolight_create_matcap_gputexture(), studiolight_lights_eval(), blender::bke::subdiv::subdiv_accumulate_vertex_displacement(), blender::bke::subdiv::subdiv_mesh_vertex_corner(), blender::bke::subdiv::subdiv_vertex_orco_evaluate(), subdivide_particle(), subdividenurb(), surfaceGenerateGrid(), svert_from_mvert(), target_callback(), target_project_edge(), target_project_solve_point_tri(), target_project_tri_jacobian(), test_projected_vert_dist(), blender::bke::tests::test_vec_roll_to_mat3_normalized(), TimeToTransData(), to_sphere_radius_update(), track_channel_color(), track_colors(), track_copy_color_exec(), transdata_center_global_get(), transdata_elem_bend(), transdata_elem_push_pull(), transdata_elem_rotate(), transdata_elem_to_sphere(), transdata_elem_translate(), transdata_restore_basic(), transform_constraint_get_nearest(), transform_convert_clip_mirror_modifier_apply(), transform_convert_mesh_islands_calc(), transform_data_ext_rotate(), transform_evaluate(), transform_gizmo_3d_model_from_constraint_and_mode_set(), blender::ed::sculpt_paint::transform_matrices_init(), transform_pivot_set_m4(), transform_view_vector_calc(), blender::ed::curves::transverts_from_curves_positions_create(), tri_corner_adj_vmesh(), tri_to_quat_ex(), blender::ed::curves::convert_to_particle_system::try_convert_single_object(), ui_apply_but(), ui_block_func_COLOR(), ui_block_open_begin(), ui_but_drag_init(), ui_but_set_float_array(), ui_but_v3_get(), ui_but_v3_set(), ui_color_picker_update_hsv(), ui_draw_but_HSVCIRCLE(), ui_draw_but_HSVCUBE(), ui_draw_but_UNITVEC(), ui_draw_gradient(), ui_handle_button_return_submenu(), ui_numedit_begin(), ui_numedit_but_HSVCIRCLE(), ui_numedit_but_HSVCUBE(), ui_tooltip_region_draw_cb(), update_hit(), update_location_for_2d_curve(), update_mapping_node_inputs_and_properties(), blender::compositor::ColorCurveOperation::update_memory_buffer_partial(), blender::compositor::ConstantLevelColorCurveOperation::update_memory_buffer_partial(), blender::compositor::ConvertColorToVectorOperation::update_memory_buffer_partial(), blender::compositor::ConvertVectorToColorOperation::update_memory_buffer_partial(), blender::compositor::ConvolutionEdgeFilterOperation::update_memory_buffer_partial(), blender::compositor::CryptomattePickOperation::update_memory_buffer_partial(), blender::compositor::InvertOperation::update_memory_buffer_partial(), blender::compositor::SetAlphaReplaceOperation::update_memory_buffer_partial(), blender::compositor::MixColorOperation::update_memory_buffer_row(), blender::compositor::MixHueOperation::update_memory_buffer_row(), blender::compositor::MixSaturationOperation::update_memory_buffer_row(), blender::ed::sculpt_paint::update_modal_transform(), blender::ed::sculpt_paint::update_sculpt_normal(), update_vector_math_node_normalize_operator(), update_world_cos(), updateDuplicateLocRotConstraintSettings(), updateDuplicateTransformConstraintSettings(), uv_map_transform_center(), uvedit_unwrap_cube_project(), UVsToTransData(), v3d_cursor_poject_surface_normal(), v3d_cursor_snap_draw_fn(), v3d_cursor_snap_update(), v3d_object_dimension_buts(), vcloud_estimate_transform_v3(), vcos_get(), vcos_get_pair(), vec_apply_track(), vec_to_quat(), vectomat(), vectorfn(), vert2geom_task_cb_ex(), vert_slide_apply_elem(), blender::io::obj::OBJCurve::vertex_coordinates(), VertsToTransData(), view3d_boundbox_clip_m4(), view3d_boxview_copy(), view3d_camera_to_view_selected_impl(), view3d_interactive_add_begin(), view3d_interactive_add_calc_snap(), view3d_interactive_add_modal(), view3d_ob_drop_matrix_from_snap(), view3d_ob_drop_on_enter(), view3d_orbit_calc_center(), view3d_preselect_update_preview_triangle_from_edge(), view3d_preselect_update_preview_triangle_from_vert(), view3d_ruler_add_invoke(), view3d_ruler_from_gpencil(), view3d_ruler_to_gpencil(), view3d_smooth_view_state_backup(), view3d_smooth_view_state_restore(), view3d_viewmatrix_set(), view3d_zoom_border_exec(), view_vector_calc(), view_zoom_to_window_xy_3d(), viewdolly_exec(), viewrotate_apply(), viewrotate_apply_snap(), viewselected_exec(), vmesh_center(), vmesh_copy_equiv_verts(), VoronoiVertexWeight::VoronoiVertexWeight(), blender::ed::object::voxel_size_edit_invoke(), vpaint_do_symmetrical_brush_actions(), walk_floor_distance_get(), walk_ray_cast(), walkApply(), walkEvent(), warpModifier_do(), where_is_ik_bone(), whiteBalance_apply(), whiteBalance_apply_threaded(), WIDGETGROUP_armature_spline_setup(), WIDGETGROUP_navigate_draw_prepare(), WIDGETGROUP_tool_generic_refresh(), WIDGETGROUP_xform_shear_draw_prepare(), WM_gizmo_set_matrix_location(), WM_gizmo_set_matrix_offset_location(), wm_gizmo_set_matrix_rotation_from_z_axis__internal(), WM_window_pixels_read_sample_from_offscreen(), WM_xr_action_binding_create(), WM_xr_action_state_get(), wm_xr_draw_matrices_create(), wm_xr_fly_compute_move(), wm_xr_grab_compute(), wm_xr_grab_update(), wm_xr_navigation_grab_bimanual_state_update(), wm_xr_navlocks_apply(), wm_xr_pose_to_mat(), wm_xr_raycast_update(), wm_xr_session_base_pose_calc(), wm_xr_session_controller_data_update(), wm_xr_session_draw_data_update(), wm_xr_session_event_create(), WM_xr_session_state_controller_aim_location_get(), WM_xr_session_state_controller_grip_location_get(), WM_xr_session_state_nav_location_get(), WM_xr_session_state_nav_location_set(), wm_xr_session_state_update(), WM_xr_session_state_viewer_pose_location_get(), world_to_root_v3(), wpaint_do_symmetrical_brush_actions(), write_face_grid_in_unsubdivide_grid(), and write_loop_in_face_grid().

◆ copy_v3_v3_char()

MINLINE void copy_v3_v3_char ( char r[3],
const char a[3] )

Definition at line 138 of file math_vector_inline.c.

◆ copy_v3_v3_db()

◆ copy_v3_v3_int()

◆ copy_v3_v3_short()

MINLINE void copy_v3_v3_short ( short r[3],
const short a[3] )

Definition at line 161 of file math_vector_inline.c.

Referenced by layerSwap_flnor().

◆ copy_v3_v3_uchar()

◆ copy_v3db_v3fl()

◆ copy_v3fl_v3db()

MINLINE void copy_v3fl_v3db ( float r[3],
const double a[3] )

◆ copy_v3fl_v3s()

MINLINE void copy_v3fl_v3s ( float r[3],
const short a[3] )

Definition at line 50 of file math_vector_inline.c.

References float.

◆ copy_v4_fl()

◆ copy_v4_fl4()

◆ copy_v4_uchar()

MINLINE void copy_v4_uchar ( unsigned char r[4],
unsigned char a )

◆ copy_v4_v4()

MINLINE void copy_v4_v4 ( float r[4],
const float a[4] )

Definition at line 57 of file math_vector_inline.c.

Referenced by add_ibuf_for_tile(), blender::ed::greasepencil::add_material_from_template(), blender::ed::object::apply_objects_internal(), BCQuat::BCQuat(), BCQuat::BCQuat(), blender::math::bicubic_interpolation(), BKE_fluid_modifier_copy(), BKE_gpencil_layer_addnew(), BKE_gpencil_palettecolor_addnew(), BKE_gpencil_stroke_set_random_color(), BKE_histogram_update_sample_line(), BKE_image_add_generated(), BKE_image_buf_fill_color(), BKE_object_transform_copy(), blend_color_add_alpha_float(), blend_color_add_float(), blend_color_burn_float(), blend_color_color_float(), blend_color_darken_float(), blend_color_difference_float(), blend_color_dodge_float(), blend_color_erase_alpha_float(), blend_color_exclusion_float(), blend_color_hardlight_float(), blend_color_hue_float(), blend_color_lighten_float(), blend_color_linearburn_float(), blend_color_linearlight_float(), blend_color_luminosity_float(), blend_color_mix_float(), blend_color_mul_float(), blend_color_overlay_float(), blend_color_pinlight_float(), blend_color_saturation_float(), blend_color_screen_float(), blend_color_softlight_float(), blend_color_sub_float(), blend_color_vividlight_float(), BLF_buffer_col(), blf_draw_buffer__start(), BLI_bvhtree_find_nearest_projected(), BLI_bvhtree_intersect_plane(), blo_do_versions_250(), blo_do_versions_270(), blo_do_versions_290(), blo_do_versions_300(), blender::compositor::blur_pixel(), brush_painter_imbuf_update(), buf_rectfill_area(), blender::nodes::decl::Color::build(), cache_key_incremental_rotation(), blender::nodes::node_shader_tex_brick_cc::BrickFunction::call(), channel_ui_data_init(), blender::gpu::VKFrameBuffer::clear(), blender::ed::sculpt_paint::color::color_filter_task(), colorband_init_from_table_rgba_resample(), colorband_init_from_table_rgba_simple(), colorfn(), colorfn(), colorfn(), colorfn(), blender::io::ply::convert_ply_to_mesh(), copy_stack(), blender::io::grease_pencil::GreasePencilImporter::create_material(), dial_ghostarc_draw(), do_hue_sat_fac(), do_proc(), do_projectpaint_thread(), do_versions_fix_annotations(), do_versions_socket_default_value_259(), draw_anti_tria(), draw_axes(), draw_points(), drw_call_obinfos_init(), DRW_draw_depth_object(), drw_shgroup_bone_envelope(), dynamic_paint_set_init_color_vcol_to_imseq_cb(), dynamic_paint_surface_pre_step_cb(), dynamicPaint_Modifier_copy(), dynamicPaint_setInitialColor(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_edit_invoke(), ED_image_draw_info(), ED_node_sample_set(), ED_node_type_draw_color(), ED_preview_shader_job(), ED_view3d_mats_rv3d_backup(), ED_view3d_mats_rv3d_restore(), ElementResize(), find_geonode_attribute_rgba(), blender::ed::sculpt_paint::color::from_float(), FrsMaterial_mathutils_set_index(), blender::bke::pbvh::get_frustum_planes(), get_pchan_color_solid(), get_pchan_color_wire(), gizmo2d_get_axis_color(), gizmo2d_resize_setup(), gizmo2d_xform_setup(), gizmo_color_get(), gizmo_get_axis_color(), gizmo_init(), gizmo_primitive_draw_intern(), gpencil_layer_cache_add(), gpencil_layer_final_tint_and_alpha_get(), gpencil_light_pool_populate(), gpencil_material_pool_create(), gpencil_stroke_copy_point(), gpencil_stroke_editcurve_generate_edgecases(), gpencil_stroke_join_islands(), gpencil_viewport_material_overrides(), GPU_batch_preset_panel_drag_widget(), gpu_batch_preset_rectf_tris_color_ex(), blender::realtime_compositor::gpu_stack_vector_from_socket(), blender::draw::grease_pencil_geom_batch_ensure(), grease_pencil_layer_cache_add(), ibuf_get_color(), ibuf_sample(), image_buf_fill_color_slice(), image_flip_exec(), image_sample(), image_sample_apply(), image_sample_pixel_color_float(), IMB_buffer_float_from_float_mask(), IMB_colormanagement_pixel_to_display_space_v4(), imb_stereo3d_read_interlace(), imb_stereo3d_write_interlace(), imbuf_byte_to_float_cb(), immUniformColor4f(), initTransInfo(), layerCopyValue_propcol(), layerDefault_propcol(), layerInterp_propcol(), lineart_chain_append_point(), lineart_chain_prepend_point(), mesh_loops_to_tessdata(), multitex(), node_data_from_gpu_stack(), blender::ed::space_node::node_draw_link_bezier_ex(), blender::ed::space_node::node_socket_color_get(), node_socket_init_default_value_data(), blender::ed::space_node::node_socket_outline_color_get(), blender::ed::space_node::node_socket_virtual_draw_color(), blender::ed::space_node::node_socket_virtual_draw_color_simple(), blender::ed::space_node::nodelink_batch_add_link(), blender::ed::space_node::nodelink_get_draw_config(), nodestack_get_vec(), normalize_m4_m4(), normalize_m4_m4_ex(), ntree_shader_expand_socket_default(), OVERLAY_camera_cache_populate(), paint_2d_bucket_fill(), paint_2d_ibuf_rgb_get(), paint_2d_lift_soften(), partial_buffer_update_rect(), preview_prepare_scene(), psys_map_index_on_dm(), put_postprocessed_frame_to_cache(), quat_split_swing_and_twist(), RE_texture_evaluate(), blender::ed::space_node::sample_apply(), scopes_update_cb(), sequencer_sample_apply(), blender::compositor::SetColorOperation::set_channels(), blender::realtime_compositor::Result::set_color_value(), blender::bke::pbvh::set_frustum_planes(), blender::gpu::set_load_store(), blender::io::obj::set_property_of_socket(), blender::realtime_compositor::Result::set_vector_value(), blender::bke::node_interface::socket_types::socket_data_init_impl(), blender::ed::space_node::std_node_socket_color_fn(), blender::ed::space_node::std_node_socket_color_simple_fn(), blender::imbuf::transform::store_premul_float_sample(), blender::imbuf::transform::store_sample(), timeline_cache_draw_single(), blender::ed::sculpt_paint::transform_matrices_init(), blender::ed::curves::convert_to_particle_system::try_convert_single_object(), ui_block_colorpicker(), ui_but_v4_get(), ui_but_v4_set(), ui_update_color_picker_buts_rgba(), blender::ed::sculpt_paint::gesture::update_affected_nodes_by_line_plane(), blender::compositor::GlareBaseOperation::update_memory_buffer(), blender::compositor::InpaintSimpleOperation::update_memory_buffer(), blender::compositor::SMAAOperation::update_memory_buffer(), blender::compositor::BokehBlurOperation::update_memory_buffer_partial(), blender::compositor::BokehImageOperation::update_memory_buffer_partial(), blender::compositor::ColorSpillOperation::update_memory_buffer_partial(), blender::compositor::ConvertColorSpaceOperation::update_memory_buffer_partial(), blender::compositor::ConvertPremulToStraightOperation::update_memory_buffer_partial(), blender::compositor::ConvertStraightToPremulOperation::update_memory_buffer_partial(), blender::compositor::CropOperation::update_memory_buffer_partial(), blender::compositor::DespeckleOperation::update_memory_buffer_partial(), blender::compositor::FlipOperation::update_memory_buffer_partial(), blender::compositor::GaussianBlurBaseOperation::update_memory_buffer_partial(), blender::compositor::GaussianBlurReferenceOperation::update_memory_buffer_partial(), blender::compositor::HueSaturationValueCorrectOperation::update_memory_buffer_partial(), blender::compositor::KeyingDespillOperation::update_memory_buffer_partial(), blender::compositor::KeyingScreenOperation::update_memory_buffer_partial(), blender::compositor::KuwaharaAnisotropicOperation::update_memory_buffer_partial(), blender::compositor::KuwaharaAnisotropicStructureTensorOperation::update_memory_buffer_partial(), blender::compositor::KuwaharaClassicOperation::update_memory_buffer_partial(), blender::compositor::PhotoreceptorTonemapOperation::update_memory_buffer_partial(), blender::compositor::PixelateOperation::update_memory_buffer_partial(), blender::compositor::ScreenLensDistortionOperation::update_memory_buffer_partial(), blender::compositor::SunBeamsOperation::update_memory_buffer_partial(), blender::compositor::TextureBaseOperation::update_memory_buffer_partial(), blender::compositor::TonemapOperation::update_memory_buffer_partial(), blender::compositor::TranslateOperation::update_memory_buffer_partial(), blender::compositor::VariableSizeBokehBlurOperation::update_memory_buffer_partial(), blender::compositor::ZCombineOperation::update_memory_buffer_partial(), blender::compositor::AlphaOverKeyOperation::update_memory_buffer_row(), blender::compositor::AlphaOverMixedOperation::update_memory_buffer_row(), blender::compositor::AlphaOverPremultiplyOperation::update_memory_buffer_row(), blender::compositor::TonemapOperation::update_memory_buffer_started(), blender::ed::sculpt_paint::update_modal_transform(), version_principled_bsdf_sheen(), version_principled_bsdf_specular_tint(), version_principled_bsdf_subsurface(), versioning_eevee_material_blend_mode_settings(), view3d_ruler_to_gpencil(), whiteBalance_apply_threaded(), WM_gizmo_get_color(), WM_gizmo_get_color_highlight(), WM_gizmo_set_color(), WM_gizmo_set_color_highlight(), WM_xr_session_state_viewer_pose_rotation_get(), blender::bke::image::ImageBufferAccessor< T, Channels >::write_pixel(), and blender::ed::sculpt_paint::paint::image::ImageBufferFloat4::write_pixel().

◆ copy_v4_v4_char()

MINLINE void copy_v4_v4_char ( char r[4],
const char a[4] )

Definition at line 145 of file math_vector_inline.c.

◆ copy_v4_v4_db()

◆ copy_v4_v4_int()

◆ copy_v4_v4_short()

MINLINE void copy_v4_v4_short ( short r[4],
const short a[4] )

Definition at line 168 of file math_vector_inline.c.

◆ copy_v4_v4_uchar()

MINLINE void copy_v4_v4_uchar ( unsigned char r[4],
const unsigned char a[4] )

◆ copy_v4db_v4fl()

MINLINE void copy_v4db_v4fl ( double r[4],
const float a[4] )

Definition at line 291 of file math_vector_inline.c.

References double().

◆ copy_v4fl_v4db()

MINLINE void copy_v4fl_v4db ( float r[4],
const double a[4] )

Definition at line 268 of file math_vector_inline.c.

References float.

◆ copy_vn_fl()

◆ copy_vn_i()

◆ copy_vn_short()

void copy_vn_short ( short * array_tar,
int size,
short val )

Definition at line 1243 of file math_vector.c.

References size().

Referenced by initNumInput().

◆ copy_vn_uchar()

void copy_vn_uchar ( unsigned char * array_tar,
int size,
unsigned char val )

Definition at line 1261 of file math_vector.c.

References size().

◆ copy_vn_ushort()

void copy_vn_ushort ( unsigned short * array_tar,
int size,
unsigned short val )

Definition at line 1252 of file math_vector.c.

References size().

◆ cos_v2v2v2()

float cos_v2v2v2 ( const float p1[2],
const float p2[2],
const float p3[2] )

Quicker than full angle computation.

Definition at line 420 of file math_vector.c.

References dot_v2v2(), normalize_v2(), and sub_v2_v2v2().

Referenced by get_updated_data_for_edge(), and scanfill().

◆ cos_v3v3v3()

float cos_v3v3v3 ( const float p1[3],
const float p2[3],
const float p3[3] )

Quicker than full angle computation.

Definition at line 382 of file math_vector.c.

References dot_v3v3(), normalize_v3(), and sub_v3_v3v3().

Referenced by bm_vert_collapse_is_degenerate(), and blender::geometry::p_vec_cos().

◆ cross_v2v2()

◆ cross_v2v2_db()

MINLINE double cross_v2v2_db ( const double a[2],
const double b[2] )

◆ cross_v3_v3v3()

MINLINE void cross_v3_v3v3 ( float r[3],
const float a[3],
const float b[3] )

Definition at line 937 of file math_vector_inline.c.

References b, and BLI_assert.

Referenced by angle_signed_on_axis_normalized_v3v3_v3(), angle_signed_on_axis_v3v3_v3(), apply_shear_value(), armature_calc_roll_exec(), axis_angle_to_gimbal_axis(), axisProjection(), basic_rotate(), bend_angle(), bevel_build_cutoff(), bevel_list_smooth(), bezier_handle_calc_length_v3(), BKE_gpencil_stroke_2d_flat(), BKE_gpencil_stroke_2d_flat_ref(), BKE_gpencil_stroke_normal(), BKE_multires_construct_tangent_matrix(), BKE_nurb_bezt_calc_plane(), BKE_nurb_bpoint_calc_plane(), bm_decim_build_quadrics(), BM_edge_calc_face_tangent(), bm_edge_collapse_is_degenerate_flip(), BM_edge_is_convex(), BM_edge_rotate_check_degenerate(), BM_edgeloop_calc_normal_aligned(), bm_edgering_pair_interpolate(), BM_editselection_normal(), BM_editselection_plane(), bm_face_bisect_verts(), BM_loop_calc_face_normal(), BM_loop_calc_face_normal_safe_ex(), BM_loop_calc_face_normal_safe_vcos_ex(), BM_loop_calc_face_tangent(), bm_loop_flip_disp(), BM_loop_is_convex(), BM_loop_point_side_of_edge_test(), bm_vert_boundary_tangent(), bm_vert_pair_to_matrix(), bmo_edgenet_prepare_exec(), bmo_inset_region_exec(), bmo_triangle_fill_exec(), boid_body(), bridge_loop_pair(), brush_puff(), build_emats_stack(), cache_key_incremental_rotation(), blender::ed::sculpt_paint::calc_brush_local_mat(), calc_edge_mat(), calc_nor_area_tri(), calc_tangent_loop(), camera_stereoscopy_extra(), cloth_spring_angle(), collision_point_on_surface(), collision_response(), compute_collision_point_edge_tri(), compute_collision_point_tri_tri(), computeBindWeights(), connection_node_mat(), constraint_plane_normal_calc(), contarget_get_mesh_mat(), cotangent_tri_weight_v3(), createSpaceNormal(), createSpaceNormalTangent(), cross_m3_v3m3(), blender::ed::curves::curve_draw_event_add_first(), curve_draw_event_add_first(), damptrack_do_transform(), dist_signed_squared_to_corner_v3v3v3(), dist_squared_to_projected_aabb_precalc(), do_guides(), do_kink_spiral_deform(), do_physical_effector(), draw_primitive_view_impl(), ED_armature_ebone_roll_to_vector(), ED_view3d_depth_read_cached_normal(), edbm_dupli_extrude_cursor_invoke(), edge_edge_angle_less_than_180(), edges_angle_kind(), blender::bke::subdiv::eval_limit_point_and_normal(), flush_pixel(), geodesic_distance_propagate_across_triangle(), get_angular_velocity_vector(), gizmo_3d_dial_matrixbasis_calc(), initBend(), interp_slerp_co_no_v3(), interp_weights_quad_v3(), is_edge_convex_v3(), is_quad_convex_v3(), is_quad_flip_v3(), is_quad_flip_v3_first_third_fast(), isect_line_line_epsilon_v3(), isect_line_line_strict_v3(), isect_line_segment_tri_epsilon_v3(), isect_line_segment_tri_v3(), isect_plane_plane_plane_v3(), isect_plane_plane_v3(), isect_planes_v3_fn(), isect_ray_line_v3(), isect_ray_ray_epsilon_v3(), isect_ray_tri_epsilon_v3(), isect_ray_tri_v3(), isect_seg_seg_v3(), isect_sweeping_sphere_tri_v3(), kelvinlet_twist(), knife_find_line_hits(), knifetool_draw_angle(), locktrack_evaluate(), M_Geometry_intersect_ray_tri(), make_bevel_list_3D_minimum_twist(), make_bevel_list_3D_tangent(), make_cube_corner_adj_vmesh(), make_unit_square_map(), map_to_plane_v2_v3v3(), mat4_look_from_origin(), mean_value_half_tan_v3(), mesh_bisect_interactive_calc(), minimum_twist_between_two_points(), MOD_solidify_nonmanifold_modifyMesh(), modify_mesh(), modify_mesh(), move_profile_plane(), move_weld_profile_planes(), nr_distance_to_edge(), nr_signed_distance_to_plane(), offset_in_plane(), offset_meet(), offset_meet_edge(), orient_mat_z_normalized(), orthogonalize_m3(), orthogonalize_m3_zero_axes_impl(), orthogonalize_m4(), orthogonalize_stable(), blender::geometry::p_edge_matrix(), point_between_edges(), blender::ed::sculpt_paint::project_brush_radius(), psys_get_birth_coords(), psys_get_dupli_path_transform(), RE_bake_normal_world_to_tangent(), recalc_face_normals_find_index(), rotate(), rotateDifferentialCoordinates(), rotation_between_vecs_to_mat3(), rotation_between_vecs_to_quat(), sb_detect_edge_collisionCached(), sb_detect_face_collisionCached(), sb_detect_face_pointCached(), sb_detect_vertex_collisionCached(), set_axis(), set_plane_exec(), set_profile_params(), blender::bke::shrinkwrap::shrinkwrap_build_boundary_data(), SIM_mass_spring_force_reference_frame(), splineik_evaluate_bone(), stretchto_evaluate(), surface_determineForceTargetPoints(), tan_calc_quat_v3(), tangent_from_uv_v3(), transform_orientations_create_from_axis(), triatomat(), vectomat(), Vector_cross(), view3d_interactive_add_modal(), viewrotate_apply(), volume_tri_tetrahedron_signed_v3_6x(), wm_gizmo_set_matrix_rotation_from_yz_axis__internal(), wm_xr_grab_compute_bimanual(), and zero_axis_bias_m4().

◆ cross_v3_v3v3_db()

MINLINE void cross_v3_v3v3_db ( double r[3],
const double a[3],
const double b[3] )

◆ cross_v3_v3v3_hi_prec()

MINLINE void cross_v3_v3v3_hi_prec ( float r[3],
const float a[3],
const float b[3] )

Cross product suffers from severe precision loss when vectors are nearly parallel or opposite; doing the computation in double helps a lot.

Definition at line 945 of file math_vector_inline.c.

References b, BLI_assert, double(), and float.

Referenced by damptrack_do_transform().

◆ dist_ensure_v2_v2fl()

◆ dist_ensure_v3_v3fl()

void dist_ensure_v3_v3fl ( float v1[3],
const float v2[3],
float dist )

ensure v1 is dist from v2

Definition at line 924 of file math_vector.c.

References equals_v3v3(), madd_v3_v3v3fl(), nor, normalize_v3(), sub_v3_v3v3(), and v2.

Referenced by Bend(), BKE_nurbList_handles_recalculate(), and brush_puff().

◆ dot_m3_v3_row_x()

MINLINE float dot_m3_v3_row_x ( const float M[3][3],
const float a[3] )

◆ dot_m3_v3_row_y()

MINLINE float dot_m3_v3_row_y ( const float M[3][3],
const float a[3] )

Definition at line 645 of file math_vector_inline.c.

References M.

Referenced by BM_face_split_edgenet_connect_islands().

◆ dot_m3_v3_row_z()

MINLINE float dot_m3_v3_row_z ( const float M[3][3],
const float a[3] )

◆ dot_m4_v3_row_x()

MINLINE float dot_m4_v3_row_x ( const float M[4][4],
const float a[3] )

Has the effect of mul_mat3_m4_v3(), on a single axis. (no adding translation)

Definition at line 654 of file math_vector_inline.c.

References M.

Referenced by dist_squared_to_projected_aabb(), blender::ed::object::object_warp_transverts_minmax_x(), and test_projected_vert_dist().

◆ dot_m4_v3_row_y()

MINLINE float dot_m4_v3_row_y ( const float M[4][4],
const float a[3] )

Definition at line 658 of file math_vector_inline.c.

References M.

Referenced by dist_squared_to_projected_aabb(), and test_projected_vert_dist().

◆ dot_m4_v3_row_z()

MINLINE float dot_m4_v3_row_z ( const float M[4][4],
const float a[3] )

Definition at line 662 of file math_vector_inline.c.

References M.

Referenced by ED_view3d_win_to_3d_on_plane(), and knife_linehit_set().

◆ dot_v2v2()

◆ dot_v2v2_db()

MINLINE double dot_v2v2_db ( const double a[2],
const double b[2] )

Definition at line 890 of file math_vector_inline.c.

References b.

Referenced by closest_to_line_v2_db(), len_squared_v2v2_db(), and mean_value_half_tan_v2_db().

◆ dot_v3db_v3fl()

MINLINE double dot_v3db_v3fl ( const double a[3],
const float b[3] )

Definition at line 917 of file math_vector_inline.c.

References b, and double().

Referenced by bm_decim_build_quadrics(), and isect_tri_tri_v3_ex().

◆ dot_v3v3()

MINLINE float dot_v3v3 ( const float a[3],
const float b[3] )

Definition at line 895 of file math_vector_inline.c.

References b.

Referenced by _scan_for_ext_spring_forces(), accumulate_vertex_normals_poly_v3(), accumulate_vertex_normals_tri_v3(), accumulate_vertex_normals_v3(), action_flip_pchan(), add_vertex_invoke(), angle_normalized_v3v3(), angle_signed_on_axis_normalized_v3v3_v3(), angle_signed_on_axis_v3v3_v3(), apply_heights_callback(), area_tri_signed_v3(), axisProjection(), basic_rotate(), bbone_segment_bsp_signed_distance(), bend_angle(), bevel_build_cutoff(), bezier_handle_calc_length_v3(), BKE_camera_object_dof_distance(), BKE_gpencil_stroke_2d_flat(), BKE_gpencil_stroke_2d_flat_ref(), BKE_mesh_remap_calc_loops_from_mesh(), BKE_object_empty_image_data_is_visible_in_view3d(), BKE_shrinkwrap_project_normal(), BLI_bvhtree_find_nearest_ex(), blinn_specular(), bm_decim_build_edge_cost_single__topology(), bm_decim_build_edge_cost_single_squared__topology(), bm_edge_calc_dissolve_error(), bm_edge_collapse_is_degenerate_flip(), BM_edge_is_convex(), bm_edge_is_delimit(), BM_edge_rotate_check_degenerate(), bm_edge_symmetry_check_cb(), bm_edge_tag_from_smooth(), bm_edge_tag_from_smooth_and_set_sharp(), bm_edgering_pair_interpolate(), bm_face_bisect_verts(), bm_face_calc_split_dot(), bm_face_split_by_concave(), bm_face_split_find(), BM_loop_calc_face_tangent(), BM_loop_is_convex(), bm_loop_normal_accum(), BM_loop_point_side_of_edge_test(), BM_mesh_calc_uvs_cone(), BM_mesh_edgeloops_calc_order(), bm_mesh_loops_calc_normals_for_loop(), bm_mesh_loops_split_lnor_fans(), bm_vert_boundary_tangent(), bm_vert_calc_normals_accum_loop(), bm_vert_pair_best_face_get(), bm_vert_pair_share_best_splittable_face_cb(), bm_vert_pair_to_matrix(), BM_verts_calc_normal_from_cloud_ex(), blender::ed::sculpt_paint::smooth::bmesh_four_neighbor_average(), bmo_edgenet_prepare_exec(), bmo_extrude_face_region_exec(), bmo_inset_region_exec(), bmo_subdivide_edges_exec(), bmo_triangle_fill_exec(), boid_body(), boid_goal_signed_dist(), bridge_loop_pair(), bvh_callback(), bvhtree_ray_cast_data_precalc(), cache_key_incremental_rotation(), calc_edge_mat(), calc_initial_placement_point_from_view(), calc_tangent_spaces(), calc_tw_center(), camera_frame_fit_calc_from_data(), camera_to_frame_view_cb(), cast_ray_highpoly(), choose_winner(), clip_segment_v3_plane(), clip_segment_v3_plane_n(), closest_on_tri_to_point_v3(), closest_to_plane3_normalized_v3(), closest_to_plane3_v3(), closest_to_ray_v3(), cloth_calc_pressure_gradient(), cloth_collision_response_static(), cloth_selfcollision_response_static(), cloth_spring_angle(), collision_point_distance_with_normal(), collision_point_on_surface(), collision_response(), collision_sphere_to_edges(), collision_sphere_to_tri(), compare_len_v3v3(), compute_bbone_segment_boundaries(), compute_collision_point_edge_tri(), compute_collision_point_tri_tri(), computeImplictRotations(), computeNormalDisplacement(), connect_frames(), constraint_snap_plane_to_edge(), constraints_rotation_impl(), correct_bone_roll_value(), cos_v3v3v3(), cotangent_tri_weight_v3(), create_kdop_hull(), cubic_tangent_factor_circle_v3(), blender::ed::curves::curve_draw_event_add_first(), curve_draw_event_add_first(), curve_draw_invoke(), blender::ed::curves::curves_draw_invoke(), damptrack_do_transform(), deflect_emitter_iter(), dist_signed_squared_to_corner_v3v3v3(), dist_signed_squared_to_plane3_v3(), dist_signed_to_plane3_v3(), dist_squared_ray_to_aabb_v3(), dist_squared_ray_to_seg_v3(), dist_squared_to_plane3_v3(), distfactor_to_bone(), do_guides(), do_kink(), do_texture_effector(), do_vpaint_brush_blur_loops(), do_vpaint_brush_blur_verts(), do_vpaint_brush_smear(), do_wpaint_brush_blur(), do_wpaint_brush_draw(), do_wpaint_brush_smear(), doEdgeSplit(), dot_lfvector(), dot_v3_array_find_max_index(), dot_v3v3v3(), DRW_globals_update(), DRW_object_axis_orthogonal_to_view(), DRW_pass_sort_shgroup_z(), dynamic_paint_paint_mesh_cell_point_cb_ex(), ED_armature_ebone_roll_to_vector(), ED_view3d_calc_depth_for_comparison(), ED_view3d_clipping_calc_from_boundbox(), ED_view3d_cursor3d_position_rotation(), ED_view3d_distance_set_from_location(), ED_view3d_offset_distance(), edbm_face_split_by_edges_exec(), edbm_screw_exec(), edbm_select_axis_exec(), edbm_select_linked_flat_faces_exec(), edbm_select_sharp_edges_exec(), edge_edge_angle_less_than_180(), edge_wind_vertex(), edges_angle_kind(), effector_falloff(), eh_on_plane(), end_node_frames(), faces_check_flip(), find_internal_spring_target_vertex(), geodesic_distance_propagate_across_triangle(), getTransformOrientation_ex(), gizmo_arrow_modal(), gizmo_bisect_prop_depth_get(), gizmo_bisect_prop_depth_set(), gizmo_dial_draw(), gizmo_dial_draw_select(), gizmo_find_intersected_3d_intern(), gizmo_get_idot(), gizmo_mesh_extrude_draw_prepare(), gizmo_mesh_extrude_refresh(), gizmo_spin_prop_depth_get(), gizmo_spin_prop_depth_set(), GPENCIL_engine_init(), gpencil_object_cache_add(), harmonic_ray_callback(), heat_source_distance(), hull_merge_triangles(), IMB_colormanagement_get_luminance(), IMB_colormanagement_get_luminance_byte(), InputHorizontalAbsolute(), InputVerticalAbsolute(), interp_v3_v3v3_slerp(), intersect_line_tri(), is_edge_convex_v3(), is_orthogonal_m3(), is_orthonormal_m3(), is_outside_edge(), is_quad_flip_v3(), is_quad_flip_v3_first_third_fast(), isect_line_line_epsilon_v3(), isect_line_line_strict_v3(), isect_line_plane_v3(), isect_line_segment_tri_epsilon_v3(), isect_line_segment_tri_v3(), isect_line_sphere_v3(), isect_planes_v3_fn(), isect_ray_line_v3(), isect_ray_plane_v3_factor(), isect_ray_ray_epsilon_v3(), isect_ray_tri_epsilon_v3(), isect_ray_tri_v3(), isect_seg_seg_v3(), isect_sweeping_sphere_tri_v3(), isPlaneProjectionViewAligned(), knot_remove_error_value(), len_squared_v3v3(), len_squared_v3v3_with_normal_bias(), len_v3(), line_plane_factor_v3(), line_point_factor_v3_ex(), blender::bke::pbvh::long_edge_queue_edge_add_recursive(), blender::bke::pbvh::long_edge_queue_face_add(), M_Geometry_intersect_ray_tri(), mat3_align_axis_to_v3(), mean_value_half_tan_v3(), blender::bke::shrinkwrap::merge_vert_dir(), blender::bke::mesh::mesh_normals_corner_custom_set(), min_dist_dir_test(), MOD_lineart_chain_offset_towards_camera(), MOD_solidify_nonmanifold_modifyMesh(), modify_mesh(), move_profile_plane(), move_weld_profile_planes(), mul_fmatrix_fvector(), muladd_fmatrix_fvector(), nearly_parallel_normalized(), next_edgehalf_bev(), normalize_v3_v3_length(), nr_signed_distance_to_plane(), blender::ed::object::object_rand_transverts(), blender::ed::object::object_transform_axis_target_invoke(), blender::ed::object::object_transform_axis_target_modal(), occlusion_plane_create(), offset_meet(), offset_meet_edge(), orthogonalize_m3(), orthogonalize_m4(), orthogonalize_stable(), blender::geometry::p_face_stretch(), pipe_test(), plane_from_point_normal_v3(), plane_point_side_v3(), point_between_edges(), point_in_slice(), point_in_slice_as(), proj_paint_state_cavity_init(), proj_paint_state_vert_flags_init(), project_paint_uvpixel_mask(), project_plane_normalized_v3_v3v3(), project_plane_v3_v3v3(), project_v3_plane(), project_v3_v3(), project_v3_v3v3(), project_v3_v3v3_normalized(), psys_get_birth_coords(), psys_get_dupli_path_transform(), psys_thread_create_path(), quad_co(), ray_point_factor_v3_ex(), raycast_tri_backface_culling_test(), recalc_face_normals_find_index(), reflect_v3_v3v3(), resolve_tri_uv_v3(), rotate(), rotateDifferentialCoordinates(), rotation_between_vecs_to_mat3(), rotation_between_vecs_to_quat(), rule_avoid_collision(), rule_fight(), rule_follow_leader(), sb_detect_edge_collisionCached(), sb_detect_face_pointCached(), sb_detect_vertex_collisionCached(), sb_spring_force(), sculpt_project_v3_normal_align(), shell_v3v3_mid_normalized_to_dist(), shell_v3v3_normalized_to_dist(), blender::bke::pbvh::short_edge_queue_face_add(), shrinkwrap_snap_with_side(), SIM_mass_spring_force_face_wind(), SIM_mass_spring_force_spring_angular(), SIM_mass_spring_force_spring_bending_hair(), SIM_mass_spring_force_spring_goal(), SIM_mass_spring_force_spring_linear(), smart_project_exec(), smart_uv_project_calculate_project_normals(), softbody_apply_forces(), sph_force_cb(), sphclassical_force_cb(), splineik_evaluate_bone(), spring_hairbend_forces(), blender::draw::statvis_calc_distort(), blender::draw::statvis_calc_thickness(), step_cost_3_v3_ex(), studiolight_lights_eval(), surface_determineForceTargetPoints(), tangent_from_uv_v3(), target_project_edge(), target_project_solve_point_tri(), blender::bke::pbvh::test_frustum_aabb(), transform_constraint_snap_axis_to_edge(), transform_constraint_snap_axis_to_face(), TransMat3ToSize(), UNUSED_FUNCTION(), update_location_for_2d_curve(), blender::geometry::uv_parametrizer_average(), uvprojectModifier_do(), v3_dist_from_plane(), v3d_cursor_plane_draw(), v3d_cursor_poject_surface_normal(), v3d_cursor_snap_update(), view3d_boxview_clip(), view3d_interactive_add_begin(), view3d_interactive_add_modal(), view3d_orbit_apply_dyn_ofs_ortho_correction(), viewAxisCorrectCenter(), viewrotate_apply(), volume_tri_tetrahedron_signed_v3_6x(), blender::ed::object::voxel_size_edit_invoke(), vpaint_do_draw(), walk_ray_cast(), and WIDGETGROUP_xform_shear_draw_prepare().

◆ dot_v3v3_db()

◆ dot_v3v3v3()

MINLINE float dot_v3v3v3 ( const float p[3],
const float a[3],
const float b[3] )

Definition at line 900 of file math_vector_inline.c.

References b, dot_v3v3(), is_zero_v3(), and sub_v3_v3v3().

Referenced by mesh_edges_spherecast(), and mesh_verts_spherecast_do().

◆ dot_v4v4()

MINLINE float dot_v4v4 ( const float a[4],
const float b[4] )

Definition at line 912 of file math_vector_inline.c.

References b.

Referenced by is_orthogonal_m4(), is_orthonormal_m4(), len_squared_v4v4(), len_v4(), and voronoiTex().

◆ dot_vn_vn()

double dot_vn_vn ( const float * array_src_a,
const float * array_src_b,
int size )

◆ equals_v2v2()

◆ equals_v2v2_int()

MINLINE bool equals_v2v2_int ( const int v1[2],
const int v2[2] )

Definition at line 1334 of file math_vector_inline.c.

References v2.

Referenced by DRW_view_data_texture_list_size_validate(), and GPU_viewport_bind().

◆ equals_v3v3()

◆ equals_v3v3_int()

MINLINE bool equals_v3v3_int ( const int v1[3],
const int v2[3] )

Definition at line 1339 of file math_vector_inline.c.

References v2.

◆ equals_v4v4()

◆ equals_v4v4_int()

MINLINE bool equals_v4v4_int ( const int v1[4],
const int v2[4] )

◆ flip_v2_v2v2()

void flip_v2_v2v2 ( float v[2],
const float v1[2],
const float v2[2] )

Definition at line 337 of file math_vector.c.

References v, and v2.

◆ flip_v3_v3v3()

void flip_v3_v3v3 ( float v[3],
const float v1[3],
const float v2[3] )

Definition at line 330 of file math_vector.c.

References v, and v2.

◆ flip_v4_v4v4()

void flip_v4_v4v4 ( float v[4],
const float v1[4],
const float v2[4] )

Equivalent to: interp_v3_v3v3(v, v1, v2, -1.0f);

Definition at line 322 of file math_vector.c.

References v, and v2.

◆ interp_v2_v2v2()

◆ interp_v2_v2v2_db()

void interp_v2_v2v2_db ( double target[2],
const double a[2],
const double b[2],
double t )

Definition at line 1327 of file math_vector.c.

References b.

Referenced by lineart_edge_first_bounding_area().

◆ interp_v2_v2v2_slerp()

bool interp_v2_v2v2_slerp ( float target[2],
const float a[2],
const float b[2],
float t )

Definition at line 77 of file math_vector.c.

References b, BLI_ASSERT_UNIT_V2, dot_v2v2(), interp_dot_slerp(), UNLIKELY, and w().

Referenced by interp_v2_v2v2_slerp_safe().

◆ interp_v2_v2v2_slerp_safe()

void interp_v2_v2v2_slerp_safe ( float target[2],
const float a[2],
const float b[2],
float t )

Definition at line 120 of file math_vector.c.

References b, BLI_assert, copy_v2_v2(), interp_v2_v2v2_slerp(), ortho_v2_v2(), and UNLIKELY.

◆ interp_v2_v2v2v2()

void interp_v2_v2v2v2 ( float r[2],
const float a[2],
const float b[2],
const float c[2],
const float t[3] )

Weight 3 2D vectors, 'w' must be unit length but is not a vector, just 3 weights.

Definition at line 29 of file math_vector.c.

References b.

Referenced by project_bucket_clip_face(), project_face_pixel(), project_paint_PickColor(), rect_to_uvspace_ortho(), and rect_to_uvspace_persp().

◆ interp_v2_v2v2v2v2_cubic()

void interp_v2_v2v2v2v2_cubic ( float p[2],
const float v1[2],
const float v2[2],
const float v3[2],
const float v4[2],
float u )

Cubic curve interpolation (bezier spline).

Definition at line 142 of file math_vector.c.

References interp_v2_v2v2(), q1, and v2.

Referenced by BKE_mask_point_segment_co(), and wm_xr_navigation_fly_modal().

◆ interp_v3_v3v3()

void interp_v3_v3v3 ( float r[3],
const float a[3],
const float b[3],
float t )

Definition at line 36 of file math_vector.c.

References b.

Referenced by alter_co(), BKE_gpencil_stroke_close(), BKE_gpencil_stroke_smooth_point(), BKE_lattice_deform_data_eval_co(), BKE_mesh_remap_calc_edges_from_mesh(), blend_m3_m3m3(), blend_m4_m4m4(), bm_bridge_splice_loops(), bm_decim_edge_collapse(), bm_edgering_pair_interpolate(), bm_face_split_edge_find(), bm_grid_fill_array(), bm_isect_tri_tri(), bm_subdivide_edge_addvert(), bmo_planar_faces_exec(), bmo_smooth_vert_exec(), boid_find_ground(), bone_locked_color_shade(), calculate_new_bezier_point(), calculate_profile_segments(), blender::nodes::node_shader_curves_cc::rgb::CurveRGBFunction::call(), blender::nodes::node_shader_curves_cc::vec::CurveVecFunction::call(), blender::bke::pbvh::clip_ray_ortho(), closest_ray_to_segment_v3(), cloth_calc_average_acceleration(), cloth_calc_force(), cloth_collision_response_static(), cloth_continuum_step(), collision_move_object(), collision_newton_rhapson(), collision_response(), compute_collision_point_edge_tri(), constraint_target_to_mat4(), converge(), dist_squared_ray_to_seg_v3(), distlimit_evaluate(), do_clump_level(), do_guides(), do_kink(), do_kink_spiral(), draw_frustum_bound_sphere_calc(), edbm_blend_from_shape_exec(), evaluate_cubic_bezier(), find_nearest_edge__doClosest(), flyApply(), blender::draw::View::frustum_culling_sphere_calc(), get_bezier_interpolated_point(), GPENCIL_draw_scene(), graph_refresh_fcurve_colors(), hook_co_apply(), interp_line_v3_v3v3v3(), interp_m3_m3m3(), interp_m4_m4m4(), interp_slerp_co_no_v3(), interpolate_pathcache(), intersect_line_tri(), isect_tri_tri_v3_ex(), knife_closest_constrain_to_edge(), limit_dist_v3(), lineart_chain_create_crossing_point(), loop_interp_multires_cb(), mesh_symmetry_snap_exec(), meshcache_do(), mixColors(), blender::ed::space_node::nodelink_get_draw_config(), offset_on_edge_between(), pipe_adj_vmesh(), position_tail_on_spline(), project_paint_face_init(), psys_cache_edit_paths_iter(), psys_get_particle_state(), ptcache_rigidbody_interpolate(), blender::ed::sculpt_paint::rake_data_update(), blender::io::alembic::read_mverts_interp(), rotateBevelPiece(), shrinkwrap_calc_nearest_surface_point_cb_ex(), shrinkwrap_calc_nearest_vertex_cb_ex(), shrinkwrap_calc_normal_projection_cb_ex(), shrinkwrap_get_tarmat(), shrinkwrap_snap_with_side(), SIM_cloth_solve(), SIM_hair_volume_add_segment(), SIM_hair_volume_grid_velocity(), SIM_hair_volume_solve_divergence(), simple_helper(), skin_smooth_hulls(), SnapData::snap_edge_points_impl(), splineik_evaluate_bone(), square_out_adj_vmesh(), state_calc_co_pair(), blender::ed::curves::stroke_elem_interp(), stroke_elem_interp(), subdivide_base(), subdividenurb(), target_project_edge(), timeline_cache_draw_single(), track_channel_color(), transdata_elem_bend(), transform_point_by_seg_v3(), tri_v3_scale(), ui_draw_but_CURVE(), ui_draw_but_CURVEPROFILE(), blender::compositor::ColorCurveOperation::update_memory_buffer_partial(), blender::compositor::ConstantLevelColorCurveOperation::update_memory_buffer_partial(), vert_slide_apply_elem(), view3d_preselect_mesh_edgering_update_edges_from_edge(), view3d_preselect_mesh_edgering_update_verts_from_edge(), view3d_smoothview_apply_with_interp(), viewrotate_apply(), warpModifier_do(), and WIDGETGROUP_xform_shear_setup().

◆ interp_v3_v3v3_char()

void interp_v3_v3v3_char ( char target[3],
const char a[3],
const char b[3],
float t )

Definition at line 219 of file math_vector.c.

References b, and interp_v3_v3v3_uchar().

◆ interp_v3_v3v3_db()

◆ interp_v3_v3v3_slerp()

bool interp_v3_v3v3_slerp ( float target[3],
const float a[3],
const float b[3],
float t )

slerp, treat vectors as spherical coordinates

See also
interp_qt_qtqt
Returns
success

Definition at line 55 of file math_vector.c.

References b, BLI_ASSERT_UNIT_V3, dot_v3v3(), interp_dot_slerp(), UNLIKELY, and w().

Referenced by interp_slerp_co_no_v3(), and interp_v3_v3v3_slerp_safe().

◆ interp_v3_v3v3_slerp_safe()

void interp_v3_v3v3_slerp_safe ( float target[3],
const float a[3],
const float b[3],
float t )

◆ interp_v3_v3v3_uchar()

void interp_v3_v3v3_uchar ( unsigned char target[3],
const unsigned char a[3],
const unsigned char b[3],
float t )

Definition at line 211 of file math_vector.c.

References b, and floorf.

Referenced by interp_v3_v3v3_char(), and widget_tab().

◆ interp_v3_v3v3v3()

◆ interp_v3_v3v3v3_uv()

void interp_v3_v3v3v3_uv ( float p[3],
const float v1[3],
const float v2[3],
const float v3[3],
const float uv[2] )

◆ interp_v3_v3v3v3v3()

void interp_v3_v3v3v3v3 ( float p[3],
const float v1[3],
const float v2[3],
const float v3[3],
const float v4[3],
const float w[4] )

Weight 3 vectors, 'w' must be unit length but is not a vector, just 4 weights.

Definition at line 169 of file math_vector.c.

References v2, and w().

Referenced by BKE_where_on_path(), psys_interpolate_face(), psys_interpolate_particle(), and psys_thread_create_path().

◆ interp_v4_v4v4()

◆ interp_v4_v4v4_char()

void interp_v4_v4v4_char ( char target[4],
const char a[4],
const char b[4],
float t )

Definition at line 233 of file math_vector.c.

References b, and interp_v4_v4v4_uchar().

◆ interp_v4_v4v4_uchar()

void interp_v4_v4v4_uchar ( unsigned char target[4],
const unsigned char a[4],
const unsigned char b[4],
float t )

Definition at line 224 of file math_vector.c.

References b, and floorf.

Referenced by interp_v4_v4v4_char().

◆ interp_v4_v4v4v4()

void interp_v4_v4v4v4 ( float p[4],
const float v1[4],
const float v2[4],
const float v3[4],
const float w[3] )

Definition at line 181 of file math_vector.c.

References v2, and w().

Referenced by dynamic_paint_set_init_color_vcol_to_imseq_cb(), and blender::bke::attribute_math::mix3().

◆ interp_v4_v4v4v4v4()

void interp_v4_v4v4v4v4 ( float p[4],
const float v1[4],
const float v2[4],
const float v3[4],
const float v4[4],
const float w[4] )

Definition at line 190 of file math_vector.c.

References v2, and w().

Referenced by blender::bke::attribute_math::mix4(), and blender::bke::attribute_math::mix4().

◆ interp_vn_vn()

void interp_vn_vn ( float * array_tar,
const float * array_src,
float t,
int size )

Definition at line 1221 of file math_vector.c.

References size().

Referenced by meshcache_do(), and Vector_lerp().

◆ invert_v2()

MINLINE void invert_v2 ( float r[2])

Definition at line 815 of file math_vector_inline.c.

References BLI_assert, and ELEM.

Referenced by DRW_globals_update(), and blender::bke::mesh_init_origspace().

◆ invert_v3()

◆ invert_v3_safe()

MINLINE void invert_v3_safe ( float r[3])

Invert the vector, but leaves zero values as zero.

Definition at line 830 of file math_vector_inline.c.

Referenced by BKE_bone_parent_transform_invert(), and blender::tests::TEST().

◆ is_finite_v2()

bool is_finite_v2 ( const float v[2])

Definition at line 349 of file math_vector.c.

References v.

Referenced by accumulate_marker().

◆ is_finite_v3()

◆ is_finite_v4()

bool is_finite_v4 ( const float v[4])

Definition at line 359 of file math_vector.c.

References v.

Referenced by barycentric_weights_v2_quad(), and blender::ed::sculpt_paint::color::do_paint_brush().

◆ is_one_v3()

MINLINE bool is_one_v3 ( const float v[3])

◆ is_zero_v2()

◆ is_zero_v2_db()

MINLINE bool is_zero_v2_db ( const double v[2])

Definition at line 1293 of file math_vector_inline.c.

References v.

◆ is_zero_v3()

MINLINE bool is_zero_v3 ( const float v[3])

Definition at line 1283 of file math_vector_inline.c.

References v.

Referenced by apply_weights_vertex_normal(), applyarmature_process_selected_recursive(), applyTranslation(), axis_dominant_v3_to_m3(), axis_dominant_v3_to_m3_negate(), axisProjection(), bevel_list_calc_bisect(), BKE_gpencil_update_layer_transforms(), BKE_gpencil_visible_stroke_advanced_iter(), BKE_texture_mapping_init(), blo_do_versions_250(), blo_do_versions_260(), blo_do_versions_280(), BM_loop_calc_face_normal_safe_ex(), BM_loop_calc_face_normal_safe_vcos_ex(), BM_loop_interp_from_face(), bm_mesh_loops_custom_normals_set(), bmo_bisect_plane_exec(), bmo_spin_exec(), bmo_triangle_fill_exec(), bridge_loop_pair(), blender::ed::sculpt_paint::brush_delta_update(), brush_puff(), calc_bbox(), calculate_profile_segments(), calculateCenter2D(), closest_to_ray_v3(), cloth_calc_force(), cloth_continuum_step(), blender::bke::mesh::corner_space_custom_normal_to_data(), createSpaceNormal(), createSpaceNormalTangent(), blender::ed::curves::curve_draw_event_add_first(), curve_draw_event_add_first(), blender::ed::sculpt_paint::do_multiplane_scrape_brush(), dot_v3v3v3(), drawEdgeSlide(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_edit_invoke(), ED_getTransformOrientationMatrix(), edbm_screw_exec(), edbm_set_normals_from_faces_exec(), edbm_spin_exec(), edge_slide_apply_elem(), ElementRotation_ex(), blender::bke::subdiv::eval_limit_point_and_derivatives(), generate_vert_coordinates(), getTransformOrientation_ex(), gizmo_bisect_prop_angle_get(), gizmo_bisect_prop_angle_set(), gizmo_mesh_spin_init_refresh(), gizmo_mesh_spin_redo_setup(), gizmo_spin_prop_axis_angle_get(), gizmo_spin_prop_axis_angle_set(), greasepencil_copy_data(), initResize(), is_zero_m3(), make_unit_square_map(), mdisp_in_mdispquad(), mesh_customdatacorrect_face_substitute_set(), mesh_customdatacorrect_find_best_face_substitute(), mesh_customdatacorrect_init_vert(), blender::bke::mesh::mesh_normals_corner_custom_set(), move_profile_plane(), move_weld_profile_planes(), blender::nodes::node_shader_bsdf_ray_portal_cc::node_shader_gpu_bsdf_ray_portal(), blender::nodes::node_shader_bsdf_transparent_cc::node_shader_gpu_bsdf_transparent(), object_asset_dimensions_property(), project_v3_v3v3(), ptcache_cloth_extra_write(), quat__axis_angle_sanitize(), quat_to_axis_angle(), blender::ed::curves::stroke_elem_pressure_set(), stroke_elem_pressure_set(), blender::ed::curves::stroke_elem_project_fallback(), stroke_elem_project_fallback(), TEST(), transform_constraint_get_nearest(), transform_convert_mesh_islands_calc(), ui_numedit_but_HSVCIRCLE(), v3d_cursor_snap_update(), validSnappingNormal(), and view3d_ob_drop_on_enter().

◆ is_zero_v3_db()

MINLINE bool is_zero_v3_db ( const double v[3])

Definition at line 1298 of file math_vector_inline.c.

References v.

Referenced by project_v3_v3v3_db().

◆ is_zero_v4()

MINLINE bool is_zero_v4 ( const float v[4])

◆ is_zero_v4_db()

MINLINE bool is_zero_v4_db ( const double v[4])

Definition at line 1303 of file math_vector_inline.c.

References v.

◆ len_manhattan_v2()

MINLINE float len_manhattan_v2 ( const float v[2])

Definition at line 996 of file math_vector_inline.c.

References fabsf, and v.

Referenced by len_manhattan_v2v2().

◆ len_manhattan_v2_int()

MINLINE int len_manhattan_v2_int ( const int v[2])

Definition at line 1001 of file math_vector_inline.c.

References abs(), and v.

Referenced by len_manhattan_v2v2_int().

◆ len_manhattan_v2v2()

◆ len_manhattan_v2v2_int()

◆ len_manhattan_v3()

MINLINE float len_manhattan_v3 ( const float v[3])

Definition at line 1006 of file math_vector_inline.c.

References fabsf, and v.

Referenced by len_manhattan_v3v3(), shrinkwrap_snap_with_side(), and target_project_solve_point_tri().

◆ len_manhattan_v3v3()

MINLINE float len_manhattan_v3v3 ( const float a[3],
const float b[3] )

Definition at line 1106 of file math_vector_inline.c.

References b, len_manhattan_v3(), and sub_v3_v3v3().

◆ len_squared_v2()

◆ len_squared_v2v2()

MINLINE float len_squared_v2v2 ( const float a[2],
const float b[2] )

Definition at line 1058 of file math_vector_inline.c.

References b, dot_v2v2(), and sub_v2_v2v2().

Referenced by add_vertex_handle_cyclic_at_point(), armature_circle_doSelectJoint(), BKE_curveprofile_update(), blf_glyph_to_curves(), bm_face_split_edgenet_find_connection(), calcEdgeSlide_mval_range(), closest_seg_seg_v2(), blender::ed::curves::curve_draw_event_add(), curve_draw_event_add(), blender::ed::curves::curve_draw_exec_precalc(), curve_draw_exec_precalc(), curve_draw_modal(), blender::ed::curves::curves_draw_modal(), dist_squared_to_line_segment_v2(), dist_squared_to_line_v2(), dist_squared_to_projected_aabb(), do_circle_select_mball__doSelectElem(), do_projectpaint_thread(), ED_mask_feather_find_nearest(), ED_mask_point_find_nearest(), edbm_rip_edge_invoke(), edge_isect_ls_sort_cb(), get_shortest_pattern_side(), gizmo_arrow_test_select(), gizmo_axis_test_select(), isect_seg_seg_v2_point_ex(), isPolyValid(), knife_find_closest_edge_of_face(), knife_find_closest_vert_of_edge(), knife_find_line_hits(), knife_sample_screen_density_from_closest_face(), latticecurve_circle_doSelect(), layerEqual_mloop_origspace(), maskrasterize_spline_differentiate_point_outset(), mesh_circle_doSelectFace(), mesh_circle_doSelectVert(), mouse_mesh_loop(), nurbscurve_circle_doSelect(), object_circle_select(), object_mouse_select_menu(), blender::ed::sculpt_paint::paint_smooth_stroke(), paint_vertsel_circle_select_doSelectVert(), pchan_circle_doSelectJoint(), project_paint_face_init(), setup_vertex_point(), slide_point_modal(), spline_under_mouse_get(), test_projected_vert_dist(), ui_do_but_CURVE(), ui_do_but_CURVEPROFILE(), ui_mouse_motion_towards_check(), ui_pie_handler(), VertSlideData::update_active_vert(), updateSelectedSnapPoint(), uv_find_nearest_loop_from_vert(), blender::geometry::uv_find_pin_index(), uv_nearest_grid_tile_distance(), uv_nearest_image_tile_distance(), uv_remove_doubles_to_selected_shared_vertex(), uvedit_line_update_endpoint(), uvedit_nearest_uv(), vfont_to_curve(), and vpaint_proj_dm_map_cosnos_update__map_cb().

◆ len_squared_v2v2_db()

MINLINE double len_squared_v2v2_db ( const double a[2],
const double b[2] )

Definition at line 1066 of file math_vector_inline.c.

References b, dot_v2v2_db(), and sub_v2_v2v2_db().

◆ len_squared_v3()

MINLINE float len_squared_v3 ( const float v[3])

Definition at line 986 of file math_vector_inline.c.

References v.

Referenced by adj_vmesh(), area_squared_poly_v3(), area_squared_tri_v3(), bezier_handle_calc_length_v3(), BKE_mesh_mirror_apply_mirror_on_axis_for_modifier(), BKE_object_empty_image_data_is_visible_in_view3d(), BLI_newton3d_solve(), BLI_scanfill_calc_ex(), bm_edge_collapse_is_degenerate_flip(), bm_edgexedge_isect_impl(), bm_edgexvert_isect_impl(), BM_face_calc_tangent_edge_diagonal(), BM_face_calc_tangent_edge_pair(), BM_face_calc_tangent_vert_diagonal(), BM_loop_calc_face_normal_safe_ex(), BM_loop_calc_face_normal_safe_vcos_ex(), BM_verts_calc_normal_from_cloud_ex(), blender::bke::pbvh::bmesh_update_topology(), bmo_inset_region_exec(), bmo_triangle_fill_exec(), bridge_loop_pair(), closest_to_plane3_v3(), closest_to_plane_v3(), cloth_collision(), cloth_collision_impulse_vert(), cloth_selfcollision(), contarget_get_mesh_mat(), densfunc(), dist_signed_squared_to_corner_v3v3v3(), dist_signed_squared_to_plane3_v3(), dist_signed_squared_to_plane_v3(), dist_signed_to_plane3_v3(), dist_signed_to_plane_v3(), dist_squared_ray_to_seg_v3(), dist_squared_to_plane3_v3(), dist_squared_to_plane_v3(), distfactor_to_bone(), draw_frustum_bound_sphere_calc(), ease_handle_axis(), ED_view3d_update_viewmat(), blender::draw::View::frustum_culling_sphere_calc(), hair_collision(), has_zero_axis_m4(), is_quad_convex_v3(), is_uniform_scaled_m3(), isect_line_sphere_v3(), isect_plane_plane_v3(), isect_planes_v3_fn(), isect_point_tri_v3(), isect_ray_line_v3(), isect_ray_ray_epsilon_v3(), isect_seg_seg_v3(), len_squared_v3v3_with_normal_bias(), line_point_factor_v3_ex(), mask_calc_point_handle(), mat3_to_size_max_axis(), mat4_to_dquat(), mat4_to_size_max_axis(), blender::geometry::mesh_merge_by_distance_connected(), mid_v3_angle_weighted(), MOD_solidify_nonmanifold_modifyMesh(), orthogonalize_m3_zero_axes_impl(), orthogonalize_stable(), plane_to_point_vector_v3(), project_v3_plane(), ray_point_factor_v3_ex(), recalc_face_normals_find_index(), rotateDifferentialCoordinates(), shrinkwrap_calc_normal_projection(), state_step__face_edges(), state_step__face_verts(), ui_draw_but_CURVE(), ui_draw_but_CURVEPROFILE(), v3d_editvertex_buts(), walkApply(), and zero_axis_bias_m4().

◆ len_squared_v3_db()

MINLINE double len_squared_v3_db ( const double v[3])

Definition at line 991 of file math_vector_inline.c.

References v.

◆ len_squared_v3v3()

MINLINE float len_squared_v3v3 ( const float a[3],
const float b[3] )

Definition at line 1074 of file math_vector_inline.c.

References b, dot_v3v3(), and sub_v3_v3v3().

Referenced by alter_co(), applyTranslation(), armature_fill_bones_exec(), bevel_build_cutoff(), bevel_reattach_wires(), BKE_gpencil_stroke_join(), BKE_mesh_mirror_apply_mirror_on_axis_for_modifier(), BKE_mesh_remap_calc_edges_from_mesh(), BKE_mesh_remap_calc_loops_from_mesh(), BKE_mesh_remap_calc_verts_from_mesh(), BKE_nurb_handles_autocalc(), bm_decim_build_edge_cost_single_squared__topology(), BM_edge_calc_length_squared(), BM_edge_rotate_check_beauty(), bm_edge_symmetry_check_cb(), bm_edgexedge_isect_impl(), bm_edgexvert_isect_impl(), BM_face_calc_tangent_edge_pair(), BM_face_find_longest_loop(), BM_face_find_shortest_loop(), BM_face_is_normal_valid(), bm_face_split_edge_find(), BM_face_triangulate(), bm_isect_edge_tri(), bm_isect_tri_tri(), bm_loop_calc_opposite_co(), BM_loop_find_next_nodouble(), BM_loop_find_prev_nodouble(), BM_mesh_edgeloops_calc_order(), BM_mesh_intersect(), BM_mesh_intersect_edges(), bm_vert_tri_find_unique_edge(), BM_verts_calc_normal_from_cloud_ex(), bmbvh_find_face_closest_cb(), bmbvh_find_vert_closest_cb(), bmbvh_overlap_cb(), bmo_inset_region_exec(), bmo_planar_faces_exec(), bone_length_squared_worldspace_get(), blender::ed::sculpt_paint::brush_delta_update(), blender::draw::bvh_overlap_cb(), blender::bke::pbvh::calc_grids_intersect_data(), blender::bke::pbvh::calc_mesh_intersect_data(), calc_nearest_point_squared(), calc_overlap(), cast_ray_highpoly(), closer_v3_v3v3v3(), cloth_calc_helper_forces(), compute_collision_point_edge_tri(), compute_collision_point_tri_tri(), dist_squared_to_line_segment_v3(), dist_squared_to_line_v3(), dist_squared_to_ray_v3_normalized(), blender::ed::sculpt_paint::geodesic::distances_create(), distfactor_to_bone(), dm_mvert_map_doubles(), draw_culling_sphere_test(), draw_frustum_bound_sphere_calc(), ED_armature_from_edit(), EDBM_verts_mirror_cache_begin_ex(), edge_length_squared_worldspace_get(), blender::bke::pbvh::edge_queue_tri_in_circle(), blender::bke::pbvh::edge_queue_tri_in_sphere(), edge_verts_sort(), blender::ed::curves::convert_to_particle_system::find_mface_for_root_position(), blender::draw::View::frustum_culling_sphere_calc(), hook_co_apply(), interp_slerp_co_no_v3(), intersect_line_tri(), is_quad_symmetric(), mesh_corner_tris_nearest_point(), mesh_corner_tris_target_project(), mesh_customdatacorrect_apply_vert(), mesh_edges_nearest_point(), mesh_edges_spherecast(), mesh_faces_nearest_point(), mesh_remap_bvhtree_query_nearest(), mesh_remap_interp_face_data_get(), mesh_remove_doubles_on_axis(), mesh_symmetry_snap_exec(), mesh_tris_nearest_point_dp(), MOD_solidify_extrude_modifyMesh(), nearestVert(), blender::bke::pbvh::node_raycast_bmesh(), blender::ed::object::object_orient_to_location(), optimal_check_callback(), blender::geometry::p_edge_length_squared(), blender::bke::pbvh::pbvh_bmesh_collapse_short_edges(), blender::bke::pbvh::pbvh_bmesh_subdivide_long_edges(), projected_boundary_area(), py_bvhtree_nearest_point_cb(), py_bvhtree_nearest_point_range_cb(), py_bvhtree_overlap_cb(), blender::bke::pbvh::raycast_node_detail_bmesh(), SCULPT_is_vertex_inside_brush_radius_symm(), set_mapped_co(), shrinkwrap_calc_nearest_surface_point_cb_ex(), shrinkwrap_calc_nearest_vertex_cb_ex(), shrinkwrap_calc_normal_projection_cb_ex(), skin_choose_quad_bridge_order(), sort_bmelem_flag(), sort_verts_by_dist_cb(), transform_snap_distance_len_squared_fn(), ui_draw_but_CURVE(), ui_draw_but_CURVEPROFILE(), update_hit(), vert2geom_task_cb_ex(), viewrotate_apply(), and warpModifier_do().

◆ len_squared_v4v4()

MINLINE float len_squared_v4v4 ( const float a[4],
const float b[4] )

◆ len_squared_vn()

double len_squared_vn ( const float * array,
int size )

Definition at line 1001 of file math_vector.c.

References size(), and sqr_db().

Referenced by normalize_vn_vn(), and Vector_richcmpr().

◆ len_v2()

◆ len_v2_db()

MINLINE double len_v2_db ( const double v[2])

Definition at line 1016 of file math_vector_inline.c.

References sqrt(), and v.

◆ len_v2v2()

MINLINE float len_v2v2 ( const float v1[2],
const float v2[2] )

Definition at line 1021 of file math_vector_inline.c.

References sqrtf, v2, x, and y.

Referenced by angle_normalized_v2v2(), annotation_add_missing_events(), BKE_gpencil_stroke_length(), BKE_gpencil_stroke_segment_length(), BKE_mask_calc_handle_adjacent_interp(), BLI_polyfill_beautify_quad_rotate_calc_ex(), BM_face_uv_calc_center_median_weighted(), blender::compositor::DistanceYCCMatteOperation::calculate_distance(), computeBindWeights(), blender::ed::curves::curve_draw_exec_precalc(), curve_draw_exec_precalc(), curveprofile_distance_to_next_table_point(), curveprofile_total_length(), draw_distortion(), draw_start_vertex_circle(), edbm_rip_edge_side_measure(), edbm_rip_edgedist_squared(), fcurve_scene_coord_range_get(), geodesic_distance_propagate_across_triangle(), get_uv_edge_needle(), gizmo_preselect_elem_test_select(), gizmo_ruler_draw(), gradientVert_update(), interp_weights_uv_v2_calc(), knife_find_line_hits(), knife_linehit_set(), knifetool_draw_angle(), blender::bke::pbvh::uv_islands::UVBorderEdge::length(), lineart_chain_fix_ambiguous_segments(), lineart_chain_get_closest_cre(), mask_spline_feather_differentiated_points_with_resolution__double(), MOD_lineart_chain_compute_length(), blender::geometry::p_chart_minimum_area_angle(), blender::geometry::p_edge_uv_length(), blender::geometry::p_rectangle_area(), paint_weight_gradient_exec(), plane_marker_size_len_in_pixels(), blender::ed::sculpt_paint::project_brush_radius(), ui_numedit_but_HSVCIRCLE(), blender::ed::sculpt_paint::update_curve_mask(), update_cut_data_for_nurb(), verttag_add_adjacent_uv(), and WM_gesture_polyline_modal().

◆ len_v2v2_db()

MINLINE double len_v2v2_db ( const double v1[2],
const double v2[2] )

Definition at line 1030 of file math_vector_inline.c.

References sqrt(), v2, x, and y.

Referenced by seq_retiming_line_segments_tangent_circle().

◆ len_v2v2_int()

MINLINE float len_v2v2_int ( const int v1[2],
const int v2[2] )

◆ len_v3()

MINLINE float len_v3 ( const float a[3])

Definition at line 1048 of file math_vector_inline.c.

References dot_v3v3(), and sqrtf.

Referenced by apply_boid_rule(), area_poly_v3(), area_tri_signed_v3(), area_tri_v3(), arrayModifier_doArray(), basic_force_cb(), basic_rotate(), BKE_armature_where_is_bone(), BKE_gpencil_stroke_trim(), BKE_object_dimensions_set_ex(), BKE_pose_rest(), BKE_volume_density_scale(), BLI_newton3d_solve(), BM_face_calc_area(), BM_face_calc_area_with_mat3(), bm_mesh_calc_uvs_sphere_face(), bmesh_test_dist_add(), boid_body(), bone_align_to_bone(), brush_puff(), calc_distanceCurveVerts(), calchandleNurb_intern(), blender::nodes::node_shader_tex_wave_cc::WaveFunction::call(), camera_frame_fit_calc_from_data(), cloth_collision_response_static(), cloth_selfcollision_response_static(), compute_collision_point_edge_tri(), compute_collision_point_tri_tri(), computeNormalDisplacement(), convert_pose(), convert_tree(), cotangent_tri_weight_v3(), ArmatureBoneDrawStrategyBBone::culling_test(), curvemap_make_table(), density_falloff(), dist_to_sphere_shell(), distribute_simple_children(), do_guides(), do_path_effectors(), do_set_scale(), dvar_eval_transChan(), dynamic_paint_generate_bake_data_cb(), dynamic_paint_paint_single_point_cb_ex(), edge_wind_vertex(), effector_falloff(), execute_posetree(), followtrack_distance_from_viewplane_get(), geodesic_distance_propagate_across_triangle(), get_effector_data(), gizmo_area_light_prop_matrix_set(), gizmo_arrow_modal(), gizmo_cage2d_modal(), gizmo_cage3d_modal(), gizmo_calc_rect_view_scale(), gizmo_calc_rect_view_scale(), gizmo_light_radius_prop_matrix_set(), gizmo_render_border_prop_matrix_set(), gpencil_object_cache_add(), headerTranslation(), init_scene(), kelvinlet_scale(), kelvinlet_twist(), len_v3v3(), mat3_to_scale(), mat3_to_size(), mat4_to_scale(), mat4_to_size(), mat4_to_xy_scale(), mean_value_half_tan_v3(), MOD_lineart_chain_offset_towards_camera(), MOD_solidify_nonmanifold_modifyMesh(), modify_mesh(), nr_distance_to_edge(), orient_mat_z_normalized(), orthogonalize_stable(), OVERLAY_camera_cache_populate(), OVERLAY_grid_init(), blender::geometry::p_edge_matrix(), paint_calc_object_space_radius(), blender::ed::sculpt_paint::paint_line_strokes_spacing(), blender::ed::sculpt_paint::paint_space_stroke(), blender::draw::particle_batch_cache_ensure_pos(), pointdensity_color(), position_tail_on_spline(), precalc_guides(), psys_cache_paths(), psys_get_particle_on_path(), psys_thread_create_path(), ResizeBetween(), rule_avoid_collision(), rule_flock(), rule_follow_leader(), rule_goal_avoid(), blender::ed::sculpt_paint::geodesic::sculpt_geodesic_mesh_test_dist_add(), setNearestAxis3d(), shrinkwrap_snap_with_side(), smooth_iter__length_weight(), sph_particle_courant(), sphclassical_density_accum_cb(), sphclassical_neighbor_accum_cb(), sphere_do(), splineik_evaluate_bone(), spring_length(), to_sphere_radius_update(), transformViewUpdate(), uiTemplateColorPicker(), update_courant_num(), blender::geometry::uv_parametrizer_average(), vcloud_estimate_transform_v3(), vec_to_quat(), view3d_zoom_border_exec(), viewAxisCorrectCenter(), viewrotate_apply(), WIDGETGROUP_camera_refresh(), window_translate_m4(), wm_xr_grab_compute_bimanual(), and wm_xr_navigation_grab_apply().

◆ len_v3_db()

MINLINE double len_v3_db ( const double a[3])

Definition at line 1053 of file math_vector_inline.c.

References dot_v3v3_db(), and sqrt().

Referenced by blender::bke::tests::EXPECT_M3_ORTHOGONAL().

◆ len_v3v3()

MINLINE float len_v3v3 ( const float a[3],
const float b[3] )

Definition at line 1114 of file math_vector_inline.c.

References b, len_v3(), and sub_v3_v3v3().

Referenced by Freestyle::BlenderFileLoader::addTriangle(), alter_co(), angle_normalized_v3v3(), apply_spring_memory(), armature_click_extrude_exec(), bezier_handle_calc_length_v3(), bezier_output_handle_inner(), BKE_anim_path_calc_data(), BKE_curve_bevelList_make(), BKE_gpencil_stroke_close(), BKE_gpencil_stroke_editcurve_generate(), BKE_gpencil_stroke_length(), BKE_gpencil_stroke_segment_length(), BKE_gpencil_stroke_uv_update(), BKE_kelvinlet_grab(), BKE_kelvinlet_grab_biscale(), BKE_kelvinlet_grab_triscale(), BKE_mask_calc_handle_point_auto(), BKE_mask_spline_resolution(), BKE_mesh_remap_calc_edges_from_mesh(), BKE_nurb_calc_length(), BKE_nurbList_handles_recalculate(), BKE_shrinkwrap_project_normal(), bm_decim_build_edge_cost_single__topology(), BM_edge_calc_length(), BM_edgeloop_calc_center(), bm_edgeloop_offset_length(), BM_face_calc_perimeter(), BM_face_calc_perimeter_with_mat3(), bm_vert_tri_find_unique_edge(), bmo_create_uvsphere_exec(), bmo_dissolve_degenerate_exec(), bmo_poke_exec(), bpy_bmedge_calc_length(), brush_puff(), calc_edge_subdivisions(), calc_ortho_extent(), calchandleNurb_intern(), blender::compositor::DistanceRGBMatteOperation::calculate_distance(), calculate_point_length(), calculate_profile(), cloth_add_shear_bend_spring(), cloth_build_springs(), cloth_calc_helper_forces(), cloth_update_spring_lengths(), compute_bbone_segment_boundaries(), computeBindWeights(), convert_pose(), curve_calc_dist_pair(), blender::ed::curves::curve_draw_exec_precalc(), curve_draw_exec_precalc(), curvemap_make_table(), deflect_emitter_iter(), depthdropper_depth_sample_pt(), distlimit_evaluate(), do_kink_spiral(), doVertSlide(), draw_bone_update_disp_matrix_bbone(), draw_bone_update_disp_matrix_default(), draw_frustum_bound_sphere_calc(), drw_call_culling_init(), drw_shgroup_bone_envelope(), DRW_text_edit_mesh_measure_stats(), dvar_eval_locDiff(), dynamic_paint_paint_single_point_cb_ex(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_parallel_lines_draw(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_sample_from_surface(), ED_armature_ebone_from_mat3(), ED_view3d_text_colors_get(), equalize_cubic_bezier(), fill_profile_fracs(), fill_vmesh_fracs(), find_internal_spring_target_vertex(), find_nearest_points_test(), blender::geometry::fix_large_angle(), frame_len(), blender::draw::View::frustum_culling_sphere_calc(), geodesic_distance_propagate_across_triangle(), get_ob2ob_distance(), get_uv_edge_needle(), get_vert2ob_distance(), globallen(), gpencil_stroke_editcurve_generate_edgecases(), hair_create_input_mesh(), hair_volume_eval_grid_vertex_sample(), blender::ed::sculpt_paint::boundary::indices_init_bmesh(), blender::ed::sculpt_paint::boundary::indices_init_grids(), blender::ed::sculpt_paint::boundary::indices_init_mesh(), init_laplacian_matrix(), init_laplacian_matrix(), ViewOpsData::init_navigation(), initBend(), knifetool_draw_visible_distances(), laplacian_triangle_area(), limit_dist_v3(), lineart_chain_get_closest_cre(), make_selection_list_nurb(), mdisp_rot_face_to_crn(), merge_2_nurb(), merge_frame_corners(), mesh_edges_spherecast(), mesh_island_to_astar_graph_edge_process(), mesh_remap_calc_loops_astar_f_cost(), mesh_verts_spherecast_do(), meshdeform_ray_tree_intersect(), modify_mesh(), move_all_selected_points(), move_bezt_handle_or_vertex_by_displacement(), move_segment(), nr_distance_to_vert(), blender::ed::object::object_transform_axis_target_modal(), blender::geometry::p_edge_length(), blender::ed::sculpt_paint::paint_cursor_cursor_draw_3d_view_brush_cursor_active(), blender::ed::sculpt_paint::paint_cursor_draw_3d_view_brush_cursor_inactive(), blender::draw::particle_batch_cache_ensure_pos(), blender::draw::particle_batch_cache_fill_segments_proc_pos(), pchan_culling_calc_bsphere(), point_is_visible(), position_tail_on_spline(), psys_hair_use_simulation(), psys_thread_create_path(), quad_verts_to_barycentric_tri(), blender::ed::sculpt_paint::rake_data_update(), recalc_lengths(), recalcData_edit_armature(), ruler_item_as_string(), sb_detect_edge_collisionCached(), SCULPT_raycast_init(), shrinkwrap_get_tarmat(), skin_hole_target_face(), sphere_do(), splineik_evaluate_bone(), springs_from_mesh(), state_link_add(), validate_solution(), valuefn(), vert_slide_transform_matrix_fn(), verttag_add_adjacent(), view3d_interactive_add_modal(), blender::ed::object::voxel_size_edit_draw(), blender::ed::object::voxel_size_edit_invoke(), and blender::ed::object::voxel_size_parallel_lines_draw().

◆ line_point_side_v2()

◆ madd_v2_v2db_db()

MINLINE void madd_v2_v2db_db ( double r[2],
const double a[2],
const double b[2],
double f )

Definition at line 693 of file math_vector_inline.c.

References b.

◆ madd_v2_v2fl()

◆ madd_v2_v2v2fl()

◆ madd_v3_v3fl()

MINLINE void madd_v3_v3fl ( float r[3],
const float a[3],
float f )

Definition at line 673 of file math_vector_inline.c.

Referenced by _scan_for_ext_spring_forces(), _softbody_calc_forces_slice_in_a_thread(), accumulate_vertex_normals_poly_v3(), accumulate_vertex_normals_tri_v3(), accumulate_vertex_normals_v3(), aggregate_item_normal(), alter_co(), applyTrackballValue_calc_axis_angle(), basic_force_cb(), basic_integrate(), Bend(), bindVert(), BKE_effectors_apply(), BKE_gpencil_stroke_smooth_point(), BKE_lattice_deform_data_eval_co(), BKE_mesh_calc_volume(), BKE_mesh_center_of_surface(), BKE_nurb_makeCurve(), BKE_nurb_makeFaces(), BLI_covariance_m3_v3n(), BLI_ewa_filter(), BM_edgeloop_calc_center(), BM_face_calc_center_median_weighted(), bm_grid_fill_array(), bm_loop_normal_accum(), bm_mesh_loops_calc_normals_for_loop(), BM_mesh_wireframe(), bm_vert_calc_normals_accum_loop(), BM_verts_calc_normal_from_cloud_ex(), blender::ed::sculpt_paint::smooth::bmesh_four_neighbor_average(), bmo_face_inset_individual(), bmo_inset_region_exec(), bmo_poke_exec(), boid_body(), boid_climb(), brush_puff(), camera_frame_fit_calc_from_data(), camera_stereoscopy_extra(), cast_ray_highpoly(), cloth_bend_poly_dir(), cloth_continuum_step(), cloth_solve_collisions(), collision_point_on_surface(), collision_point_velocity(), collision_response(), contarget_get_mesh_mat(), blender::bke::mesh::corner_space_custom_data_to_normal(), correctivesmooth_modifier_do(), cubic_subdiv(), deformVert(), displaceModifier_do_task(), do_guides(), do_kink(), do_kink_spiral_deform(), do_physical_effector(), do_rough(), do_rough_curve(), do_rough_end(), do_texture_effector(), draw_circle_in_quad(), draw_primitive_view_impl(), dynamic_paint_apply_surface_displace_cb(), dynamic_paint_apply_surface_wave_cb(), dynamic_paint_border_cb(), dynamic_paint_generate_bake_data_cb(), dynamic_paint_prepare_effect_cb(), ease_handle_axis(), ED_view3d_distance_set_from_location(), ED_view3d_from_m4(), edbm_blend_from_shape_exec(), edge_slide_apply_elem(), blender::bke::mesh::face_area_centroid_calc(), blender::ed::sculpt_paint::trim::generate_geometry(), blender::compositor::GlareGhostOperation::generate_glare(), blender::compositor::GlareSimpleStarOperation::generate_glare(), blender::compositor::GlareStreaksOperation::generate_glare(), gizmo_arrow_matrix_basis_get(), hair_volume_eval_grid_vertex_sample(), IMB_alpha_under_color_float(), integrate_particle(), isect_plane_plane_plane_v3(), isect_plane_plane_v3(), layerInterp_mvert_skin(), layerInterp_normal(), layerInterp_propfloat3(), layerInterp_shapekey(), make_child_duplis_faces_from_editmesh(), make_child_duplis_faces_from_mesh(), mesh_calc_center_centroid_ex(), blender::geometry::mesh_merge_by_distance_connected(), meshdeform_vert_task(), mid_v3_v3_array(), MOD_solidify_extrude_modifyMesh(), MOD_solidify_nonmanifold_modifyMesh(), modify_mesh(), blender::ed::object::object_origin_set_exec(), blender::ed::object::object_rand_transverts(), blender::ed::object::object_transform_axis_target_modal(), offset_in_plane(), offset_meet(), offset_meet_edge(), orthogonalize_stable(), OVERLAY_image_empty_cache_populate(), pchan_deform_accumulate(), poly_avg(), project_v3_plane(), psys_get_birth_coords(), psys_thread_create_path(), raycastMesh(), recalc_face_normals_find_index(), rule_avoid_collision(), rule_follow_leader(), sb_detect_edge_collisionCached(), sb_detect_face_collisionCached(), sb_detect_face_pointCached(), sb_detect_vertex_collisionCached(), sb_spring_force(), scan_for_ext_face_forces(), sculpt_kelvinet_integrate(), sculpt_project_v3_normal_align(), SCULPT_vertex_is_occluded(), SIM_hair_volume_add_vertex(), SIM_hair_volume_vertex_grid_forces(), SIM_mass_spring_force_drag(), SIM_mass_spring_force_face_wind(), SIM_mass_spring_force_pressure(), SIM_mass_spring_force_spring_bending_hair(), SIM_mass_spring_force_spring_goal(), SIM_mass_spring_force_spring_linear(), slide_dist(), smart_uv_project_calculate_project_normals(), smooth_iter__length_weight(), smooth_iter__simple(), solidify_add_thickness(), sph_force_cb(), sphclassical_force_cb(), blender::draw::statvis_calc_thickness(), blender::ed::curves::stroke_elem_pressure_set(), stroke_elem_pressure_set(), blender::ed::curves::stroke_elem_project(), stroke_elem_project(), studiolight_lights_eval(), target_project_tri_jacobian(), blender::compositor::ConvolutionEdgeFilterOperation::update_memory_buffer_partial(), update_velocities(), view3d_orbit_apply_dyn_ofs_ortho_correction(), walkApply(), WIDGETGROUP_light_target_draw_prepare(), WIDGETGROUP_xform_shear_draw_prepare(), wm_xr_fly_compute_move(), and wm_xr_navigation_teleport().

◆ madd_v3_v3v3()

MINLINE void madd_v3_v3v3 ( float r[3],
const float a[3],
const float b[3] )

Definition at line 680 of file math_vector_inline.c.

References b.

◆ madd_v3_v3v3db_db()

MINLINE void madd_v3_v3v3db_db ( double r[3],
const double a[3],
const double b[3],
double f )

Definition at line 706 of file math_vector_inline.c.

References b.

Referenced by reflect_v3_v3v3_db().

◆ madd_v3_v3v3fl()

MINLINE void madd_v3_v3v3fl ( float r[3],
const float a[3],
const float b[3],
float f )

Definition at line 699 of file math_vector_inline.c.

References b.

Referenced by add_vertex_invoke(), adj_vmesh(), adjust_miter_coords(), adjust_miter_inner_coords(), bevel_build_cutoff(), bezier_output_handle_inner(), BKE_curve_decimate_bezt_array(), BKE_gpencil_stroke_editcurve_generate(), BKE_shrinkwrap_snap_point_to_surface(), BLI_bvhtree_bb_raycast(), BM_edge_split(), bm_edgexedge_isect_impl(), bm_edgexvert_isect_impl(), BM_mesh_wireframe(), bmbvh_ray_cast_cb(), bmo_inset_region_exec(), boid_body(), brush_add(), brush_puff(), bvhtree_sphereray_tri_intersection(), calchandleNurb_intern(), blender::bke::pbvh::clip_ray_ortho(), clip_segment_v3_plane(), clip_segment_v3_plane_n(), clip_to_ortho_planes(), closest_on_tri_to_point_v3(), closest_to_plane3_normalized_v3(), closest_to_plane3_v3(), closest_to_plane_normalized_v3(), closest_to_plane_v3(), closest_to_ray_v3(), blender::ed::sculpt_paint::cloth::cloth_brush_collision_cb(), cloth_continuum_step(), collision_interpolate_element(), collision_point_distance_with_normal(), collision_point_on_surface(), collision_response(), collision_sphere_to_edges(), compute_collision_point_edge_tri(), compute_collision_point_tri_tri(), constraint_snap_plane_to_edge(), dfs_raycast(), dist_ensure_v3_v3fl(), do_path_effectors(), dynamic_paint_paint_mesh_cell_point_cb_ex(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_parallel_lines_draw(), ED_armature_ebone_from_mat3(), ED_view3d_win_to_3d(), ED_view3d_win_to_3d_on_plane(), effector_falloff(), evaluate_cubic_bezier(), blender::ed::sculpt_paint::trim::generate_geometry(), gizmo_arrow_modal(), harmonic_ray_callback(), heat_ray_source_visible(), integrate_particle(), interp_slerp_co_no_v3(), isect_line_plane_v3(), isect_line_sphere_v3(), isect_seg_seg_v3(), knife_bvh_raycast_cb(), knife_snap_angle_relative(), knifetool_draw_angle(), knifetool_raycast_planes(), blender::ed::sculpt_paint::gesture::line_calculate_plane_points(), loop_interp_multires_cb(), mesh_corner_tris_raycast_backface_culling_cb(), mesh_corner_tris_spherecast(), mesh_faces_spherecast(), meshdeform_ray_tree_intersect(), MOD_solidify_nonmanifold_modifyMesh(), blender::bke::pbvh::node_raycast_bmesh(), offset_on_edge_between(), planeProjection(), point_is_visible(), project_plane_normalized_v3_v3v3(), project_plane_v3_v3v3(), psys_get_particle_state(), py_bvhtree_raycast_cb(), reflect_v3_v3v3(), shrinkwrap_snap_with_side(), SIM_mass_spring_force_spring_bending_hair(), sph_force_cb(), sphclassical_force_cb(), spring_hairbend_forces(), surface_determineForceTargetPoints(), target_project_tri_deviation(), target_project_tri_jacobian(), transdata_elem_shrink_fatten(), transform_point_by_tri_v3(), update_location_for_2d_curve(), vert_slide_apply_elem(), view3d_win_to_ray_segment(), view_dolly_to_vector_3d(), view_zoom_to_window_xy_3d(), blender::ed::object::voxel_size_parallel_lines_draw(), wm_xr_controller_aim_draw(), and wm_xr_raycast_update().

◆ madd_v3_v3v3v3()

MINLINE void madd_v3_v3v3v3 ( float r[3],
const float a[3],
const float b[3],
const float c[3] )

◆ madd_v3fl_v3fl_v3fl_v3i()

MINLINE void madd_v3fl_v3fl_v3fl_v3i ( float r[3],
const float a[3],
const float b[3],
const int c[3] )

Definition at line 720 of file math_vector_inline.c.

References b, and float.

Referenced by OVERLAY_volume_extra(), and particles_fluid_step().

◆ madd_v4_v4fl()

◆ madd_v4_v4v4()

MINLINE void madd_v4_v4v4 ( float r[4],
const float a[4],
const float b[4] )

Definition at line 738 of file math_vector_inline.c.

References b.

◆ madd_vn_vn()

void madd_vn_vn ( float * array_tar,
const float * array_src,
float f,
int size )

Definition at line 1147 of file math_vector.c.

References size().

◆ madd_vn_vnvn()

void madd_vn_vnvn ( float * array_tar,
const float * array_src_a,
const float * array_src_b,
float f,
int size )

Definition at line 1157 of file math_vector.c.

References size().

◆ mid_v2_v2v2()

◆ mid_v2_v2v2v2()

void mid_v2_v2v2v2 ( float v[2],
const float v1[2],
const float v2[2],
const float v3[2] )

Definition at line 251 of file math_vector.c.

References v, and v2.

Referenced by overlap_tri_tri_uv_test().

◆ mid_v3_angle_weighted()

void mid_v3_angle_weighted ( float r[3])

Same as mid_v3_v3v3_angle_weighted but r is assumed to be accumulated normals, divided by their total.

Definition at line 300 of file math_vector.c.

References acosf, angle(), BLI_assert, float, len_squared_v3(), mul_v3_fl(), and normalize_v3().

◆ mid_v3_v3_array()

void mid_v3_v3_array ( float r[3],
const float(*) vec_arr[3],
unsigned int vec_arr_num )

Definition at line 272 of file math_vector.c.

References float, madd_v3_v3fl(), and zero_v3().

Referenced by computeBindWeights(), and deformVert().

◆ mid_v3_v3v3()

void mid_v3_v3v3 ( float r[3],
const float a[3],
const float b[3] )

Definition at line 238 of file math_vector.c.

References b.

Referenced by _scan_for_ext_spring_forces(), _softbody_calc_forces_slice_in_a_thread(), alter_co(), BKE_curve_texspace_calc(), BKE_mball_center_bounds(), BKE_mesh_mirror_apply_mirror_on_axis_for_modifier(), BKE_mesh_remesh_voxel_fix_poles(), BKE_mesh_texspace_calc(), bm_decim_build_quadrics(), bm_edge_symmetry_map(), BM_editselection_center(), BM_face_calc_center_bounds(), BM_face_calc_center_bounds_vcos(), BM_face_multires_bounds_smooth(), BM_vert_tri_calc_tangent_edge_pair(), bm_vert_tri_find_unique_edge(), BMBVH_EdgeVisible(), bmo_inset_region_exec(), brush_edit_init(), build_vmesh(), bundle_midpoint(), calc_ortho_extent(), calculateCenterBound(), blender::bke::pbvh::clip_ray_ortho(), collapse_face_corners(), compute_mdisp_quad(), createTransEdge(), cutEdges(), draw_bone_name(), draw_frustum_bound_sphere_calc(), draw_primitive_view_impl(), drw_call_calc_orco(), drw_call_culling_init(), ED_armature_origin_set(), edbm_face_split_by_edges_exec(), edbm_point_normals_modal(), edbm_polybuild_face_at_cursor_invoke(), edbm_polybuild_split_at_cursor_invoke(), edbm_rip_invoke__vert(), EDBM_unified_findnearest_from_raycast(), edgetag_cut_cost_face(), facetag_cut_cost_edge(), find_first_points(), blender::draw::View::frustum_culling_sphere_calc(), gizmo_3d_calc_pos(), interp_slerp_co_no_v3(), isect_face_dst(), isect_face_dst(), knife_find_closest_edge_of_face(), knife_find_line_hits(), knife_verts_edge_in_face(), match_texture_space_exec(), merge_frame_corners(), multires_subdivide_create_object_space_linear_grids(), blender::ed::object::object_origin_set_exec(), offset_meet(), offset_on_edge_between(), blender::bke::pbvh::pbvh_bmesh_collapse_edge(), blender::bke::pbvh::pbvh_bmesh_split_edge(), pchan_culling_calc_bsphere(), peelObjectsTransform(), quad_verts_to_barycentric_tri(), set_profile_params(), smoothModifier_do(), snap_curs_to_sel_ex(), SnapData::snap_edge_points_impl(), sort_bmelem_flag(), square_out_adj_vmesh(), uv_map_transform_center(), view3d_from_minmax(), view3d_interactive_add_modal(), view3d_localview_init(), view3d_preselect_update_preview_triangle_from_edge(), blender::ed::object::voxel_size_edit_invoke(), blender::ed::object::voxel_size_parallel_lines_draw(), and WIDGETGROUP_xform_cage_refresh().

◆ mid_v3_v3v3_angle_weighted()

void mid_v3_v3v3_angle_weighted ( float r[3],
const float a[3],
const float b[3] )

Specialized function for calculating normals. Fast-path for:

add_v3_v3v3(r, a, b);
#define M_PI_2
MINLINE void mul_v3_fl(float r[3], float f)
MINLINE void add_v3_v3v3(float r[3], const float a[3], const float b[3])
float angle_normalized_v3v3(const float v1[3], const float v2[3]) ATTR_WARN_UNUSED_RESULT
MINLINE float normalize_v3(float n[3])
local_group_size(16, 16) .push_constant(Type b

We can use the length of (a + b) to calculate the angle.

Definition at line 282 of file math_vector.c.

References acosf, add_v3_v3v3(), angle(), b, BLI_ASSERT_UNIT_V3, float, mul_v3_fl(), and normalize_v3().

Referenced by mesh_calc_hq_normal().

◆ mid_v3_v3v3v3()

◆ mid_v3_v3v3v3v3()

void mid_v3_v3v3v3v3 ( float v[3],
const float v1[3],
const float v2[3],
const float v3[3],
const float v4[3] )

◆ minmax_v2v2_v2()

◆ minmax_v3v3_v3()

◆ minmax_v4v4_v4()

void minmax_v4v4_v4 ( float min[4],
float max[4],
const float vec[4] )

Definition at line 855 of file math_vector.c.

References min.

Referenced by layerDoMinMax_propcol().

◆ msub_vn_vn()

void msub_vn_vn ( float * array_tar,
const float * array_src,
float f,
int size )

Definition at line 1196 of file math_vector.c.

References size().

◆ msub_vn_vnvn()

void msub_vn_vnvn ( float * array_tar,
const float * array_src_a,
const float * array_src_b,
float f,
int size )

Definition at line 1206 of file math_vector.c.

References size().

◆ mul_project_m4_v3_zfac()

MINLINE float mul_project_m4_v3_zfac ( const float mat[4][4],
const float co[3] )

Convenience function to get the projected depth of a position. This avoids creating a temporary 4D vector and multiplying it - only for the 4th component.

Matches logic for:

float co_4d[4] = {co[0], co[1], co[2], 1.0};
mul_m4_v4(mat, co_4d);
return co_4d[3];
void mul_m4_v4(const float mat[4][4], float r[4])

Definition at line 636 of file math_vector_inline.c.

Referenced by add_vertex_invoke(), dist_squared_to_projected_aabb(), ED_view3d_calc_zfac_ex(), ED_view3d_pixel_size(), ED_view3d_pixel_size_no_ui_scale(), gpencil_vfx_blur(), gpencil_vfx_pixelize(), gpencil_vfx_rim(), gpencil_vfx_shadow(), gpencil_vfx_swirl(), gpencil_vfx_wave(), mul_project_m4_v3(), mul_v2_project_m4_v3(), mul_v3_project_m4_v3(), setNearestAxis3d(), test_projected_vert_dist(), and update_location_for_2d_curve().

◆ mul_v2_fl()

MINLINE void mul_v2_fl ( float r[2],
float f )

Definition at line 534 of file math_vector_inline.c.

Referenced by annotation_stroke_arrow_calc_points(), bev_merge_edge_uvs(), bev_merge_uvs(), bezier_calc_handle_adj(), BKE_mask_point_set_handle(), BM_face_splits_check_legal(), BM_face_uv_calc_center_median(), BM_face_uv_calc_center_median_weighted(), boid_body(), build_underline(), compensate_rotation_center(), createTransUVs(), dial_ghostarc_draw_incremental_angle(), do_rough_end(), do_vert_pair(), draw_distortion(), ED_image_draw_cursor(), ED_uvedit_median_multi(), edbm_rip_edge_invoke(), edge_slide_data_init_mval(), getArrowEndPoint(), gizmo2d_xform_draw_prepare(), gizmo_axis_test_select(), gizmo_button2d_test_select(), gizmo_move_modal(), gpencil_calc_stroke_fill_uv(), gpencil_vfx_blur(), gpencil_vfx_pixelize(), gpencil_vfx_rim(), gpencil_vfx_shadow(), gpencil_vfx_swirl(), gpencil_vfx_wave(), GPU_matrix_project_2fv(), HC_relaxation_iteration_uv(), image_camera_background_matrix_get(), imagewraposa_aniso(), kdtree2d_isect_tri(), laplacian_relaxation_iteration_uv(), layerMultiply_mloop_origspace(), marker_block_handler(), mask_spline_feather_differentiated_points_with_resolution__double(), mdisp_in_mdispquad(), multiply_marker(), blender::draw::overlay::Cameras::object_sync(), OVERLAY_camera_cache_populate(), blender::ed::sculpt_paint::paint_stroke_jitter_pos(), blender::ed::sculpt_paint::paint_stroke_sample_average(), points_to_bezier(), rounded_corners(), seq_get_strip_pivot_median(), slide_marker_modal(), slide_point_modal(), slide_spline_curvature_modal(), snap_grid_uv(), stabilization_calculate_data(), surface_determineForceTargetPoints(), test_projected_vert_dist(), tracking_average_tracks(), ui_draw_but_TAB_outline(), ui_draw_rounded_corners_inverted(), ui_pie_handler(), uiTemplateMarker(), uv_image_outset(), uv_remove_doubles_to_selected(), uv_rip_pairs_calc_center_and_direction(), uvedit_vertex_buttons(), v2_quad_corners_to_mat4(), wm_gesture_draw_line_active_side(), and wm_gesture_straightline_do_angle_snap().

◆ mul_v2_v2()

◆ mul_v2_v2_ccw()

MINLINE void mul_v2_v2_ccw ( float r[2],
const float mat[2],
const float vec[2] )

Definition at line 628 of file math_vector_inline.c.

◆ mul_v2_v2_cw()

MINLINE void mul_v2_v2_cw ( float r[2],
const float mat[2],
const float vec[2] )

Avoid doing:

angle = atan2f(dvec[0], dvec[1]); angle_to_mat2(mat, angle);

instead use a vector as a matrix.

Definition at line 620 of file math_vector_inline.c.

References BLI_assert.

◆ mul_v2_v2fl()

◆ mul_v2_v2v2()

MINLINE void mul_v2_v2v2 ( float r[2],
const float a[2],
const float b[2] )

Definition at line 753 of file math_vector_inline.c.

References b.

Referenced by snap_grid_uv(), uv_image_outset(), and uvedit_nearest_uv().

◆ mul_v3_fl()

MINLINE void mul_v3_fl ( float r[3],
float f )

Definition at line 546 of file math_vector_inline.c.

Referenced by _scan_for_ext_spring_forces(), _softbody_calc_forces_slice_in_a_thread(), actcon_get_tarmat(), adj_vmesh(), alter_co(), apply_lengths_iter(), area_squared_poly_v3(), area_squared_tri_v3(), armature_vert_task_with_dvert(), blender::bke::subdiv::average_with_other(), avg4(), axisProjection(), barycentric_weights(), barycentric_weights_v2(), barycentric_weights_v2_clamped(), barycentric_weights_v2_persp(), basic_force_cb(), basic_integrate(), basic_rotate(), BKE_camera_view_frame_ex(), BKE_curve_center_median(), BKE_gpencil_stroke_2d_flat_ref(), BKE_gpencil_stroke_smooth_point(), BKE_lattice_center_median(), BKE_mball_center_median(), BKE_mball_transform(), BKE_mesh_calc_relative_deform(), BKE_mesh_calc_volume(), BKE_mesh_center_median(), BKE_mesh_center_median_from_faces(), BKE_mesh_center_of_surface(), BKE_mesh_center_of_volume(), BKE_mesh_mirror_apply_mirror_on_axis_for_modifier(), BKE_mesh_normals_loop_to_vertex(), BKE_mesh_remap_find_best_match_from_mesh(), BKE_mesh_remesh_voxel_fix_poles(), BKE_multires_construct_tangent_matrix(), BKE_pchan_bbone_handles_compute(), BKE_pose_where_is_bone_tail(), BLI_ewa_filter(), BLI_newton3d_solve(), blo_do_versions_280(), BM_edgeloop_calc_center(), BM_face_calc_center_median(), BM_face_calc_center_median_weighted(), bm_face_calc_poly_center_median_vertex_cos(), BM_face_multires_bounds_smooth(), BM_mesh_edgeloops_calc_order(), bm_mesh_loops_assign_normal_data(), bmesh_selected_verts_center_calc(), bmo_collapse_exec(), bmo_face_inset_individual(), bmo_inset_region_exec(), bmo_smooth_vert_exec(), boid_body(), boid_brain(), boid_climb(), bone_align_to_bone(), bone_hint_color_shade(), brush_add(), brush_comb(), brush_edit_apply(), brush_length(), brush_puff(), brush_smooth_do(), calc_bbox(), calc_curve_deform(), calc_frame_center(), calc_solidify_normals(), calculateCenterMedian(), check_path_length(), clamp_axis_max_v3(), closest_on_tri_to_point_v3(), closest_point_on_surface(), cloth_calc_average_acceleration(), cloth_calc_force(), cloth_calc_helper_forces(), cloth_collision_response_static(), cloth_from_object(), cloth_get_grid_location(), cloth_hair_update_bending_targets(), cloth_selfcollision_response_static(), collision_check(), collision_fail(), collision_response(), contarget_get_lattice_mat(), contarget_get_mesh_mat(), correctivesmooth_modifier_do(), createFacepa(), createTransGPencil_center_get(), createTransGraphEditData(), cubic_subdiv(), curvemap_make_table(), deflect_emitter_iter(), displaceModifier_do_task(), do_clump(), do_guides(), do_kink(), do_particle_interpolation(), do_path_effectors(), do_physical_effector(), blender::ed::sculpt_paint::pose::do_pose_brush(), do_projectpaint_draw_f(), do_projectpaint_thread(), do_rough(), do_rough_curve(), do_set_scale(), do_version_bone_head_tail_237(), do_version_constraints_radians_degrees_270_1(), blender::ed::space_node::draw_background_color(), draw_frustum_bound_sphere_calc(), drawEdgeSlide(), drawLine(), drawVertSlide(), dynamic_paint_brush_velocity_compute_cb(), dynamic_paint_generate_bake_data_cb(), dynamic_paint_output_surface_image_paint_cb(), dynamicPaint_brushObjectCalculateVelocity(), dynamicPaint_paintMesh(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_parallel_lines_draw(), ED_armature_origin_set(), ED_curve_add_nurbs_primitive(), ed_editcurve_addvert(), ED_mball_add_primitive(), ED_transform_calc_gizmo_stats(), ED_view3d_global_to_vector(), ED_view3d_text_colors_get(), edbm_average_normals_exec(), edbm_calc_loop_co(), edbm_dupli_extrude_cursor_invoke(), edbm_extrude_repeat_exec(), edbm_screw_exec(), edbm_smooth_normals_exec(), ElementResize(), blender::io::usd::ensure_root_prim(), blender::bke::subdiv::evaluate_vertex_and_apply_displacement_copy(), blender::bke::subdiv::evaluate_vertex_and_apply_displacement_interpolate(), execute_posetree(), execute_scene(), explodeMesh(), blender::bke::mesh::face_area_centroid_calc(), find_internal_spring_target_vertex(), flush_pixel(), flyApply(), followpath_evaluate(), blender::draw::View::frustum_culling_sphere_calc(), blender::compositor::GlareGhostOperation::generate_glare(), blender::compositor::GlareSimpleStarOperation::generate_glare(), get_effector_data(), get_selected_center(), getSnapPoint(), give_parvert(), gizmo_cage2d_modal(), gizmo_cage3d_modal(), gizmo_mesh_spin_init_refresh(), gizmo_move_modal(), gpencil_light_pool_populate(), gpencil_vfx_pixelize(), gpencil_vfx_shadow(), gpencil_vfx_swirl(), gpencil_vfx_wave(), GPU_matrix_project_3fv(), grid_to_world(), heat_ray_source_visible(), idp_snap_calc_incremental(), imagewraposa(), imbuf_byte_to_float_cb(), imm_draw_cube_corners_3d(), integrate_particle(), interp_barycentric_tri_v3(), interp_bilinear_quad_v3(), isect_line_line_epsilon_v3(), isect_line_line_strict_v3(), isect_plane_plane_plane_v3(), isect_plane_plane_v3(), isect_sweeping_sphere_tri_v3(), iterate_lengths_iter(), laplaciansmoothModifier_do(), blender::ed::sculpt_paint::gesture::line_plane_from_tri(), blender::io::ply::load_plydata(), M_Geometry_intersect_ray_tri(), make_bbone_spline_matrix(), make_cube_corner_adj_vmesh(), make_duplis_particle_system(), make_selection_list_nurb(), make_unit_cube_map(), mat4_to_size_fix_shear(), mdisp_in_mdispquad(), merge_target(), mesh_calc_center_centroid_ex(), mesh_calc_eigen_matrix(), blender::bke::mesh::mesh_normals_corner_custom_set(), meshdeform_vert_task(), mid_v3_angle_weighted(), mid_v3_v3v3_angle_weighted(), MOD_lineart_chain_offset_towards_camera(), MOD_solidify_nonmanifold_modifyMesh(), modify_mesh(), move_segment(), multires_apply_uniform_scale(), multires_reshape_apply_base_refit_base_mesh(), multitex(), blender::ed::space_node::node_gizmo_calc_matrix_space(), blender::ed::space_node::node_gizmo_calc_matrix_space_with_image_dims(), ob_parbone(), blender::ed::object::object_transform_axis_target_calc_depth_init(), offset_child(), offset_meet(), old_mdisps_bilinear(), orthogonalize_m3(), orthogonalize_m4(), orthogonalize_stable(), outside_lattice(), OVERLAY_camera_cache_populate(), OVERLAY_image_empty_cache_populate(), OVERLAY_lightprobe_cache_populate(), OVERLAY_mode_transfer_cache_populate(), blender::geometry::p_chart_correct_degenerate_triangle_point(), blender::geometry::p_chart_correct_degenerate_triangles2(), blender::geometry::p_edge_matrix(), blender::geometry::p_face_stretch(), paint_2d_gradient_fill(), blender::ed::sculpt_paint::paint_stroke_new(), particles_fluid_step(), point_normals_apply(), pointdensity(), pointdensity_cache_vertex_color(), prepare_for_decimate(), proj_paint_state_cavity_init(), blender::ed::sculpt_paint::project_brush_radius(), psys_apply_child_modifiers(), psys_get_birth_coords(), psys_get_particle_on_path(), psys_get_particle_state(), psys_particle_on_dm(), ptcache_cloth_interpolate(), ptcache_particle_interpolate(), ptcache_particle_read(), ptcache_softbody_interpolate(), quad_verts_to_barycentric_tri(), quat_normalized_to_expmap(), RE_bake_normal_world_to_tangent(), blender::io::alembic::read_velocity(), recalc_emitter_field(), recalc_face_normals_find_index(), reference_to_scratch(), rescale_m4(), blender::ed::object::return_editcurve_indexar(), blender::ed::object::return_editlattice_indexar(), blender::ed::object::return_editmesh_indexar(), blender::ed::object::return_editmesh_vgroup(), rotate(), rule_average_speed(), rule_avoid_collision(), rule_flock(), rule_follow_leader(), rule_goal_avoid(), rule_separate(), samevolume_evaluate(), sb_detect_edge_collisionCached(), sb_detect_face_collisionCached(), sb_detect_face_pointCached(), sb_detect_vertex_collisionCached(), scale_point(), scale_point_factor(), scale_tri(), scopes_update_cb(), SCULPT_cache_calc_brushdata_symm(), SCULPT_calc_vertex_displacement(), SCULPT_cube_tip_init(), SCULPT_cursor_geometry_info_update(), sculpt_kelvinet_integrate(), sculpt_project_v3_normal_align(), SCULPT_stroke_get_location_ex(), set_origin_exec(), setNearestAxis3d(), shrinkwrap_snap_with_side(), SIM_cloth_solve(), SIM_hair_volume_normalize_vertex_grid(), SIM_hair_volume_solve_divergence(), SIM_hair_volume_vertex_grid_forces(), SIM_mass_spring_force_face_extern(), SIM_mass_spring_force_face_wind(), SIM_mass_spring_force_gravity(), SIM_mass_spring_force_pressure(), SIM_mass_spring_force_reference_frame(), sizelike_evaluate(), sizelimit_evaluate(), skin_smooth_hulls(), smooth_iter__length_weight(), smoothModifier_do(), snap_curs_to_sel_ex(), softbody_apply_forces(), sph_integrate(), splineik_evaluate_bone(), blender::io::obj::store_bsdf_properties(), studiolight_lights_eval(), blender::bke::subdiv::subdiv_mesh_vertex_corner(), subsurf_calculate_limit_positions(), target_project_tri_correct(), timeline_cache_draw_geometry_nodes(), timeline_cache_modify_color_based_on_state(), tranform_snap_target_median_calc(), transdata_elem_shear(), transdata_elem_to_sphere(), transdata_elem_translate(), blender::compositor::ConvertRGBToYCCOperation::update_memory_buffer_partial(), blender::compositor::TonemapOperation::update_memory_buffer_partial(), update_velocities(), uv_map_transform_calc_center_median(), v3d_editvertex_buts(), vcloud_estimate_transform_v3(), blender::io::obj::OBJCurve::vertex_coordinates(), vfont_to_curve(), view3d_orbit_calc_center(), vmesh_center(), VoronoiVertexWeight::VoronoiVertexWeight(), blender::ed::object::voxel_size_edit_invoke(), blender::ed::object::voxel_size_parallel_lines_draw(), walkApply(), where_is_ik_bone(), WIDGETGROUP_camera_refresh(), WIDGETGROUP_camera_view_draw_prepare(), WIDGETGROUP_light_spot_refresh(), WIDGETGROUP_xform_cage_refresh(), WIDGETGROUP_xform_shear_draw_prepare(), WIDGETGROUP_xform_shear_refresh(), wm_xr_fly_compute_move(), wm_xr_grab_compute_bimanual(), wm_xr_pose_scale_to_imat(), wm_xr_pose_scale_to_mat(), blender::io::usd::world_material_to_dome_light(), and zero_axis_bias_m4().

◆ mul_v3_v3()

◆ mul_v3_v3db_db()

MINLINE void mul_v3_v3db_db ( double r[3],
const double a[3],
double f )

Definition at line 567 of file math_vector_inline.c.

Referenced by normalize_v3_v3_length_db(), and project_v3_v3v3_db().

◆ mul_v3_v3fl()

MINLINE void mul_v3_v3fl ( float r[3],
const float a[3],
float f )

Definition at line 560 of file math_vector_inline.c.

Referenced by annotation_draw_stabilizer(), applyTrackballValue_calc_axis_angle(), applyTranslation(), axis_angle_normalized_to_quat(), axisProjection(), BKE_gpencil_stroke_2d_flat(), BKE_gpencil_stroke_2d_flat_ref(), BKE_gpencil_stroke_editcurve_generate(), BKE_kelvinlet_grab(), BKE_kelvinlet_grab_biscale(), BKE_kelvinlet_grab_triscale(), BKE_paint_stroke_get_average(), bm_edgering_pair_interpolate(), BM_loop_calc_face_normal_safe_ex(), BM_loop_calc_face_normal_safe_vcos_ex(), bm_loop_flip_disp(), blender::ed::sculpt_paint::smooth::bmesh_four_neighbor_average(), brush_painter_imbuf_new(), brush_painter_imbuf_update(), cage3d_draw_box_interaction(), cage3d_draw_circle_handles(), calc_bbox(), calc_point_from_barycentric_extrusion(), camera_frame_fit_calc_from_data(), cast_ray_highpoly(), circball_array_fill(), blender::bke::pbvh::clip_ray_ortho(), cloth_calc_force(), cloth_continuum_fill_grid(), collision_response(), blender::bke::mesh::corner_space_custom_data_to_normal(), create_frame(), do_clump(), do_kink(), do_kink_spiral_deform(), draw_lasso_smooth_stroke_indicator(), drw_call_calc_orco(), dynamic_paint_border_cb(), dynamic_paint_paint_particle_cell_point_cb_ex(), dynamic_paint_paint_single_point_cb_ex(), edge_wind_vertex(), eyedropper_color_sample(), gizmo_3d_calc_pos(), gizmo_3d_setup_draw_from_twtype(), gizmo_axis_draw(), gizmo_mesh_extrude_orientation_matrix_set(), gizmo_mesh_extrude_refresh(), gizmo_mesh_spin_init_refresh(), integrate_particle(), isect_plane_plane_plane_v3(), isect_plane_plane_v3(), kelvinlet_scale(), kelvinlet_twist(), metaball_instance_data_set(), MOD_solidify_nonmanifold_modifyMesh(), normalize_v3_v3_length(), old_mdisps_bilinear(), orient_mat_z_normalized(), orthogonalize_stable(), outerproduct(), paint_2d_ibuf_rgb_set(), blender::ed::sculpt_paint::paint_line_strokes_spacing(), blender::ed::sculpt_paint::paint_space_stroke(), plane_to_point_vector_v3(), plane_to_point_vector_v3_normalized(), point_normals_apply(), pointdensity_color(), project_v3_v3v3(), project_v3_v3v3_normalized(), psys_get_birth_coords(), rotate(), rotateDifferentialCoordinates(), SIM_hair_volume_vertex_grid_forces(), SIM_mass_spring_force_spring_angular(), SIM_mass_spring_force_spring_bending(), SIM_mass_spring_force_spring_bending_hair(), SIM_mass_spring_force_spring_goal(), SIM_mass_spring_force_spring_linear(), SIM_mass_spring_force_vertex_wind(), sph_particle_courant(), spring_hairbend_forces(), spring_length(), track_colors(), transform_constraint_snap_axis_to_edge(), transform_constraint_snap_axis_to_face(), transform_convert_mesh_islands_calc(), ArmatureBoneDrawStrategyCustomShape::update_display_matrix(), blender::compositor::ConvolutionEdgeFilterOperation::update_memory_buffer_partial(), blender::compositor::TonemapOperation::update_memory_buffer_started(), view3d_ob_drop_on_enter(), walk_floor_distance_get(), walkApply(), and wm_xr_navigation_reset_exec().

◆ mul_v3_v3v3()

◆ mul_v3db_db()

◆ mul_v4_fl()

◆ mul_v4_v4()

MINLINE void mul_v4_v4 ( float r[4],
const float a[4] )

Definition at line 595 of file math_vector_inline.c.

◆ mul_v4_v4fl()

◆ mul_vn_db()

void mul_vn_db ( double * array_tar,
int size,
double f )

Definition at line 1309 of file math_vector.c.

References size().

Referenced by BLI_quadric_mul().

◆ mul_vn_fl()

◆ mul_vn_vn()

void mul_vn_vn ( float * array_tar,
const float * array_src,
int size )

Definition at line 1080 of file math_vector.c.

References size().

Referenced by Matrix_imul(), Quaternion_imul(), and Vector_imul().

◆ mul_vn_vn_fl()

void mul_vn_vn_fl ( float * array_tar,
const float * array_src,
int size,
float f )

Definition at line 1113 of file math_vector.c.

References size().

Referenced by color_mul_float(), matrix_mul_float(), normalize_vn_vn(), Vector_div(), and vector_mul_float().

◆ mul_vn_vnvn()

void mul_vn_vnvn ( float * array_tar,
const float * array_src_a,
const float * array_src_b,
int size )

Definition at line 1090 of file math_vector.c.

References size().

Referenced by Matrix_mul(), Quaternion_mul(), and vector_mul_vec().

◆ negate_v2()

MINLINE void negate_v2 ( float r[2])

Definition at line 759 of file math_vector_inline.c.

Referenced by bm_loop_calc_uv_angle_from_dir(), and slide_point_modal().

◆ negate_v2_v2()

◆ negate_v3()

MINLINE void negate_v3 ( float r[3])

Definition at line 771 of file math_vector_inline.c.

Referenced by armature_calc_roll_exec(), axis_set_view(), bevel_build_cutoff(), bevel_list_flip_tangents(), BKE_mesh_mirror_bisect_on_mirror_plane_for_modifier(), BKE_pchan_bbone_handles_compute(), BKE_pchan_bbone_spline_compute(), BKE_where_on_path(), BM_edgeloop_flip(), bm_edgering_pair_interpolate(), BM_face_normal_flip_ex(), BM_loop_calc_face_tangent(), bm_vert_boundary_tangent(), bm_vert_calc_surface_tangent(), bm_vert_pair_to_matrix(), bmo_inset_region_exec(), bmo_triangle_fill_exec(), boid_body(), calc_initial_placement_point_from_view(), calc_point_from_barycentric_extrusion(), cloth_continuum_fill_grid(), collision_point_on_surface(), compute_collision_point_tri_tri(), connection_node_frames(), dist_signed_squared_to_corner_v3v3v3(), distribute_from_volume_exec(), do_kink(), drw_call_calc_orco(), dynamic_paint_paint_mesh_cell_point_cb_ex(), ED_armature_ebone_roll_to_vector(), ED_view3d_clipping_calc_from_boundbox(), ED_view3d_cursor3d_position_rotation(), edbm_flip_normals_custom_loop_normals(), edbm_normals_tools_exec(), edbm_screw_exec(), ElementMirror(), end_node_frames(), flip_custom_normals(), flyApply(), generate_vert_coordinates(), blender::ed::sculpt_paint::trim::get_origin_and_normal(), blender::workbench::get_world_shading_rotation_matrix(), getTransformOrientation_ex(), gizmo_mesh_extrude_refresh(), ViewOpsData::init_navigation(), initShear_mouseInputMode(), isect_sweeping_sphere_tri_v3(), locktrack_evaluate(), mat3_normalized_to_eulo2(), mat3_to_rot_size(), mesh_bisect_interactive_calc(), blender::geometry::boolean::mesh_bm_concat(), nr_signed_distance_to_plane(), blender::ed::object::object_orient_to_location(), offset_meet(), OVERLAY_bounds(), point_normals_apply(), proj_paint_state_vert_flags_init(), proj_paint_state_viewport_init(), project_paint_uvpixel_mask(), psys_get_birth_coords(), quad_verts_to_barycentric_tri(), recalc_face_normals_find_index(), rule_fight(), SCULPT_vertex_is_occluded(), set_profile_params(), blender::draw::statvis_calc_distort(), blender::eevee::Light::sync(), tangent_from_uv_v3(), target_project_edge(), transform_evaluate(), transform_pivot_set_m4(), v3d_cursor_poject_surface_normal(), v3d_cursor_snap_update(), vectomat(), view3d_from_minmax(), view3d_interactive_add_begin(), view3d_interactive_add_modal(), view_zoom_to_window_xy_3d(), viewAxisCorrectCenter(), viewcenter_pick_invoke(), viewdolly_exec(), viewroll_exec(), viewroll_invoke(), viewrotate_apply(), walk_ray_cast(), WIDGETGROUP_tool_generic_refresh(), WIDGETGROUP_xform_shear_draw_prepare(), and wm_xr_navigation_reset_exec().

◆ negate_v3_db()

MINLINE void negate_v3_db ( double r[3])

Definition at line 808 of file math_vector_inline.c.

Referenced by BLI_quadric_optimize().

◆ negate_v3_short()

MINLINE void negate_v3_short ( short r[3])

Definition at line 801 of file math_vector_inline.c.

◆ negate_v3_v3()

MINLINE void negate_v3_v3 ( float r[3],
const float a[3] )

Definition at line 778 of file math_vector_inline.c.

Referenced by angle_normalized_v3v3(), applyNormalRotation(), applyRotation(), applyRotationMatrix(), axis_dominant_v3_to_m3_negate(), BKE_mesh_mirror_apply_mirror_on_axis_for_modifier(), BM_edge_rotate_check_degenerate(), bm_edgering_pair_interpolate(), boid_body(), camera_frame_fit_calc_from_data(), camera_frame_fit_data_init(), blender::ed::object::collection_drop_exec(), collision_response(), compute_collision_point_edge_tri(), compute_collision_point_tri_tri(), createSpaceNormalTangent(), curve_draw_invoke(), blender::ed::curves::curves_draw_invoke(), drawEdgeSlide(), drawVertSlide(), dynamic_paint_generate_bake_data_cb(), ED_view3d_cameracontrol_acquire(), ED_view3d_cursor3d_position(), ED_view3d_cursor3d_update(), ED_view3d_distance_set_from_location(), ED_view3d_from_m4(), ED_view3d_win_to_vector(), eff_calc_visibility(), evaluate_curve_type_object(), find_internal_spring_target_vertex(), generate_vert_coordinates(), get_duplivert_transform(), gizmo_mesh_spin_init_refresh_axis_orientation(), ViewOpsData::init_navigation(), mesh_remap_bvhtree_query_raycast(), MOD_solidify_nonmanifold_modifyMesh(), navigate_pivot_get(), blender::ed::object::object_origin_clear_exec(), blender::ed::object::object_origin_set_exec(), blender::ed::object::object_rand_transverts(), OVERLAY_grid_init(), psys_get_birth_coords(), rule_goal_avoid(), shrinkwrap_calc_normal_projection_cb_ex(), shrinkwrap_get_tarmat(), SIM_mass_spring_force_spring_bending_hair(), similar_edge_select_exec(), stretchto_evaluate(), v3d_cursor_plane_draw(), v3d_cursor_snap_update(), vec_to_quat(), Vector_to_track_quat(), view3d_interactive_add_begin(), view3d_localview_init(), view3d_zoom_border_exec(), view_zoom_to_window_xy_3d(), viewcenter_cursor_exec(), viewcenter_pick_invoke(), viewdolly_exec(), viewdolly_invoke(), warpModifier_do(), WIDGETGROUP_camera_refresh(), WIDGETGROUP_camera_setup(), WIDGETGROUP_light_spot_refresh(), and wm_xr_fly_compute_move().

◆ negate_v4()

MINLINE void negate_v4 ( float r[4])

Definition at line 785 of file math_vector_inline.c.

Referenced by occlusion_plane_create(), and pose_flip_quats_exec().

◆ negate_v4_v4()

◆ negate_vn()

void negate_vn ( float * array_tar,
int size )

Definition at line 1061 of file math_vector.c.

References size().

Referenced by Vector_negate().

◆ negate_vn_vn()

void negate_vn_vn ( float * array_tar,
const float * array_src,
int size )

Definition at line 1070 of file math_vector.c.

References size().

Referenced by Color_neg(), and Vector_neg().

◆ normal_float_to_short_v2()

MINLINE void normal_float_to_short_v2 ( short out[2],
const float in[2] )

Definition at line 1248 of file math_vector_inline.c.

◆ normal_float_to_short_v3()

◆ normal_float_to_short_v4()

MINLINE void normal_float_to_short_v4 ( short out[4],
const float in[4] )

Definition at line 1268 of file math_vector_inline.c.

◆ normal_short_to_float_v3()

MINLINE void normal_short_to_float_v3 ( float out[3],
const short in[3] )

Definition at line 1254 of file math_vector_inline.c.

Referenced by bm_corners_to_loops_ex().

◆ normalize_v2()

◆ normalize_v2_length()

MINLINE float normalize_v2_length ( float n[2],
float unit_length )

◆ normalize_v2_v2()

◆ normalize_v2_v2_length()

MINLINE float normalize_v2_v2_length ( float r[2],
const float a[2],
float unit_length )
Note
any vectors containing nan will be zeroed out.

Definition at line 1135 of file math_vector_inline.c.

References dot_v2v2(), mul_v2_v2fl(), sqrtf, and zero_v2().

Referenced by normalize_v2_length(), and normalize_v2_v2().

◆ normalize_v3()

MINLINE float normalize_v3 ( float n[3])

Definition at line 1243 of file math_vector_inline.c.

References normalize_v3_v3().

Referenced by _scan_for_ext_spring_forces(), _softbody_calc_forces_slice_in_a_thread(), accumulate_vertex_normals_poly_v3(), accumulate_vertex_normals_tri_v3(), accumulate_vertex_normals_v3(), adjust_miter_coords(), adjust_miter_inner_coords(), alter_co(), angle_poly_v3(), angle_quad_v3(), angle_tri_v3(), angle_v3v3v3(), apply_lengths_iter(), blender::ed::sculpt_paint::trim::apply_trim(), apply_weights_vertex_normal(), applyTrackballValue_calc_axis_angle(), armature_calc_roll_exec(), arrayModifier_doArray(), axis_angle_to_gimbal_axis(), basic_rotate(), bevel_harden_normals(), bevel_list_calc_bisect(), bevel_vert_construct(), bevlist_firstlast_direction_calc_from_bpoint(), bisect_v3_v3v3v3(), BKE_curve_bevelList_make(), BKE_curve_decimate_bezt_array(), BKE_gpencil_stroke_2d_flat(), BKE_gpencil_stroke_2d_flat_ref(), BKE_gpencil_stroke_normal(), BKE_mball_polygonize(), BKE_multires_construct_tangent_matrix(), BKE_nurb_bezt_calc_normal(), BKE_nurb_bezt_calc_plane(), BKE_nurb_bpoint_calc_normal(), BKE_nurb_bpoint_calc_plane(), BKE_pchan_bbone_handles_compute(), BKE_shrinkwrap_compute_smooth_normal(), BKE_volume_density_scale(), BLI_bvhtree_bb_raycast(), BLI_scanfill_calc_ex(), BLI_space_transform_apply_normal(), BLI_space_transform_invert_normal(), blinn_specular(), bm_decim_edge_collapse(), BM_edge_calc_face_angle_with_imat3_ex(), BM_edge_calc_face_tangent(), bm_edge_calc_rotate_beauty__area(), bm_edge_is_delimit(), BM_edge_rotate_check_degenerate(), BM_edgeloop_calc_normal(), BM_edgeloop_calc_normal_aligned(), BM_editselection_normal(), BM_editselection_plane(), bm_face_bisect_verts(), BM_face_calc_normal_subset(), bm_face_calc_poly_normal(), bm_face_calc_poly_normal_vertex_cos(), BM_face_calc_tangent_edge(), BM_face_calc_tangent_edge_diagonal(), BM_face_calc_tangent_edge_pair(), BM_face_calc_tangent_vert_diagonal(), BM_loop_calc_face_direction(), BM_loop_calc_face_normal(), BM_loop_calc_face_normal_safe_ex(), BM_loop_calc_face_normal_safe_vcos_ex(), BM_loop_calc_face_tangent(), BM_loop_interp_from_face(), bm_loop_normal_accum(), BM_mesh_calc_uvs_cone(), BM_mesh_edgeloops_calc_order(), bm_mesh_loops_calc_normals_for_loop(), bm_mesh_loops_custom_normals_set(), bm_subdivide_edge_addvert(), bm_vert_boundary_tangent(), BM_vert_calc_normal(), BM_vert_calc_normal_ex(), bm_vert_calc_normals_impl(), bm_vert_calc_normals_with_coords(), bm_vert_calc_surface_tangent(), BM_vert_normal_update_all(), bm_vert_pair_to_matrix(), BM_vert_tri_calc_tangent_edge(), BM_vert_tri_calc_tangent_edge_pair(), BM_verts_calc_normal_from_cloud_ex(), BMBVH_EdgeVisible(), BMD_mesh_intersection(), blender::ed::sculpt_paint::smooth::bmesh_four_neighbor_average(), bmo_dissolve_degenerate_exec(), bmo_extrude_face_region_exec(), bmo_face_inset_individual(), bmo_inset_region_exec(), bmo_spin_exec(), bmo_subdivide_edges_exec(), bmo_triangle_fill_exec(), boid_body(), boid_brain(), boid_climb(), boid_find_ground(), bone_align_to_bone(), bone_direction_worldspace_get(), blender::ed::sculpt_paint::brush_delta_update(), brush_puff(), build_emats_stack(), C_BVHTree_FromPolygons(), cache_key_incremental_rotation(), blender::ed::sculpt_paint::calc_brush_plane(), calc_curve_deform(), calc_edge_mat(), blender::ed::sculpt_paint::calc_local_from_screen(), calc_nor_area_tri(), calc_point_from_barycentric_cage(), calc_point_from_barycentric_extrusion(), calc_solidify_normals(), calc_tangent_loop(), calc_tangent_spaces(), calculateCenter(), camera_frame_fit_calc_from_data(), camera_frame_fit_data_init(), camera_stereoscopy_extra(), cast_ray_highpoly(), clip_to_ortho_planes(), cloth_calc_helper_forces(), cloth_collision_response_static(), cloth_continuum_add_hair_segments(), cloth_hair_update_bending_rest_targets(), cloth_hair_update_bending_targets(), cloth_selfcollision_response_static(), cloth_spring_angle(), collision_detect(), collision_point_distance_with_normal(), collision_point_on_surface(), collision_sphere_to_edges(), collision_sphere_to_verts(), compute_bbone_segment_boundaries(), blender::draw::compute_normalize_edge_vectors(), computeBindWeights(), computeImplictRotations(), connection_node_mat(), constraint_plane_normal_calc(), contarget_get_mesh_mat(), blender::compositor::NormalNode::convert_to_operations(), correct_bone_roll_value(), cos_v3v3v3(), GeometryExporter::create_normals(), createSpaceNormal(), createSpaceNormalTangent(), createTransCurveVerts(), damptrack_do_transform(), deflect_emitter_iter(), dist_ensure_v3_v3fl(), distfactor_to_bone(), distribute_from_volume_exec(), do_guides(), do_kink(), do_kink_spiral(), do_kink_spiral_deform(), blender::ed::sculpt_paint::do_multiplane_scrape_brush(), do_path_effectors(), do_physical_effector(), do_vpaint_brush_smear(), do_wpaint_brush_smear(), draw_frustum_culling_planes_calc(), draw_primitive_view_impl(), dynamic_paint_generate_bake_data_cb(), dynamic_paint_paint_mesh_cell_point_cb_ex(), dynamic_paint_paint_particle_cell_point_cb_ex(), dynamic_paint_prepare_adjacency_cb(), dynamicPaint_paintMesh(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_parallel_lines_draw(), ED_armature_ebone_roll_to_vector(), ED_armature_ebone_to_mat3(), ed_dissolve_bez_segment(), ED_view3d_cursor3d_position_rotation(), ED_view3d_depth_read_cached_normal(), ED_view3d_global_to_vector(), ED_view3d_offset_distance(), ED_view3d_win_to_3d_on_plane_with_fallback(), ED_view3d_win_to_vector(), edbm_average_normals_exec(), edbm_dupli_extrude_cursor_invoke(), edbm_face_split_by_edges_exec(), edbm_normals_tools_exec(), edbm_smooth_normals_exec(), edge_norm(), edge_pos_direction_worldspace_get(), edge_slide_snap_apply(), edges_angle_kind(), eff_calc_visibility(), blender::bke::subdiv::eval_limit_point_and_normal(), blender::geometry::extend_curves_curved(), blender::bke::mesh::face_angles_calc(), face_to_plane(), faces_check_flip(), blender::bke::tests::find_flip_boundary(), find_internal_spring_target_vertex(), flip_qt_qt(), followtrack_project_to_depth_object_if_needed(), forward_diff_bezier_cotangent(), geodesic_distance_propagate_across_triangle(), blender::io::obj::geom_add_vertex_normal(), get_effector_data(), getTransformOrientation_ex(), gizmo_3d_dial_matrixbasis_calc(), gizmo_arrow_modal(), gizmo_bisect_prop_angle_get(), gizmo_bisect_prop_angle_set(), gizmo_bisect_prop_depth_set(), gizmo_mesh_bisect_update_from_op(), gizmo_mesh_spin_init_refresh(), gizmo_mesh_spin_redo_draw_prepare(), gizmo_mesh_spin_redo_setup(), gizmo_mesh_spin_redo_update_from_op(), gizmo_spin_prop_axis_angle_get(), gizmo_spin_prop_axis_angle_set(), gpencil_depth_plane(), gpencil_object_cache_add(), grid_tangent_matrix(), heat_calc_vnormals(), heat_ray_source_visible(), heat_source_distance(), imm_draw_cylinder_fill_normal_3d(), initBend(), initSnapping(), Freestyle::BlenderFileLoader::insertShapeNode(), interp_slerp_co_no_v3(), interp_v3_v3v3_slerp_safe(), intersect_line_tri(), is_outside_edge(), isect_sweeping_sphere_tri_v3(), iterate_lengths_iter(), knife_ray_intersect_face(), knife_snap_angle_relative(), knifetool_draw_angle(), layerCopyValue_normal(), lineart_create_render_buffer_v3(), lineart_main_get_view_vector(), blender::io::ply::load_plydata(), locktrack_evaluate(), M_Geometry_intersect_plane_plane(), M_Geometry_intersect_ray_tri(), make_bevel_list_3D_minimum_twist(), make_bevel_list_3D_tangent(), make_bevel_list_segment_3D(), make_unit_square_map(), map_to_plane_v2_v3v3(), mat3_to_quat_legacy(), mat4_look_from_origin(), mdisp_axis_from_quad(), mesh_bisect_interactive_calc(), blender::geometry::boolean::mesh_bm_concat(), mesh_calc_hq_normal(), blender::bke::mesh::mesh_calc_tessellation_for_face_impl(), mesh_edges_nearest_point(), mesh_merge_transform(), mesh_tessface_calc(), meshdeform_inside_cage(), mid_v3_angle_weighted(), mid_v3_v3v3_angle_weighted(), mix_normals(), MOD_lineart_chain_feature_lines(), MOD_lineart_chain_offset_towards_camera(), MOD_solidify_extrude_modifyMesh(), MOD_solidify_nonmanifold_modifyMesh(), modify_mesh(), modify_mesh(), move_profile_plane(), move_weld_profile_planes(), multires_reshape_apply_base_refit_base_mesh(), next_edgehalf_bev(), blender::bke::mesh::normal_calc_ngon(), normal_poly_v3(), normal_quad_v3(), normal_tri_v3(), normalEditModifier_do_directional(), normalEditModifier_do_radial(), normalize_m3(), normalize_m3_ex(), normalize_m4(), normalize_m4_ex(), normals_merge(), normals_split(), nr_signed_distance_to_plane(), nurb_bezt_direction_worldspace_get(), nurb_bpoint_direction_worldspace_get(), blender::ed::object::object_orient_to_location(), blender::ed::object::object_transform_axis_target_modal(), offset_in_plane(), offset_meet(), offset_meet_edge(), offset_on_edge_between(), orient_mat_z_normalized(), orthogonalize_m3(), orthogonalize_m4(), orthogonalize_stable(), OVERLAY_paint_cache_init(), blender::geometry::p_add_ngon(), blender::ed::sculpt_paint::paint_line_strokes_spacing(), blender::ed::sculpt_paint::paint_space_stroke(), blender::bke::pbvh::pbvh_bmesh_collapse_edge(), blender::bke::pbvh::pbvh_bmesh_split_edge(), pipe_test(), point_between_edges(), point_is_visible(), point_normals_apply(), proj_paint_state_cavity_init(), proj_paint_state_vert_flags_init(), proj_paint_state_viewport_init(), blender::ed::sculpt_paint::project_brush_radius(), project_paint_uvpixel_mask(), psys_get_birth_coords(), psys_get_dupli_path_transform(), psys_get_particle_on_path(), psys_particle_on_dm(), psys_thread_create_path(), py_bvhtree_ray_cast(), quad_calc_error(), quad_edges_to_normal(), quad_verts_to_barycentric_tri(), RE_bake_normal_world_to_object(), RE_bake_normal_world_to_tangent(), recalc_emitter_field(), recalc_face_normals_find_index(), recalcData_edit_armature(), rotateDifferentialCoordinates(), rotation_between_vecs_to_mat3(), rotation_between_vecs_to_quat(), rule_average_speed(), rule_avoid_collision(), sb_detect_edge_collisionCached(), sb_detect_face_collisionCached(), sb_detect_face_pointCached(), sb_detect_vertex_collisionCached(), sb_spring_force(), SCULPT_raycast_init(), SCULPT_tilt_apply_to_normal(), blender::ed::sculpt_paint::sculpt_update_cache_invariants(), set_axis(), set_plane_exec(), set_profile_params(), setNearestAxis3d(), shape_cut(), shell_v3v3_mid_normalized_to_dist(), blender::bke::shrinkwrap::shrinkwrap_build_boundary_data(), shrinkwrap_calc_normal_projection(), shrinkwrap_get_tarmat(), SIM_hair_volume_vertex_grid_forces(), SIM_mass_spring_force_edge_wind(), similar_face_select_exec(), similar_vert_select_exec(), slide_dist(), smart_uv_project_calculate_project_normals(), snap_to_superellipsoid(), sph_force_cb(), sph_springs_modify(), sphclassical_force_cb(), sphere_do(), splineik_evaluate_bone(), blender::draw::statvis_calc_overhang(), step_cost_3_v3_ex(), stretchto_evaluate(), blender::ed::curves::stroke_elem_project_fallback(), stroke_elem_project_fallback(), surface_determineForceTargetPoints(), tan_calc_quat_v3(), blender::bke::tests::TEST(), transdata_elem_to_sphere(), transform_convert_mesh_islands_calc(), transform_orientations_create_from_axis(), transform_view_vector_calc(), tri_to_quat_ex(), triatomat(), ui_but_paste_normalized_vector(), ui_but_v3_get(), ui_numedit_but_UNITVEC(), blender::ed::sculpt_paint::update_sculpt_normal(), blender::geometry::uv_parametrizer_average(), vec_to_quat(), vectomat(), Vector_reflect(), Vector_rotation_difference(), vert_slide_apply_elem(), vert_slide_snap_apply(), vfont_to_curve(), view3d_interactive_add_begin(), view3d_interactive_add_modal(), view_vector_calc(), viewdolly_exec(), viewdolly_invoke(), viewrotate_apply_snap(), blender::ed::object::voxel_size_edit_invoke(), blender::ed::object::voxel_size_parallel_lines_draw(), walk_ray_cast(), walkApply(), wm_gizmo_set_matrix_rotation_from_yz_axis__internal(), and wm_xr_fly_compute_move().

◆ normalize_v3_db()

MINLINE double normalize_v3_db ( double n[3])

Definition at line 1233 of file math_vector_inline.c.

References normalize_v3_length_db().

Referenced by bm_decim_build_quadrics(), and lineart_load_tri_task().

◆ normalize_v3_length()

◆ normalize_v3_length_db()

MINLINE double normalize_v3_length_db ( double n[3],
double unit_length )

Definition at line 1210 of file math_vector_inline.c.

References mul(), and sqrt().

Referenced by normalize_v3_db().

◆ normalize_v3_v3()

MINLINE float normalize_v3_v3 ( float r[3],
const float a[3] )

Definition at line 1183 of file math_vector_inline.c.

References normalize_v3_v3_length().

Referenced by add_vertex_invoke(), angle_v3v3(), applyTrackballValue_calc_axis_angle(), axis_angle_to_mat3(), axis_angle_to_quat(), BKE_camera_object_dof_distance(), BKE_object_empty_image_data_is_visible_in_view3d(), bm_edgering_pair_interpolate(), BM_face_calc_tangent_edge_pair(), bm_vert_calc_normals_impl(), bm_vert_calc_normals_with_coords(), bm_vert_calc_surface_tangent(), boid_body(), boid_find_ground(), bridge_loop_pair(), blender::ed::sculpt_paint::filter::cache_init(), blender::ed::sculpt_paint::calc_brush_local_mat(), cloth_collision(), cloth_selfcollision(), GeometryExporter::create_normals(), createSpaceNormalTangent(), blender::ed::curves::curve_draw_event_add_first(), curve_draw_event_add_first(), curve_draw_invoke(), blender::ed::curves::curves_draw_invoke(), damptrack_do_transform(), dial_ghostarc_get_angles(), do_kink(), dynamic_paint_prepare_effect_cb(), edbm_dupli_extrude_cursor_invoke(), edbm_extrude_repeat_exec(), expmap_to_quat(), flyApply(), geodesic_distance_propagate_across_triangle(), get_effector_data(), gizmo_arrow_modal(), gizmo_get_idot(), gizmo_mesh_bisect_update_from_op(), gizmo_spin_prop_depth_set(), gpencil_light_pool_populate(), hair_collision(), blender::ed::sculpt_paint::gesture::init_common(), knife_calculate_snap_ref_edges(), knife_snap_angle_relative(), knifetool_recast_cageco(), layerInterp_normal(), locktrack_evaluate(), mat3_to_rot_size(), mat4_to_rot(), mesh_bisect_exec(), mesh_corner_tris_raycast_backface_culling_cb(), meshdeform_ray_tree_intersect(), MOD_lineart_chain_offset_towards_camera(), normalize_m3_m3(), normalize_m3_m3_ex(), normalize_m4_m4(), normalize_m4_m4_ex(), normalize_v3(), blender::ed::object::object_transform_axis_target_modal(), orthogonalize_stable(), plane_to_point_vector_v3_normalized(), psys_get_birth_coords(), rotate_v3_v3v3fl(), rule_fight(), sb_detect_vertex_collisionCached(), SCULPT_cursor_geometry_info_update(), blender::ed::sculpt_paint::sculpt_update_cache_invariants(), set_prop_dist(), SIM_mass_spring_force_spring_goal(), spring_grad_dir(), spring_hairbend_forces(), stretchto_evaluate(), blender::bke::tests::test_vec_roll_to_mat3_normalized(), transform_orientations_create_from_axis(), blender::ed::sculpt_paint::vwpaint::update_cache_invariants(), update_hit(), update_location_for_2d_curve(), vec_roll_to_mat3(), vectomat(), Vector_rotation_difference(), view3d_interactive_add_begin(), viewdolly_exec(), viewroll_exec(), viewroll_invoke(), wm_gizmo_set_matrix_rotation_from_yz_axis__internal(), wm_gizmo_set_matrix_rotation_from_z_axis__internal(), wm_xr_fly_compute_move(), wm_xr_fly_compute_turn(), and wm_xr_grab_compute_bimanual().

◆ normalize_v3_v3_db()

MINLINE double normalize_v3_v3_db ( double r[3],
const double a[3] )

Definition at line 1205 of file math_vector_inline.c.

References normalize_v3_v3_length_db().

◆ normalize_v3_v3_length()

MINLINE float normalize_v3_v3_length ( float r[3],
const float a[3],
float unit_length )
Note
any vectors containing nan will be zeroed out.

Definition at line 1166 of file math_vector_inline.c.

References dot_v3v3(), mul_v3_v3fl(), sqrtf, and zero_v3().

Referenced by axisProjection(), normalize_v3_length(), normalize_v3_v3(), and viewAxisCorrectCenter().

◆ normalize_v3_v3_length_db()

MINLINE double normalize_v3_v3_length_db ( double r[3],
const double a[3],
double unit_length )

Definition at line 1188 of file math_vector_inline.c.

References dot_v3v3_db(), mul_v3_v3db_db(), sqrt(), and zero_v3_db().

Referenced by normalize_v3_v3_db().

◆ normalize_vn()

float normalize_vn ( float * array_tar,
int size )

Definition at line 1027 of file math_vector.c.

References normalize_vn_vn().

Referenced by M_Noise_random_unit_vector(), Vector_normalize(), and Vector_slerp().

◆ normalize_vn_vn()

float normalize_vn_vn ( float * array_tar,
const float * array_src,
int size )

Definition at line 1012 of file math_vector.c.

References copy_vn_fl(), float, len_squared_vn(), mul_vn_vn_fl(), and sqrt().

Referenced by normalize_vn(), and Vector_slerp().

◆ ortho_basis_v3v3_v3()

void ortho_basis_v3v3_v3 ( float r_n1[3],
float r_n2[3],
const float n[3] )

Takes a vector and computes 2 orthogonal directions.

Note
if n is n unit length, computed values will be too.

Definition at line 720 of file math_vector.c.

References BLI_assert, eps, len_squared_v2(), and sqrtf.

Referenced by blender::ed::sculpt_paint::pose::align_pivot_local_space(), alter_co(), axis_dominant_v3_to_m3(), axis_dominant_v3_to_m3_negate(), gizmo_3d_dial_matrixbasis_calc(), mesh_calc_eigen_matrix(), and wm_gizmo_set_matrix_rotation_from_z_axis__internal().

◆ ortho_v2_v2()

void ortho_v2_v2 ( float out[2],
const float v[2] )

Trivial compared to v3, include for consistency.

Definition at line 770 of file math_vector.c.

References BLI_assert, and v.

Referenced by interp_v2_v2v2_slerp_safe(), Vector_orthogonal(), and wm_gesture_draw_line_active_side().

◆ ortho_v3_v3()

◆ print_v2()

void print_v2 ( const char * str,
const float v[2] )

Definition at line 830 of file math_vector.c.

References printf, str, and v.

Referenced by add_vertex_extrude().

◆ print_v3()

void print_v3 ( const char * str,
const float v[3] )

Definition at line 835 of file math_vector.c.

References printf, str, and v.

Referenced by raycast_callback().

◆ print_v4()

void print_v4 ( const char * str,
const float v[4] )

Definition at line 840 of file math_vector.c.

References printf, str, and v.

◆ print_vn()

void print_vn ( const char * str,
const float v[],
int n )

Definition at line 845 of file math_vector.c.

References printf, str, and v.

◆ project_plane_normalized_v2_v2v2()

void project_plane_normalized_v2_v2v2 ( float out[2],
const float p[2],
const float v_plane[2] )

Definition at line 673 of file math_vector.c.

References BLI_ASSERT_UNIT_V2, dot_v2v2(), madd_v2_v2v2fl(), and mul().

◆ project_plane_normalized_v3_v3v3()

◆ project_plane_v2_v2v2()

void project_plane_v2_v2v2 ( float out[2],
const float p[2],
const float v_plane[2] )

Definition at line 658 of file math_vector.c.

References dot_v2v2(), madd_v2_v2v2fl(), and mul().

◆ project_plane_v3_v3v3()

void project_plane_v3_v3v3 ( float out[3],
const float p[3],
const float v_plane[3] )

In this case plane is a 3D vector only (no 4th component).

Projecting will make out a copy of p orthogonal to v_plane.

Note
If p is exactly perpendicular to v_plane, out will just be a copy of p.
This function is a convenience to call:
project_v3_v3v3(out, p, v_plane);
sub_v3_v3v3(out, p, out);
MINLINE void sub_v3_v3v3(float r[3], const float a[3], const float b[3])
void project_v3_v3v3(float out[3], const float p[3], const float v_proj[3])

Definition at line 651 of file math_vector.c.

References dot_v3v3(), madd_v3_v3v3fl(), and mul().

Referenced by BKE_object_empty_image_data_is_visible_in_view3d(), blender::ed::sculpt_paint::brush_delta_update(), blender::ed::sculpt_paint::calc_brush_plane(), do_vpaint_brush_smear(), do_wpaint_brush_smear(), ED_view3d_cursor3d_position_rotation(), gizmo_arrow_modal(), is_quad_convex_v3(), screen_px_line_point_factor_v2_persp(), sculpt_project_v3_normal_align(), transform_orientations_create_from_axis(), and blender::ed::sculpt_paint::update_sculpt_normal().

◆ project_v2_v2v2()

void project_v2_v2v2 ( float out[2],
const float p[2],
const float v_proj[2] )

Project p onto v_proj

Definition at line 602 of file math_vector.c.

References dot_v2v2(), is_zero_v2(), mul(), mul_v2_v2fl(), UNLIKELY, and zero_v2().

Referenced by BKE_mask_point_set_handle(), and initResize().

◆ project_v2_v2v2_normalized()

void project_v2_v2v2_normalized ( float out[2],
const float p[2],
const float v_proj[2] )

Project p onto a unit length v_proj

Definition at line 635 of file math_vector.c.

References BLI_ASSERT_UNIT_V2, dot_v2v2(), mul(), and mul_v2_v2fl().

Referenced by slide_point_modal().

◆ project_v3_plane()

void project_v3_plane ( float out[3],
const float plane_no[3],
const float plane_co[3] )

Project a vector on a plane defined by normal and a plane point p.

Definition at line 681 of file math_vector.c.

References dot_v3v3(), len_squared_v3(), madd_v3_v3fl(), mul(), and sub_v3_v3v3().

Referenced by interp_slerp_co_no_v3(), and blender::bke::mesh_surface_sample::sample_surface_points_spherical().

◆ project_v3_v3v3()

◆ project_v3_v3v3_db()

void project_v3_v3v3_db ( double out[3],
const double p[3],
const double v_proj[3] )

Definition at line 624 of file math_vector.c.

References dot_v3v3_db(), is_zero_v3_db(), mul(), mul_v3_v3db_db(), UNLIKELY, and zero_v3_db().

◆ project_v3_v3v3_normalized()

void project_v3_v3v3_normalized ( float out[3],
const float p[3],
const float v_proj[3] )

◆ range_vn_fl()

void range_vn_fl ( float * array_tar,
int size,
float start,
float step )

Definition at line 1052 of file math_vector.c.

References size().

Referenced by C_Vector_Linspace(), and C_Vector_Range().

◆ range_vn_i()

void range_vn_i ( int * array_tar,
int size,
int start )

◆ range_vn_u()

void range_vn_u ( unsigned int * array_tar,
int size,
unsigned int start )

Definition at line 1042 of file math_vector.c.

References size().

Referenced by BLI_scanfill_calc_ex(), and material_slot_move_exec().

◆ reflect_v3_v3v3()

void reflect_v3_v3v3 ( float out[3],
const float v[3],
const float normal[3] )

Returns a reflection vector from a vector and a normal vector reflect = vec - ((2 * dot(vec, mirror)) * mirror).

v
+  ^
 \ |
  |
   + normal: axis of reflection
  /
 /
+
out: result (negate for a 'bounce').

Definition at line 704 of file math_vector.c.

References BLI_ASSERT_UNIT_V3, dot_v3v3(), madd_v3_v3v3fl(), and v.

Referenced by alter_co(), ElementMirror(), studiolight_lights_eval(), studiolight_radiance_preview(), and Vector_reflect().

◆ reflect_v3_v3v3_db()

void reflect_v3_v3v3_db ( double out[3],
const double v[3],
const double normal[3] )

Definition at line 712 of file math_vector.c.

References BLI_ASSERT_UNIT_V3_DB, dot_v3v3_db(), madd_v3_v3v3db_db(), and v.

◆ rotate_normalized_v3_v3v3fl()

void rotate_normalized_v3_v3v3fl ( float out[3],
const float p[3],
const float axis[3],
float angle )

◆ rotate_v2_v2fl()

◆ rotate_v3_v3v3fl()

◆ round_v2i_v2fl()

MINLINE void round_v2i_v2fl ( int r[2],
const float a[2] )

◆ star_m3_v3()

MINLINE void star_m3_v3 ( float rmat[3][3],
const float a[3] )

Definition at line 968 of file math_vector_inline.c.

◆ sub_v2_v2()

◆ sub_v2_v2_db()

MINLINE void sub_v2_v2_db ( double r[2],
const double a[2] )

Definition at line 453 of file math_vector_inline.c.

◆ sub_v2_v2v2()

MINLINE void sub_v2_v2v2 ( float r[2],
const float a[2],
const float b[2] )

Definition at line 459 of file math_vector_inline.c.

References b.

Referenced by add_vertex_extrude(), add_weighted_edge(), annotation_add_missing_events(), annotation_stroke_convertcoords(), area_tri_signed_v2_alt_2x(), bezier_handle_calc_smooth_fcurve(), bezt_edge_handle_angle(), BKE_fcurve_bezt_subdivide_handles(), BKE_mask_calc_tangent_polyline(), BKE_mask_point_handle(), BKE_mask_point_normal(), BKE_mask_point_parent_matrix_get(), BKE_mask_point_set_handle(), BKE_mask_spline_project_co(), BKE_maskrasterize_handle_init(), BKE_mesh_remap_calc_faces_from_mesh(), BKE_mesh_uv_vert_map_create(), BKE_tracking_marker_clamp_search_position(), BLI_dial_angle(), bm_loop_calc_uv_angle_from_dir(), calchandle_curvemap(), calculate_reprojection_error_at_marker(), blender::compositor::check_corners(), closest_to_line_v2(), blender::draw::compute_normalize_edge_vectors(), computeBindWeights(), cos_v2v2v2(), dist_ensure_v2_v2fl(), dist_squared_to_projected_aabb(), dist_squared_to_projected_aabb_precalc(), distance_squared_to_udim(), do_multires_bake_thread(), do_projectpaint_thread(), do_versions_291_fcurve_handles_limit(), draw_distortion(), draw_marker_areas(), draw_marker_outline(), draw_spline_curve(), dynamic_paint_find_island_border(), ED_mask_find_nearest_diff_point(), ED_uvedit_nearest_uv_multi(), edbm_rip_edge_invoke(), edbm_rip_edge_side_measure(), flushTransTracking(), get_updated_data_for_edge(), getArrowEndPoint(), gizmo2d_xform_draw_prepare(), gizmo_move_modal(), gizmo_ruler_draw(), gpencil_stroke_convertcoords(), handle_set_length(), HC_relaxation_iteration_uv(), init_track_for_stabilization(), InputAngle(), insert_seam_vert_array(), is_poly_convex_v2(), isect_line_line_v2_point(), isect_ray_seg_v2(), isect_seg_seg_v2_point_ex(), isPolyValid(), knife_snap_angle_screen(), laplacian_relaxation_iteration_uv(), len_manhattan_v2v2(), len_squared_v2v2(), line_point_factor_v2_ex(), M_Geometry_intersect_sphere_sphere_2d(), marker_block_handler(), marker_unified_to_search_pixel(), mask_spline_feather_differentiated_points_with_resolution__double(), maskrasterize_spline_differentiate_point_outset(), mesh_bisect_interactive_calc(), blender::bke::mesh_init_origspace(), MOD_lineart_smooth_chains(), move_all_selected_points(), blender::ed::sculpt_paint::expand::move_propagation_origin(), blender::ed::transform::node_snap_grid_apply(), OVERLAY_camera_cache_populate(), blender::geometry::p_chart_lscm_transform_single_pin(), paint_2d_gradient_fill(), paint_2d_stroke(), paint_calculate_rake_rotation(), blender::ed::sculpt_paint::paint_line_strokes_spacing(), blender::ed::sculpt_paint::paint_space_stroke(), blender::ed::sculpt_paint::paint_stroke_jitter_pos(), blender::ed::sculpt_paint::paint_stroke_line_constrain(), blender::ed::sculpt_paint::paint_stroke_modal(), paintcurve_slide_modal(), point_calculate_handle(), project_paint_uvpixel_init(), relaxation_iteration_uv(), resolve_quad_uv_v2_deriv(), rotate_around_center_v2(), rotation_contribution(), search_pixel_to_marker_unified(), setNearestAxis3d(), slide_check_corners(), slide_plane_marker_modal(), slide_point_modal(), slide_spline_curvature_modal(), stencil_control_calculate(), stencil_set_target(), step_cost_3_v2_ex(), stitch_calculate_edge_normal(), test_edges_isect_2d_vert(), transform_input_update(), ui_block_calc_pie_segment(), ui_mouse_motion_towards_check(), uiTemplateMarker(), uv_find_nearest_face_ex(), uv_find_nearest_vert(), blender::geometry::uv_parametrizer_average(), uv_rip_object(), uv_rip_pairs_calc_center_and_direction(), uv_rip_pairs_calc_uv_angle(), uv_rip_single_from_loop(), uv_rotation_in_clip_bounds_test(), uv_sculpt_stroke_apply(), uv_sculpt_stroke_init(), uv_set_connectivity_distance(), uv_shear_in_clip_bounds_test(), uv_snap_selection_exec(), v2_quad_corners_to_mat4(), view_zoom_to_window_xy_camera(), blender::ed::object::voxel_size_edit_invoke(), wm_gesture_draw_line_active_side(), and wm_gesture_straightline_do_angle_snap().

◆ sub_v2_v2v2_db()

◆ sub_v2_v2v2_int()

MINLINE void sub_v2_v2v2_int ( int r[2],
const int a[2],
const int b[2] )

◆ sub_v2db_v2fl_v2fl()

MINLINE void sub_v2db_v2fl_v2fl ( double r[2],
const float a[2],
const float b[2] )

Definition at line 505 of file math_vector_inline.c.

References b, and double().

◆ sub_v3_v3()

MINLINE void sub_v3_v3 ( float r[3],
const float a[3] )

Definition at line 477 of file math_vector_inline.c.

Referenced by _scan_for_ext_spring_forces(), add_weighted_dq_dq_pivot(), alter_co(), apply_spring(), armature_vert_task_with_dvert(), BKE_object_apply_mat4_ex(), BKE_object_minmax(), BM_face_split_edgenet_connect_islands(), BM_loop_calc_face_normal_safe_ex(), BM_loop_calc_face_normal_safe_vcos_ex(), bm_vert_tri_find_unique_edge(), blender::ed::sculpt_paint::smooth::bmesh_four_neighbor_average(), boid_find_ground(), blender::ed::sculpt_paint::brush_delta_update(), calc_bbox(), clip_to_ortho_planes(), cloth_calc_average_acceleration(), cloth_calc_force(), constraint_snap_plane_to_edge(), constraintTransLim(), cuboid_do(), curvemap_make_table(), deformVert(), dial_ghostarc_get_angles(), do_kink(), do_set_scale(), DRW_hair_duplimat_get(), drw_shgroup_bone_envelope_distance(), dynamic_paint_paint_particle_cell_point_cb_ex(), dynamic_paint_prepare_effect_cb(), ED_armature_ebone_from_mat4(), ED_armature_origin_set(), ED_view3d_distance_set(), ED_view3d_win_to_vector(), edbm_dupli_extrude_cursor_invoke(), edge_slide_snap_apply(), ElementMirror(), ElementResize(), ElementRotation_ex(), explodeMesh(), followtrack_distance_from_viewplane_get(), getTransformOrientation_ex(), gizmo_3d_dial_matrixbasis_calc(), gizmo_find_intersected_3d_intern(), hair_create_input_mesh(), idp_snap_calc_incremental(), imm_draw_cube_corners_3d(), knot_remove_error_value(), make_duplis_collection(), make_duplis_geometry_set_impl(), make_duplis_particle_system(), make_unit_cube_map(), make_unit_square_map(), mdisp_in_mdispquad(), blender::bke::shrinkwrap::merge_vert_dir(), mix_normals(), MOD_solidify_nonmanifold_modifyMesh(), modify_mesh(), blender::ed::object::object_origin_set_exec(), ObjectToTransData(), blender::geometry::p_edge_matrix(), particles_fluid_step(), pchan_deform_accumulate(), pivotcon_evaluate(), point_is_visible(), point_normals_apply(), pointdensity_cache_object(), pointdensity_cache_psys(), proj_paint_state_cavity_init(), prop_dist_loc_get(), psys_get_birth_coords(), psys_get_texture(), RE_point_density_minmax(), rotateDifferentialCoordinates(), rotateflagNurb(), rule_average_speed(), rule_flock(), save_hair(), sb_detect_face_pointCached(), scale_point(), screen_px_to_vector_persp(), set_axis(), set_origin_exec(), set_plane_exec(), SIM_hair_volume_vertex_grid_forces(), SIM_mass_spring_force_reference_frame(), SIM_mass_spring_force_spring_angular(), SIM_mass_spring_force_spring_bending_hair(), smooth_iter__length_weight(), smooth_iter__simple(), snap_sel_to_grid_exec(), snap_selected_to_location(), snapsource_confirm(), sphere_do(), spring_angle(), spring_hairbend_estimate_dfdv(), spring_hairbend_estimate_dfdx(), spring_hairbend_forces(), target_project_tri_deviation(), to_sphere_radius_update(), tracking_scale_reconstruction(), transdata_elem_bend(), transdata_elem_push_pull(), transdata_elem_shear(), transdata_elem_to_sphere(), UNUSED_FUNCTION(), vert_slide_snap_apply(), view3d_interactive_add_modal(), view3d_ob_drop_matrix_from_snap(), view3d_zoom_border_exec(), viewAxisCorrectCenter(), viewmove_apply(), wireframe_hair_cache_populate(), wm_xr_draw_matrices_create(), wm_xr_fly_compute_move(), wm_xr_navigation_reset_exec(), wm_xr_navigation_teleport(), wm_xr_session_controller_pose_calc(), and wm_xr_session_state_update().

◆ sub_v3_v3v3()

MINLINE void sub_v3_v3v3 ( float r[3],
const float a[3],
const float b[3] )

Definition at line 484 of file math_vector_inline.c.

References b.

Referenced by _scan_for_ext_spring_forces(), _softbody_calc_forces_slice_in_a_thread(), accumulate_vertex_normals_poly_v3(), accumulate_vertex_normals_tri_v3(), accumulate_vertex_normals_v3(), adj_vmesh(), adjust_miter_coords(), adjust_miter_inner_coords(), alter_co(), angle_on_axis_v3v3v3_v3(), angle_poly_v3(), angle_quad_v3(), angle_signed_on_axis_v3v3v3_v3(), angle_tri_v3(), angle_v3v3v3(), annotation_stroke_convertcoords(), apply_heights_callback(), apply_lengths_iter(), applyarmature_adjust_edit_position(), applyarmature_set_edit_position(), applyFaceNearest(), applyFaceProject(), ApplySnapTranslation(), armature_calc_roll_exec(), armature_click_extrude_exec(), armature_finalize_restpose(), armature_transform_recurse(), axisProjection(), basic_integrate(), Bend(), bevel_list_calc_bisect(), bevel_vert_construct(), bevlist_firstlast_direction_calc_from_bpoint(), bezier_output_handle_inner(), bisect_v3_v3v3v3(), BKE_armature_where_is_bone(), BKE_camera_object_dof_distance(), BKE_curve_bevelList_make(), BKE_curve_decimate_bezt_array(), BKE_effectors_apply(), BKE_gpencil_stroke_2d_flat(), BKE_gpencil_stroke_2d_flat_ref(), BKE_gpencil_stroke_editcurve_generate(), BKE_gpencil_stroke_normal(), BKE_gpencil_stroke_smooth_point(), BKE_nurb_bezt_calc_normal(), BKE_nurb_bezt_calc_plane(), BKE_nurb_bpoint_calc_normal(), BKE_nurb_bpoint_calc_plane(), BKE_object_empty_image_data_is_visible_in_view3d(), BKE_pchan_bbone_spline_compute(), BKE_pchan_bbone_spline_params_get(), BLI_bvhtree_bb_raycast(), BLI_newton3d_solve(), bm_decim_build_quadrics(), BM_edge_calc_face_tangent(), bm_edge_collapse_is_degenerate_flip(), BM_edge_is_convex(), bm_edge_is_delimit(), BM_edge_rotate_check_degenerate(), BM_edge_split(), bm_edge_symmetry_check_cb(), bm_edge_symmetry_map(), BM_edgeloop_calc_normal_aligned(), bm_edgering_pair_interpolate(), bm_edgexedge_isect_cb(), bm_edgexvert_isect_cb(), BM_editselection_normal(), BM_editselection_plane(), bm_face_bisect_verts(), BM_face_calc_tangent_edge(), BM_face_calc_tangent_edge_diagonal(), BM_face_calc_tangent_edge_pair(), BM_face_calc_tangent_vert_diagonal(), BM_loop_calc_face_direction(), BM_loop_calc_face_normal(), BM_loop_calc_face_normal_safe_ex(), BM_loop_calc_face_normal_safe_vcos_ex(), BM_loop_calc_face_tangent(), bm_loop_flip_disp(), BM_loop_is_convex(), bm_loop_normal_accum(), BM_loop_point_side_of_edge_test(), BM_mesh_edgeloops_calc_order(), bm_mesh_loops_calc_normals_for_loop(), bm_to_mesh_shape(), bm_vert_boundary_tangent(), bm_vert_calc_normals_impl(), bm_vert_calc_normals_with_coords(), bm_vert_pair_best_face_get(), bm_vert_pair_share_splittable_face_cb(), bm_vert_pair_to_matrix(), BM_vert_tri_calc_tangent_edge(), BM_vert_tri_calc_tangent_edge_pair(), BM_verts_calc_normal_from_cloud_ex(), BMBVH_EdgeVisible(), blender::ed::sculpt_paint::smooth::bmesh_four_neighbor_average(), bmesh_test_dist_add(), bmo_dissolve_degenerate_exec(), bmo_edgenet_prepare_exec(), bmo_inset_region_exec(), bmo_subdivide_edges_exec(), bmo_triangle_fill_exec(), boid_body(), boid_climb(), boid_find_ground(), boid_goal_signed_dist(), bone_align_to_bone(), bone_connect_to_new_parent(), bone_direction_worldspace_get(), bridge_loop_pair(), brush_add(), blender::ed::sculpt_paint::brush_delta_update(), brush_length(), brush_puff(), brush_smooth_do(), brush_smooth_get(), build_emats_stack(), cache_key_incremental_rotation(), calc_bbox(), calc_deltas(), calc_distanceCurveVerts(), calc_edge_mat(), calc_nor_area_tri(), calc_nurb_minmax(), calc_point_from_barycentric_cage(), calc_shapeKeys(), calc_tangent_spaces(), calchandleNurb_intern(), calculate_autoscale_factor(), camera_frame_fit_calc_from_data(), cast_ray_highpoly(), cb_snap_edge(), check_path_length(), clampto_evaluate(), blender::bke::pbvh::clip_ray_ortho(), clip_segment_v3_plane(), clip_segment_v3_plane_n(), clip_to_ortho_planes(), closest_on_tri_to_point_v3(), closest_to_line_v3(), closest_to_ray_v3(), cloth_calc_force(), cloth_calc_helper_forces(), cloth_collision_response_static(), cloth_continuum_add_hair_segments(), cloth_continuum_step(), cloth_hair_update_bending_rest_targets(), cloth_hair_update_bending_targets(), cloth_selfcollision_response_static(), cloth_solve_collisions(), cloth_spring_angle(), collision_check(), collision_detect(), collision_move_object(), collision_point_distance_with_normal(), collision_point_on_surface(), collision_point_velocity(), collision_response(), collision_sphere_to_edges(), collision_sphere_to_tri(), collision_sphere_to_verts(), compare_len_v3v3(), compute_collision_point_edge_tri(), compute_collision_point_tri_tri(), compute_mdisp_quad(), blender::draw::compute_normalize_edge_vectors(), computeImplictRotations(), computeNormalDisplacement(), connect_frames(), convert_tree(), correct_bone_roll_value(), cos_v3v3v3(), cotangent_tri_weight_v3(), blender::io::usd::create_blend_shapes(), create_frame(), cube_project_exec(), cuboid_do(), blender::ed::curves::curve_draw_event_add_first(), curve_draw_event_add_first(), curvemap_make_table(), cycle_offset_triple(), damptrack_evaluate(), deflect_emitter_iter(), deform_verts(), dist_ensure_v3_v3fl(), dist_signed_squared_to_corner_v3v3v3(), dist_squared_ray_to_aabb_v3(), dist_squared_ray_to_seg_v3(), dist_squared_to_ray_v3_normalized(), dist_to_sphere_shell(), distfactor_to_bone(), distribute_grid(), do_child_modifiers(), do_kink(), do_kink_spiral(), do_path_effectors(), do_projectpaint_soften(), do_projectpaint_soften_f(), do_twist(), do_vpaint_brush_smear(), do_wpaint_brush_smear(), blender::io::alembic::ABCPointsWriter::do_write(), dot_v3v3v3(), drawLine(), drawVertSlide(), drw_call_calc_orco(), DRW_pass_sort_shgroup_z(), dynamic_paint_brush_velocity_compute_cb(), dynamic_paint_generate_bake_data_cb(), dynamic_paint_paint_mesh_cell_point_cb_ex(), dynamic_paint_paint_single_point_cb_ex(), dynamic_paint_prepare_adjacency_cb(), dynamicPaint_brushObjectCalculateVelocity(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_parallel_lines_draw(), ebone_spline_preview(), ED_armature_ebone_roll_to_vector(), ED_armature_ebone_to_mat3(), ed_dissolve_bez_segment(), ed_editcurve_addvert(), ED_transverts_update_obedit(), ED_view3d_depth_read_cached_normal(), ED_view3d_distance_set_from_location(), ED_view3d_global_to_vector(), ED_view3d_to_m4(), edbm_blend_from_shape_exec(), edbm_face_split_by_edges_exec(), edbm_screw_exec(), edge_edge_angle_less_than_180(), edge_norm(), edge_pos_direction_worldspace_get(), edge_slide_snap_apply(), edge_slide_transform_matrix_fn(), edges_angle_kind(), ElementMirror(), ElementResize(), ElementRotation_ex(), evaluate_cubic_bezier(), execute_posetree(), execute_scene(), extrude_points_from_selected_vertices(), blender::bke::mesh::face_angles_calc(), fix_connected_bone(), followtrack_project_to_depth_object_if_needed(), generate_vert_coordinates(), geodesic_distance_propagate_across_triangle(), get_effector_data(), getTransformOrientation_ex(), gizmo_arrow_modal(), gizmo_mesh_spin_init_refresh(), gizmo_mesh_spin_redo_setup(), gpencil_depth_plane(), gpencil_object_cache_add(), gpencil_stroke_convertcoords(), gpencil_stroke_editcurve_generate_edgecases(), grid_tangent(), heat_ray_source_visible(), heat_source_distance(), imm_draw_cube_corners_3d(), imm_draw_cylinder_fill_normal_3d(), initBend(), integrate_particle(), interp_slerp_co_no_v3(), interp_weights_quad_v3(), intersect_line_tri(), is_edge_convex_v3(), is_outside_edge(), is_quad_convex_v3(), is_quad_flip_v3(), is_quad_flip_v3_first_third_fast(), isect_axial_line_segment_tri_v3(), isect_line_line_epsilon_v3(), isect_line_line_strict_v3(), isect_line_plane_v3(), isect_line_segment_tri_epsilon_v3(), isect_line_segment_tri_v3(), isect_ray_line_v3(), isect_ray_plane_v3_factor(), isect_ray_ray_epsilon_v3(), isect_ray_tri_epsilon_v3(), isect_ray_tri_v3(), isect_seg_seg_v3(), isect_sweeping_sphere_tri_v3(), iterate_lengths_iter(), kelvinlet_scale(), kelvinlet_twist(), knife_calculate_snap_ref_edges(), knife_find_line_hits(), knife_ray_intersect_face(), knife_snap_angle_relative(), knifetool_draw_angle(), knifetool_raycast_planes(), knifetool_recast_cageco(), layerCopyValue_normal(), len_manhattan_v3v3(), len_squared_v3v3(), len_squared_v3v3_with_normal_bias(), len_v3v3(), line_plane_factor_v3(), line_point_factor_v3_ex(), locktrack_evaluate(), M_Geometry_intersect_ray_tri(), make_bevel_list_segment_3D(), make_unit_square_map(), mask_calc_point_handle(), mdisp_axis_from_quad(), blender::bke::mesh::mesh_calc_face_volume_centroid_with_reference_center(), mesh_edges_nearest_point(), blender::geometry::mesh_merge_by_distance_connected(), mesh_remove_doubles_on_axis(), meshdeform_inside_cage(), meshdeform_ray_tree_intersect(), meshdeformModifier_do(), MOD_lineart_chain_offset_towards_camera(), MOD_solidify_extrude_modifyMesh(), MOD_solidify_nonmanifold_modifyMesh(), modify_mesh(), move_bezt_handle_or_vertex_by_displacement(), move_bezt_to_location(), move_profile_plane(), move_segment(), move_weld_profile_planes(), mul_v2_m3v3_center(), multires_disp_run_cb(), blender::ed::object::new_primitive_matrix(), next_edgehalf_bev(), normalEditModifier_do_directional(), normalize_v2_m3_v3v3(), nr_distance_to_edge(), nr_signed_distance_to_plane(), object_grid_element_to_tangent_displacement(), blender::ed::object::object_hook_recenter_exec(), blender::ed::object::object_orient_to_location(), blender::ed::object::object_origin_set_exec(), offset_in_plane(), offset_meet(), offset_meet_edge(), offset_on_edge_between(), blender::geometry::p_chart_pin_positions(), paint_2d_lift_soften(), blender::ed::sculpt_paint::paint_line_strokes_spacing(), blender::ed::sculpt_paint::paint_space_stroke(), blender::ed::object::parent_set(), blender::draw::particle_batch_cache_fill_segments(), particle_system_minmax(), particles_fluid_step(), pipe_test(), pivotcon_evaluate(), point_between_edges(), point_in_slice(), point_in_slice_as(), point_in_slice_seg(), point_normals_apply(), precalc_guides(), prepare_for_decimate(), proj_paint_state_cavity_init(), proj_paint_state_vert_flags_init(), project_v3_plane(), psys_apply_child_modifiers(), psys_cache_edit_paths_iter(), psys_cache_paths(), psys_get_birth_coords(), psys_get_dupli_path_transform(), psys_get_particle_on_path(), psys_interpolate_face(), psys_interpolate_particle(), psys_thread_create_path(), ptcache_particle_interpolate(), ptcache_particle_read(), quad_calc_error(), quad_edges_to_normal(), ray_point_factor_v3_ex(), RE_point_density_sample(), recalc_face_normals_find_index(), recalcData_edit_armature(), remap_hair_emitter(), ResizeBetween(), resolve_tri_uv_v3(), rotateDifferentialCoordinates(), RotationBetween(), rule_avoid_collision(), rule_fight(), rule_follow_leader(), rule_goal_avoid(), rule_separate(), sb_detect_edge_collisionCached(), sb_detect_face_collisionCached(), sb_detect_face_pointCached(), sb_detect_vertex_collisionCached(), sb_spring_force(), scale_point_factor(), scale_tri(), screen_px_line_point_factor_v2_persp(), sculpt_apply_texture(), blender::ed::sculpt_paint::geodesic::sculpt_geodesic_mesh_test_dist_add(), sculpt_kelvinet_integrate(), SCULPT_raycast_init(), set_handle_type_exec(), set_profile_params(), setNearestAxis3d(), shape_cut(), blender::bke::shrinkwrap::shrinkwrap_build_boundary_data(), shrinkwrap_snap_with_side(), SIM_cloth_solve(), SIM_hair_volume_create_vertex_grid(), SIM_hair_volume_grid_velocity(), SIM_hair_volume_solve_divergence(), SIM_mass_spring_force_edge_wind(), SIM_mass_spring_force_reference_frame(), SIM_mass_spring_force_spring_bending_hair(), SIM_mass_spring_force_spring_goal(), slide_dist(), smooth_iter__length_weight(), smooth_iter__simple(), SnapData::snap_edge(), SnapData::snap_edge_points_impl(), snap_selected_to_location(), snap_to_pipe_profile(), sph_force_cb(), sph_integrate(), sph_particle_courant(), sph_springs_modify(), sphclassical_density_accum_cb(), sphclassical_force_cb(), sphclassical_neighbor_accum_cb(), splineik_evaluate_bone(), spring_grad_dir(), spring_hairbend_forces(), spring_length(), square_out_adj_vmesh(), state_step__face_edges(), state_step__face_verts(), step_cost_3_v3_ex(), stretchto_evaluate(), sub_fmatrix_fmatrix(), sub_lfvector_lfvector(), surfaceGenerateGrid(), tan_calc_quat_v3(), tangent_from_uv_v3(), target_project_edge(), target_project_solve_point_tri(), target_project_tri_correct(), trackto_evaluate(), transdata_elem_push_pull(), transdata_elem_shear(), transdata_elem_translate(), blender::ed::sculpt_paint::transform_matrices_init(), transform_view_vector_calc(), tri_to_quat_ex(), triatomat(), twist_get_axis(), update_courant_num(), blender::ed::sculpt_paint::undo::update_shapekeys(), update_velocities(), uv_cylinder_project(), uv_sphere_project(), v3_dist_from_plane(), v3d_cursor_snap_update(), vcloud_estimate_transform_v3(), vectomat(), vert_slide_apply_elem(), vert_slide_snap_apply(), vert_slide_transform_matrix_fn(), view3d_from_minmax(), view3d_interactive_add_begin(), view3d_interactive_add_modal(), view3d_localview_init(), view3d_orbit_apply_dyn_ofs(), view3d_zoom_border_exec(), view_vector_calc(), viewAxisCorrectCenter(), viewrotate_apply(), volume_tetrahedron_signed_v3(), volume_tetrahedron_v3(), blender::ed::object::voxel_size_edit_invoke(), blender::ed::object::voxel_size_parallel_lines_draw(), walkApply(), walkEvent(), WIDGETGROUP_xform_cage_refresh(), and wm_xr_grab_compute_bimanual().

◆ sub_v3_v3v3_db()

◆ sub_v3_v3v3_int()

MINLINE void sub_v3_v3v3_int ( int r[3],
const int a[3],
const int b[3] )

Definition at line 491 of file math_vector_inline.c.

References b.

◆ sub_v3db_v3fl_v3fl()

MINLINE void sub_v3db_v3fl_v3fl ( double r[3],
const float a[3],
const float b[3] )

Definition at line 511 of file math_vector_inline.c.

References b, and double().

Referenced by collision_compute_barycentric(), and isect_tri_tri_v3_ex().

◆ sub_v4_v4()

MINLINE void sub_v4_v4 ( float r[4],
const float a[4] )

◆ sub_v4_v4v4()

MINLINE void sub_v4_v4v4 ( float r[4],
const float a[4],
const float b[4] )

Definition at line 526 of file math_vector_inline.c.

References b.

Referenced by len_squared_v4v4(), len_v4v4(), and multires_modifier_update_mdisps().

◆ sub_vn_vn()

void sub_vn_vn ( float * array_tar,
const float * array_src,
int size )

Definition at line 1172 of file math_vector.c.

References size().

Referenced by Color_isub(), and Vector_isub().

◆ sub_vn_vnvn()

void sub_vn_vnvn ( float * array_tar,
const float * array_src_a,
const float * array_src_b,
int size )

Definition at line 1182 of file math_vector.c.

References size().

Referenced by Color_sub(), Matrix_sub(), v3d_editvertex_buts(), and Vector_sub().

◆ swap_v2_v2()

MINLINE void swap_v2_v2 ( float a[2],
float b[2] )

Definition at line 299 of file math_vector_inline.c.

References b, and SWAP.

Referenced by bm_loop_collapse_is_degenerate(), and sort_time_fcurve().

◆ swap_v3_v3()

◆ swap_v4_v4()

MINLINE void swap_v4_v4 ( float a[4],
float b[4] )

◆ zero_v2()

MINLINE void zero_v2 ( float r[2])

Definition at line 16 of file math_vector_inline.c.

Referenced by average_marker_positions(), average_track_contributions(), BKE_curvemapping_premultiply(), BKE_image_find_nearest_tile_with_offset(), BKE_image_get_tile_from_pos(), BKE_image_get_tile_uv(), BKE_mask_calc_tangent_polyline(), BKE_movieclip_get_stable_ibuf(), BKE_tracking_settings_init(), BKE_tracking_stabilization_data_get(), BKE_tracking_stabilize_frame(), BLI_scanfill_vert_add(), BM_face_uv_calc_center_median(), BM_face_uv_calc_center_median_weighted(), bm_loop_collapse_is_degenerate(), bm_vert_pair_to_matrix(), clip_draw_main(), computeBindWeights(), curvemap_make_table(), ED_mask_cursor_location_get(), ED_mask_mouse_pos(), ED_mask_point_pos(), ED_mask_point_pos__reverse(), ED_uvedit_median_multi(), ED_view3d_cursor3d_update(), ED_view3d_project_float_v2_m4(), edbm_rip_edge_invoke(), edge_slide_data_init_mval(), gizmo2d_calc_bounds(), gizmo_cage2d_invoke(), gizmo_cage2d_modal(), gpencil_vfx_rim(), gpencil_vfx_shadow(), init_all_tracks(), knife_pos_data_clear(), layerInterp_mloop_origspace(), mask_parent_set_exec(), normalize_v2_v2_length(), object_init(), blender::ed::object::object_warp_transverts(), paint_2d_new_stroke(), blender::compositor::DisplaceOperation::pixel_transform(), blender::compositor::MapUVOperation::pixel_transform(), project_v2_v2v2(), resolve_quad_uv_v2_deriv(), resolve_tri_uv_v2(), resolve_tri_uv_v3(), blender::ed::sculpt_paint::sculpt_update_cache_invariants(), seq_get_strip_pivot_median(), setup_pivot(), smart_project_exec(), stabilization_determine_offset_for_frame(), tracking_average_tracks(), blender::ed::sculpt_paint::vwpaint::update_cache_invariants(), uv_rip_pairs_calc_center_and_direction(), uvedit_center(), and view3d_center_lock_exec().

◆ zero_v3()

MINLINE void zero_v3 ( float r[3])

Definition at line 22 of file math_vector_inline.c.

Referenced by blender::compositor::NodeOperationBuilder::add_input_constant_value(), annotation_stroke_convertcoords(), blender::ed::object::apply_objects_internal(), apply_weights_vertex_normal(), applyarmature_transfer_properties(), ApplySnapTranslation(), armature_vert_task_with_dvert(), axis_angle_to_quat_single(), blender::draw::axis_from_enum_v3(), basic_integrate(), basic_rotate(), bevel_vert_two_edges(), bindVert(), BKE_constraint_mat_convertspace(), BKE_curve_center_median(), BKE_displist_minmax(), BKE_gpencil_layer_addnew(), BKE_gpencil_stroke_normal(), BKE_lattice_center_median(), BKE_mball_center_median(), BKE_mesh_calc_volume(), BKE_mesh_center_median(), BKE_mesh_center_median_from_faces(), BKE_mesh_center_of_surface(), BKE_mesh_center_of_volume(), BKE_mesh_remesh_voxel_fix_poles(), BKE_mesh_validate_arrays(), BKE_nurb_bpoint_calc_normal(), BKE_nurb_makeCurve(), BKE_nurb_makeFaces(), BKE_paint_init(), BKE_pchan_bbone_spline_compute(), BKE_pchan_bbone_spline_params_get(), BKE_pose_channel_ensure(), BKE_pose_rest(), BKE_rigidbody_calc_center_of_mass(), BKE_sim_debug_data_add_element(), BLI_bvhtree_get_bounding_box(), BLI_covariance_m3_v3n(), BLI_scanfill_calc_ex(), blo_do_versions_290(), blo_update_defaults_screen(), BM_edgeloop_calc_center(), BM_edgeloop_calc_normal(), BM_edgeloop_calc_normal_aligned(), bm_edgering_pair_interpolate(), BM_face_calc_area(), BM_face_calc_area_with_mat3(), BM_face_calc_center_median(), BM_face_calc_center_median_weighted(), BM_face_calc_normal_subset(), bm_face_calc_poly_center_median_vertex_cos(), bm_face_calc_poly_normal(), bm_face_calc_poly_normal_vertex_cos(), BM_face_calc_tangent_edge_diagonal(), BM_face_calc_tangent_vert_diagonal(), BM_face_create(), bm_grid_fill_array(), BM_mesh_edgeloops_calc_order(), bm_mesh_loops_assign_normal_data(), BM_vert_calc_normal(), BM_vert_calc_normal_ex(), bm_vert_calc_normals_impl(), bm_vert_calc_normals_with_coords(), BM_vert_create(), BM_vert_normal_update_all(), blender::ed::sculpt_paint::smooth::bmesh_four_neighbor_average(), bmesh_selected_verts_center_calc(), bmo_collapse_exec(), bmo_create_circle_exec(), bmo_extrude_face_region_exec(), bmo_inset_region_exec(), bmo_smooth_vert_exec(), boid_brain(), blender::ed::sculpt_paint::brush_delta_update(), brush_puff(), button2d_draw_intern(), C_BVHTree_FromPolygons(), C_Matrix_LocRotScale(), calc_bbox(), blender::ed::sculpt_paint::calc_brush_plane(), calc_solidify_normals(), camera_frame_fit_calc_from_data(), camera_stereoscopy_extra(), check_item_face_strength(), cloth_bvh_objcollisions_resolve(), cloth_bvh_selfcollisions_resolve(), cloth_collision_response_static(), cloth_continuum_add_hair_segments(), cloth_continuum_step(), cloth_solve_collisions(), collision_interpolateOnTriangle(), collision_move_object(), Color_CreatePyObject(), colorband_init_from_table_rgba_simple(), colorfn(), convertViewVec(), blender::io::alembic::copy_m44_axis_swap(), createTransGPencil_center_get(), cross_poly_v3(), cubic_subdiv(), deform_verts(), deformVert(), dist_squared_to_projected_aabb_precalc(), distribute_grid(), do_kink_spiral(), do_physical_effector(), do_projectpaint_thread(), do_texture_effector(), draw_bone_degrees_of_freedom(), draw_circle_in_quad(), blender::ed::sculpt_paint::dyntopo::dyntopo_detail_size_edit_invoke(), ebone_spline_preview(), ED_armature_ebone_add_primitive(), ED_armature_origin_set(), ed_editcurve_addvert(), ED_transform_calc_gizmo_stats(), ED_view3d_autodist_last_get(), ED_view3d_clipping_clamp_minmax(), ED_view3d_project_float_v3_m4(), edbm_average_normals_exec(), edbm_dupli_extrude_cursor_invoke(), edbm_normals_tools_exec(), edbm_point_normals_modal(), edge_wind_vertex(), Euler_CreatePyObject(), Euler_zero(), eulO_to_gimbal_axis(), blender::bke::subdiv::eval_displacement(), eyedropper_color_sample_fl(), eyedropper_cryptomatte_sample_renderlayer_fl(), eyedropper_modal(), blender::bke::mesh::face_area_centroid_calc(), flyApply(), followtrack_evaluate_using_2d_position(), FRS_do_stroke_rendering(), get_effector_data(), get_selected_center(), getTransformOrientation_ex(), give_parvert(), gizmo_3d_draw_invoke(), gizmo_cage2d_modal(), gizmo_cage3d_invoke(), gizmo_move_modal(), gizmo_move_property_update(), gpencil_stroke_convertcoords(), GPU_matrix_unproject_3fv(), initFlyInfo(), initNumInput(), initResize(), initTransInfo(), initWalkInfo(), integrate_particle(), knife_pos_data_clear(), blender::bke::greasepencil::Layer::Layer(), layerInterp_mvert_skin(), layerInterp_shapekey(), make_duplis_font(), make_duplis_particle_system(), mesh_calc_center_centroid_ex(), mesh_calc_face_volume_centroid(), blender::bke::mesh::mesh_calc_face_volume_centroid_with_reference_center(), blender::bke::mesh::mesh_calc_tessellation_for_face_impl(), mesh_faces_to_scratch(), mesh_tessface_calc(), meshdeform_vert_task(), meshdeformModifier_do(), mid_v3_v3_array(), MOD_lineart_chain_feature_lines(), MOD_solidify_nonmanifold_modifyMesh(), modify_mesh(), move3d_draw_intern(), multitex_nodes_intern(), normalize_v3_v3_length(), normals_merge(), normals_split(), ntreeCompositCryptomatteSyncFromAdd(), ntreeCompositCryptomatteSyncFromRemove(), blender::ed::object::object_clear_rot(), blender::ed::object::object_origin_set_exec(), blender::ed::object::object_xform_array_m4(), offset_in_plane(), offset_meet(), OVERLAY_lightprobe_cache_populate(), blender::geometry::p_add_ngon(), blender::ed::sculpt_paint::paint_brush_update(), blender::ed::sculpt_paint::paint_line_strokes_spacing(), blender::ed::sculpt_paint::paint_space_stroke(), palette_color_add_exec(), particles_fluid_step(), pchan_clear_rot(), pointdensity(), pointdensity_cache_psys(), poly_avg(), project_v3_v3v3(), projection_matrix_calc(), psys_get_birth_coords(), psys_thread_create_path(), ptcache_cloth_extra_read(), quat_split_swing_and_twist(), RE_point_density_minmax(), blender::bke::subdiv::read_displacement_grid(), recalc_face_normals_find_index(), blender::ed::object::remesh_symmetry_bisect(), reset_tw_center(), blender::ed::object::return_editcurve_indexar(), blender::ed::object::return_editlattice_indexar(), blender::ed::object::return_editmesh_indexar(), rotate_eulO(), rotateDifferentialCoordinates(), blender::ed::object::rotation_from_view(), rotlike_evaluate(), save_hair(), scan_for_ext_face_forces(), scene_blend_read_data(), SCULPT_cache_calc_brushdata_symm(), SCULPT_cursor_geometry_info_update(), seq_image_transform_quad_get_ex(), set_origin_exec(), blender::ed::sculpt_paint::set_pivot_position_exec(), set_profile_params(), shrinkwrap_get_tarmat(), SIM_cloth_solve(), SIM_hair_volume_grid_clear(), SIM_hair_volume_solve_divergence(), SIM_hair_volume_vertex_grid_forces(), SIM_mass_spring_clear_constraints(), SIM_mass_spring_force_face_extern(), SIM_mass_spring_force_pressure(), SIM_mass_spring_force_spring_bending_hair(), snap_curs_to_sel_ex(), snap_target_view3d_fn(), softbody_reset(), sph_particle_courant(), splineik_evaluate_bone(), splineik_evaluate_init(), spring_hairbend_forces(), spring_length(), blender::ed::curves::stroke_elem_project(), stroke_elem_project(), blender::ed::curves::stroke_elem_project_fallback(), stroke_elem_project_fallback(), subsurf_calculate_limit_positions(), tangent_from_uv_v3(), tranform_snap_target_median_calc(), transform_convert_mesh_islands_calc(), ui_apply_but(), ui_but_v3_get(), updateDuplicateActionConstraintSettings(), uv_map_rotation_matrix_ex(), uv_map_transform_calc_center_median(), uv_map_transform_center(), uvedit_unwrap_cube_project(), v3d_cursor_snap_update(), vcloud_estimate_transform_v3(), vertid(), view3d_all_exec(), view3d_orbit_calc_center(), vmesh_center(), walkApply(), WM_window_pixels_read_sample_from_offscreen(), wm_xr_grab_compute(), wm_xr_navigation_reset_exec(), wm_xr_session_controller_data_update(), WM_xr_session_state_controller_aim_location_get(), WM_xr_session_state_controller_grip_location_get(), WM_xr_session_state_nav_location_get(), WM_xr_session_state_navigation_reset(), wm_xr_session_state_update(), and WM_xr_session_state_viewer_pose_location_get().

◆ zero_v3_db()

MINLINE void zero_v3_db ( double r[3])

Definition at line 213 of file math_vector_inline.c.

Referenced by normalize_v3_v3_length_db(), and project_v3_v3v3_db().

◆ zero_v3_int()

MINLINE void zero_v3_int ( int r[3])

Definition at line 183 of file math_vector_inline.c.

Referenced by cloth_continuum_step().

◆ zero_v4()

MINLINE void zero_v4 ( float r[4])

Definition at line 29 of file math_vector_inline.c.

Referenced by blender::compositor::NodeOperationBuilder::add_input_constant_value(), blender::ed::object::bake_targets_output_vertex_colors(), BKE_brush_sample_masktex(), BKE_brush_sample_tex_3d(), BKE_colorband_element_add(), BKE_driver_target_matrix_to_rot_channels(), BLI_ewa_filter(), blender::compositor::blur_pixel(), boxsampleclip(), distribute_from_verts_exec(), do_projectpaint_soften(), do_projectpaint_soften_f(), DRW_globals_update(), ED_gpencil_tpoint_to_point(), ED_image_draw_info(), blender::ui::greasepencil::eyedropper_add_material(), gizmo_axis_draw(), gizmo_mesh_spin_redo_setup(), image_sample(), image_sample_rect_color_float(), image_sample_rect_color_ubyte(), interp_weights_quad_v3(), nlaevalchan_get_default_values(), node_gpu_stack_from_data(), paint_2d_lift_soften(), paint_and_tex_color_alpha_intern(), project_paint_uvpixel_init(), svd_m4(), ui_but_v4_get(), ui_colorpicker_hex_rna_cb(), ui_colorpicker_hsv_update_cb(), ui_colorpicker_rgba_update_cb(), blender::compositor::ConvolutionFilterOperation::update_memory_buffer_partial(), blender::compositor::CropImageOperation::update_memory_buffer_partial(), blender::compositor::CropOperation::update_memory_buffer_partial(), blender::compositor::CryptomatteOperation::update_memory_buffer_partial(), blender::compositor::DespeckleOperation::update_memory_buffer_partial(), blender::compositor::MapUVOperation::update_memory_buffer_partial(), blender::compositor::PlaneDistortWarpImageOperation::update_memory_buffer_partial(), and blender::compositor::ScreenLensDistortionOperation::update_memory_buffer_partial().