23 float rot_y_mat[3][3],
24 float rot_z_mat[3][3],
28 const float rx = euler[0];
53 rot_x_mat[1][1] =
cos(rx);
54 rot_x_mat[2][1] = -sin(rx);
55 rot_x_mat[1][2] = sin(rx);
56 rot_x_mat[2][2] =
cos(rx);
58 rot_y_mat[2][2] =
cos(ry);
59 rot_y_mat[0][2] = -sin(ry);
60 rot_y_mat[2][0] = sin(ry);
61 rot_y_mat[0][0] =
cos(ry);
63 rot_z_mat[0][0] =
cos(rz);
64 rot_z_mat[1][0] = -sin(rz);
65 rot_z_mat[0][1] = sin(rz);
66 rot_z_mat[1][1] =
cos(rz);
72 float dst_rot[3][3], src_rot[3][3], dst_scale_mat[4][4];
73 float rot_x_mat[3][3], rot_y_mat[3][3], rot_z_mat[3][3];
74 float src_trans[3], dst_scale[3], src_scale[3], euler[3];
124 dst_scale[0] = src_scale[0];
125 dst_scale[1] = src_scale[2];
126 dst_scale[2] = src_scale[1];
133 float r_yup_mat[4][4],
144 obj->
parent->object_to_world().ptr());
145 mul_m4_m4m4(zup_mat, obj->
parent->world_to_object().ptr(), obj->object_to_world().ptr());
148 copy_m4_m4(zup_mat, obj->object_to_world().ptr());
152 mul_m4_m4m4(zup_mat, proxy_from->object_to_world().ptr(), zup_mat);
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])
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])
bool invert_m4_m4(float inverse[4][4], const float mat[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 m[3][3])
MINLINE void zero_v3(float r[3])
Object is a sort of wrapper for general info.
ccl_device_inline float3 cos(float3 v)
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)
ObjectRuntimeHandle * runtime