|
Blender V5.3
|
#include "BLI_math_matrix_c.hh"#include "BLI_math_rotation_c.hh"#include "BLI_math_solvers.hh"#include "BLI_math_vector_c.hh"#include "BLI_simd.hh"#include "eigen_capi.h"#include <algorithm>#include <cstring>#include "BLI_strict_flags.hh"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Functions | |
Init | |
| void | blender::zero_m3 (float m[3][3]) |
| void | blender::zero_m4 (float m[4][4]) |
| void | blender::unit_m2 (float m[2][2]) |
| void | blender::unit_m3 (float m[3][3]) |
| void | blender::unit_m4 (float m[4][4]) |
| void | blender::unit_m4_db (double m[4][4]) |
| void | blender::copy_m2_m2 (float m1[2][2], const float m2[2][2]) |
| void | blender::copy_m3_m3 (float m1[3][3], const float m2[3][3]) |
| void | blender::copy_m4_m4 (float m1[4][4], const float m2[4][4]) |
| void | blender::copy_m4_m4_db (double m1[4][4], const double m2[4][4]) |
| void | blender::copy_m3_m4 (float m1[3][3], const float m2[4][4]) |
| void | blender::copy_m4_m3 (float m1[4][4], const float m2[3][3]) |
| void | blender::copy_m3d_m3 (double m1[3][3], const float m2[3][3]) |
| void | blender::copy_m4d_m4 (double m1[4][4], const float m2[4][4]) |
| void | blender::copy_m3_m3d (float m1[3][3], const double m2[3][3]) |
| void | blender::swap_m4m4 (float m1[4][4], float m2[4][4]) |
| void | blender::shuffle_m4 (float R[4][4], const int index[4]) |
Arithmetic | |
| void | blender::mul_m4_m4m4 (float R[4][4], const float A[4][4], const float B[4][4]) |
| void | blender::mul_m4db_m4db_m4fl (double R[4][4], const double A[4][4], const float B[4][4]) |
| void | blender::mul_m4_m4_pre (float R[4][4], const float A[4][4]) |
| void | blender::mul_m4_m4_post (float R[4][4], const float B[4][4]) |
| void | blender::mul_m3_m3_pre (float R[3][3], const float A[3][3]) |
| void | blender::mul_m3_m3_post (float R[3][3], const float B[3][3]) |
| void | blender::mul_m3_m3m3 (float R[3][3], const float A[3][3], const float B[3][3]) |
| void | blender::mul_m4_m4m3 (float R[4][4], const float A[4][4], const float B[3][3]) |
| void | blender::mul_m3_m3m4 (float R[3][3], const float A[3][3], const float B[4][4]) |
| void | blender::mul_m3_m4m3 (float R[3][3], const float A[4][4], const float B[3][3]) |
| void | blender::mul_m4_m3m4 (float R[4][4], const float A[3][3], const float B[4][4]) |
| void | blender::mul_m3_m4m4 (float R[3][3], const float A[4][4], const float B[4][4]) |
| void | blender::_va_mul_m3_series_3 (float r[3][3], const float m1[3][3], const float m2[3][3]) ATTR_NONNULL() |
| void | blender::_va_mul_m3_series_4 (float r[3][3], const float m1[3][3], const float m2[3][3], const float m3[3][3]) ATTR_NONNULL() |
| void | blender::_va_mul_m3_series_5 (float r[3][3], const float m1[3][3], const float m2[3][3], const float m3[3][3], const float m4[3][3]) ATTR_NONNULL() |
| void | blender::_va_mul_m3_series_6 (float r[3][3], const float m1[3][3], const float m2[3][3], const float m3[3][3], const float m4[3][3], const float m5[3][3]) ATTR_NONNULL() |
| void | blender::_va_mul_m3_series_7 (float r[3][3], const float m1[3][3], const float m2[3][3], const float m3[3][3], const float m4[3][3], const float m5[3][3], const float m6[3][3]) ATTR_NONNULL() |
| void | blender::_va_mul_m3_series_8 (float r[3][3], const float m1[3][3], const float m2[3][3], const float m3[3][3], const float m4[3][3], const float m5[3][3], const float m6[3][3], const float m7[3][3]) ATTR_NONNULL() |
| void | blender::_va_mul_m3_series_9 (float r[3][3], const float m1[3][3], const float m2[3][3], const float m3[3][3], const float m4[3][3], const float m5[3][3], const float m6[3][3], const float m7[3][3], const float m8[3][3]) ATTR_NONNULL() |
| void | blender::_va_mul_m4_series_3 (float r[4][4], const float m1[4][4], const float m2[4][4]) ATTR_NONNULL() |
| void | blender::_va_mul_m4_series_4 (float r[4][4], const float m1[4][4], const float m2[4][4], const float m3[4][4]) ATTR_NONNULL() |
| void | blender::_va_mul_m4_series_5 (float r[4][4], const float m1[4][4], const float m2[4][4], const float m3[4][4], const float m4[4][4]) ATTR_NONNULL() |
| void | blender::_va_mul_m4_series_6 (float r[4][4], const float m1[4][4], const float m2[4][4], const float m3[4][4], const float m4[4][4], const float m5[4][4]) ATTR_NONNULL() |
| void | blender::_va_mul_m4_series_7 (float r[4][4], const float m1[4][4], const float m2[4][4], const float m3[4][4], const float m4[4][4], const float m5[4][4], const float m6[4][4]) ATTR_NONNULL() |
| void | blender::_va_mul_m4_series_8 (float r[4][4], const float m1[4][4], const float m2[4][4], const float m3[4][4], const float m4[4][4], const float m5[4][4], const float m6[4][4], const float m7[4][4]) ATTR_NONNULL() |
| void | blender::_va_mul_m4_series_9 (float r[4][4], const float m1[4][4], const float m2[4][4], const float m3[4][4], const float m4[4][4], const float m5[4][4], const float m6[4][4], const float m7[4][4], const float m8[4][4]) ATTR_NONNULL() |
| void | blender::mul_v2_m3v2 (float r[2], const float m[3][3], const float v[2]) |
| void | blender::mul_m3_v2 (const float m[3][3], float r[2]) |
| void | blender::mul_m4_v3 (const float M[4][4], float r[3]) |
| void | blender::mul_v3_m4v3 (float r[3], const float mat[4][4], const float vec[3]) |
| void | blender::mul_v3_m4v3_db (double r[3], const double mat[4][4], const double vec[3]) |
| void | blender::mul_v4_m4v3_db (double r[4], const double mat[4][4], const double vec[3]) |
| void | blender::mul_v2_m4v3 (float r[2], const float mat[4][4], const float vec[3]) |
| void | blender::mul_v2_m2v2 (float r[2], const float mat[2][2], const float vec[2]) |
| void | blender::mul_m2_v2 (const float mat[2][2], float vec[2]) |
| void | blender::mul_mat3_m4_v3 (const float mat[4][4], float r[3]) |
| void | blender::mul_v3_mat3_m4v3 (float r[3], const float mat[4][4], const float vec[3]) |
| void | blender::mul_v3_mat3_m4v3_db (double r[3], const double mat[4][4], const double vec[3]) |
| void | blender::mul_project_m4_v3 (const float mat[4][4], float vec[3]) |
| void | blender::mul_v3_project_m4_v3 (float r[3], const float mat[4][4], const float vec[3]) |
| void | blender::mul_v2_project_m4_v3 (float r[2], const float mat[4][4], const float vec[3]) |
| void | blender::mul_v4_m4v4 (float r[4], const float mat[4][4], const float v[4]) |
| void | blender::mul_m4_v4 (const float mat[4][4], float r[4]) |
| void | blender::mul_v4_m4v3 (float r[4], const float M[4][4], const float v[3]) |
| void | blender::mul_v3_m3v3 (float r[3], const float M[3][3], const float a[3]) |
| void | blender::mul_v3_m3v3_db (double r[3], const double M[3][3], const double a[3]) |
| void | blender::mul_v2_m3v3 (float r[2], const float M[3][3], const float a[3]) |
| void | blender::mul_m3_v3 (const float M[3][3], float r[3]) |
| void | blender::mul_m3_v3_db (const double M[3][3], double r[3]) |
| void | blender::mul_transposed_m3_v3 (const float M[3][3], float r[3]) |
| void | blender::mul_transposed_mat3_m4_v3 (const float M[4][4], float r[3]) |
| void | blender::mul_m3_fl (float R[3][3], float f) |
| void | blender::mul_m4_fl (float R[4][4], float f) |
| void | blender::mul_mat3_m4_fl (float R[4][4], float f) |
| void | blender::negate_m3 (float R[3][3]) |
| void | blender::negate_mat3_m4 (float R[4][4]) |
| void | blender::negate_m4 (float R[4][4]) |
| void | blender::add_m3_m3m3 (float R[3][3], const float A[3][3], const float B[3][3]) |
| void | blender::add_m4_m4m4 (float R[4][4], const float A[4][4], const float B[4][4]) |
| void | blender::madd_m3_m3m3fl (float R[3][3], const float A[3][3], const float B[3][3], float f) |
| void | blender::madd_m4_m4m4fl (float R[4][4], const float A[4][4], const float B[4][4], float f) |
| void | blender::sub_m3_m3m3 (float R[3][3], const float A[3][3], const float B[3][3]) |
| bool | blender::invert_m2_m2 (float inverse[2][2], const float mat[2][2]) |
| bool | blender::invert_m3 (float mat[3][3]) |
| bool | blender::invert_m3_m3 (float inverse[3][3], const float mat[3][3]) |
| bool | blender::invert_m4 (float mat[4][4]) |
| bool | blender::invert_m4_m4_fallback (float inverse[4][4], const float mat[4][4]) |
| bool | blender::invert_m4_m4 (float inverse[4][4], const float mat[4][4]) |
| void | blender::mul_m4_m4m4_aligned_scale (float R[4][4], const float A[4][4], const float B[4][4]) |
| void | blender::mul_m4_m4m4_split_channels (float R[4][4], const float A[4][4], const float B[4][4]) |
Linear Algebra | |
| float | blender::determinant_m3_array (const float m[3][3]) |
| float | blender::determinant_m4_mat3_array (const float m[4][4]) |
| void | blender::transpose_m3 (float R[3][3]) |
| void | blender::transpose_m3_m3 (float R[3][3], const float M[3][3]) |
| void | blender::transpose_m3_m4 (float R[3][3], const float M[4][4]) |
| void | blender::transpose_m4 (float R[4][4]) |
| void | blender::transpose_m4_m4 (float R[4][4], const float M[4][4]) |
| bool | blender::compare_m4m4 (const float mat1[4][4], const float mat2[4][4], float limit) |
| void | blender::orthogonalize_m3 (float R[3][3], int axis) |
| void | blender::orthogonalize_m4 (float R[4][4], int axis) |
| static void | blender::orthogonalize_stable (float v1[3], float v2[3], float v3[3], bool normalize) |
| void | blender::orthogonalize_m4_stable (float R[4][4], int axis, bool normalize) |
| bool | blender::orthogonalize_m3_zero_axes (float m[3][3], float unit_length) |
| bool | blender::orthogonalize_m4_zero_axes (float m[4][4], float unit_length) |
| bool | blender::is_orthogonal_m3 (const float m[3][3]) |
| bool | blender::is_orthogonal_m4 (const float m[4][4]) |
| bool | blender::is_orthonormal_m3 (const float m[3][3]) |
| bool | blender::is_orthonormal_m4 (const float m[4][4]) |
| bool | blender::is_identity_m4 (const float m[4][4]) |
| bool | blender::is_uniform_scaled_m3 (const float m[3][3]) |
| bool | blender::is_uniform_scaled_m4 (const float m[4][4]) |
| void | blender::normalize_m2_m2 (float R[2][2], const float M[2][2]) ATTR_NONNULL() |
| void | blender::normalize_m3 (float R[3][3]) ATTR_NONNULL() |
| void | blender::normalize_m3_m3 (float R[3][3], const float M[3][3]) ATTR_NONNULL() |
| void | blender::normalize_m4_ex (float R[4][4], float r_scale[3]) ATTR_NONNULL() |
| void | blender::normalize_m4 (float R[4][4]) ATTR_NONNULL() |
| void | blender::normalize_m4_m4 (float rmat[4][4], const float mat[4][4]) ATTR_NONNULL() |
| void | blender::adjoint_m2_m2 (float R[2][2], const float M[2][2]) |
| void | blender::adjoint_m3_m3 (float R[3][3], const float M[3][3]) |
| void | blender::adjoint_m4_m4 (float R[4][4], const float M[4][4]) |
| float | blender::determinant_m2 (float a, float b, float c, float d) |
| float | blender::determinant_m3 (float a1, float a2, float a3, float b1, float b2, float b3, float c1, float c2, float c3) |
| float | blender::determinant_m4 (const float m[4][4]) |
| void | blender::svd_m4 (float U[4][4], float s[4], float V[4][4], float A_[4][4]) |
| void | blender::pseudoinverse_m4_m4 (float inverse[4][4], const float mat[4][4], float epsilon) |
| void | blender::pseudoinverse_m3_m3 (float inverse[3][3], const float mat[3][3], float epsilon) |
| bool | blender::has_zero_axis_m4 (const float matrix[4][4]) |
| void | blender::invert_m4_m4_safe (float inverse[4][4], const float mat[4][4]) |
| void | blender::invert_m4_m4_safe_ortho (float inverse[4][4], const float mat[4][4]) |
| void | blender::invert_m3_m3_safe_ortho (float inverse[3][3], const float mat[3][3]) |
Orthogonalize Matrix Zeroed Axes | |
Set any zeroed axes to an orthogonal vector in relation to the other axes. Typically used so matrix inversion can be performed.
| |
| static bool | blender::orthogonalize_m3_zero_axes_impl (float *mat[3], const float unit_length) |
Transformations | |
| void | blender::size_to_mat3 (float R[3][3], const float size[3]) |
| void | blender::size_to_mat4 (float R[4][4], const float size[3]) |
| void | blender::mat3_to_size (float size[3], const float M[3][3]) |
| void | blender::mat4_to_size (float size[3], const float M[4][4]) |
| float | blender::mat4_to_size_max_axis (const float M[4][4]) |
| void | blender::mat4_to_size_fix_shear (float size[3], const float M[4][4]) |
| float | blender::mat4_to_volume_scale (const float mat[4][4]) |
| float | blender::mat3_to_scale (const float mat[3][3]) |
| float | blender::mat4_to_scale (const float mat[4][4]) |
| void | blender::mat3_to_rot_size (float rot[3][3], float size[3], const float mat3[3][3]) |
| void | blender::mat4_to_loc_rot_size (float loc[3], float rot[3][3], float size[3], const float wmat[4][4]) |
| void | blender::mat4_to_loc_quat (float loc[3], float quat[4], const float wmat[4][4]) |
| void | blender::mat4_decompose (float loc[3], float quat[4], float size[3], const float wmat[4][4]) |
| void | blender::mat3_polar_decompose (const float mat3[3][3], float r_U[3][3], float r_P[3][3]) |
| void | blender::scale_m3_fl (float R[3][3], float scale) |
| void | blender::scale_m4_fl (float R[4][4], float scale) |
| void | blender::translate_m4 (float mat[4][4], float Tx, float Ty, float Tz) |
| void | blender::rotate_m4 (float mat[4][4], char axis, float angle) |
| void | blender::rescale_m4 (float mat[4][4], const float scale[3]) |
| void | blender::transform_pivot_set_m4 (float mat[4][4], const float pivot[3]) |
| void | blender::blend_m3_m3m3 (float out[3][3], const float dst[3][3], const float src[3][3], float srcweight) |
| void | blender::blend_m4_m4m4 (float out[4][4], const float dst[4][4], const float src[4][4], float srcweight) |
| void | blender::interp_m3_m3m3 (float R[3][3], const float A[3][3], const float B[3][3], float t) |
| void | blender::interp_m4_m4m4 (float R[4][4], const float A[4][4], const float B[4][4], float t) |
| bool | blender::is_negative_m3 (const float mat[3][3]) |
| bool | blender::is_negative_m4 (const float mat[4][4]) |
| bool | blender::is_zero_m4 (const float mat[4][4]) |
| bool | blender::equals_m3m3 (const float mat1[3][3], const float mat2[3][3]) |
| bool | blender::equals_m4m4 (const float mat1[4][4], const float mat2[4][4]) |
| void | blender::loc_rot_size_to_mat4 (float R[4][4], const float loc[3], const float rot[3][3], const float size[3]) |
| void | blender::loc_eul_size_to_mat4 (float R[4][4], const float loc[3], const float eul[3], const float size[3]) |
| void | blender::loc_eulO_size_to_mat4 (float R[4][4], const float loc[3], const float eul[3], const float size[3], short order) |
| void | blender::loc_quat_size_to_mat4 (float R[4][4], const float loc[3], const float quat[4], const float size[3]) |
| void | blender::BLI_space_transform_from_matrices (struct SpaceTransform *data, const float local[4][4], const float target[4][4]) |
| void | blender::BLI_space_transform_global_from_matrices (struct SpaceTransform *data, const float local[4][4], const float target[4][4]) |
Other | |
| void | blender::print_m3 (const char *str, const float m[3][3]) |
| void | blender::print_m4 (const char *str, const float m[4][4]) |
| void | blender::BLI_space_transform_apply (const SpaceTransform *data, float co[3]) |
| void | blender::BLI_space_transform_invert (const SpaceTransform *data, float co[3]) |
| void | blender::BLI_space_transform_apply_normal (const SpaceTransform *data, float no[3]) |
| void | blender::BLI_space_transform_invert_normal (const SpaceTransform *data, float no[3]) |