17 float rot_y_mat[3][3],
18 float rot_z_mat[3][3],
22 const float rx = euler[0];
47 rot_x_mat[1][1] =
cos(rx);
48 rot_x_mat[2][1] = -
sin(rx);
49 rot_x_mat[1][2] =
sin(rx);
50 rot_x_mat[2][2] =
cos(rx);
52 rot_y_mat[2][2] =
cos(ry);
53 rot_y_mat[0][2] = -
sin(ry);
54 rot_y_mat[2][0] =
sin(ry);
55 rot_y_mat[0][0] =
cos(ry);
57 rot_z_mat[0][0] =
cos(rz);
58 rot_z_mat[1][0] = -
sin(rz);
59 rot_z_mat[0][1] =
sin(rz);
60 rot_z_mat[1][1] =
cos(rz);
66 float dst_rot[3][3], src_rot[3][3], dst_scale_mat[4][4];
67 float rot_x_mat[3][3], rot_y_mat[3][3], rot_z_mat[3][3];
68 float src_trans[3], dst_scale[3], src_scale[3], euler[3];
118 dst_scale[0] = src_scale[0];
119 dst_scale[1] = src_scale[2];
120 dst_scale[2] = src_scale[1];
127 float r_yup_mat[4][4],
void mul_m4_m4m4(float R[4][4], const float A[4][4], const float B[4][4])
void unit_m3(float m[3][3])
void unit_m4(float m[4][4])
void copy_m4_m3(float m1[4][4], const float m2[3][3])
bool invert_m4_m4(float R[4][4], const float A[4][4])
void mat4_to_loc_rot_size(float loc[3], float rot[3][3], float size[3], const float wmat[4][4])
void size_to_mat4(float R[4][4], const float size[3])
void copy_m4_m4(float m1[4][4], const float m2[4][4])
void mul_m3_m3m3(float R[3][3], const float A[3][3], const float B[3][3])
void mat3_to_eulO(float eul[3], short order, const float mat[3][3])
MINLINE void zero_v3(float r[3])
Object is a sort of wrapper for general info.
INLINE Rall1d< T, V, S > cos(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > sin(const Rall1d< T, V, S > &arg)
void create_swapped_rotation_matrix(float rot_x_mat[3][3], float rot_y_mat[3][3], float rot_z_mat[3][3], const float euler[3], AbcAxisSwapMode mode)
BLI_INLINE void copy_yup_from_zup(float yup[3], const float zup[3])
void copy_m44_axis_swap(float dst_mat[4][4], float src_mat[4][4], AbcAxisSwapMode mode)
BLI_INLINE void copy_zup_from_yup(float zup[3], const float yup[3])
void create_transform_matrix(Object *obj, float r_yup_mat[4][4], AbcMatrixMode mode, Object *proxy_from)