[Bf-blender-cvs] [4390e49] alembic_basic_io: Remove unused functions.
Kévin Dietrich
noreply at git.blender.org
Wed Apr 6 20:42:10 CEST 2016
Commit: 4390e4988ed1210a8c6abc48e0052ccef99ac5e5
Author: Kévin Dietrich
Date: Wed Apr 6 20:41:54 2016 +0200
Branches: alembic_basic_io
https://developer.blender.org/rB4390e4988ed1210a8c6abc48e0052ccef99ac5e5
Remove unused functions.
===================================================================
M source/blender/blenlib/BLI_math_matrix.h
M source/blender/blenlib/intern/math_matrix.c
===================================================================
diff --git a/source/blender/blenlib/BLI_math_matrix.h b/source/blender/blenlib/BLI_math_matrix.h
index a80ea5c..6fb983a 100644
--- a/source/blender/blenlib/BLI_math_matrix.h
+++ b/source/blender/blenlib/BLI_math_matrix.h
@@ -268,9 +268,6 @@ void BLI_space_transform_invert_normal(const struct SpaceTransform *data, float
void print_m3(const char *str, float M[3][3]);
void print_m4(const char *str, float M[3][4]);
-void rotate_m3_yup_zup(float rot_x_mat[3][3], float rot_y_mat[3][3], float rot_z_mat[3][3], const float euler[3]);
-void rotate_m3_zup_yup(float rot_x_mat[3][3], float rot_y_mat[3][3], float rot_z_mat[3][3], const float euler[3]);
-
#define print_m3_id(M) print_m3(STRINGIFY(M), M)
#define print_m4_id(M) print_m4(STRINGIFY(M), M)
diff --git a/source/blender/blenlib/intern/math_matrix.c b/source/blender/blenlib/intern/math_matrix.c
index cdffcf7..52ff6fd 100644
--- a/source/blender/blenlib/intern/math_matrix.c
+++ b/source/blender/blenlib/intern/math_matrix.c
@@ -2509,55 +2509,3 @@ void BLI_space_transform_invert_normal(const SpaceTransform *data, float no[3])
mul_mat3_m4_v3(((SpaceTransform *)data)->target2local, no);
normalize_v3(no);
}
-
-void rotate_m3_yup_zup(float rot_x_mat[3][3], float rot_y_mat[3][3], float rot_z_mat[3][3], const float euler[3])
-{
- float Rx = euler[0];
- float Ry = -euler[2];
- float Rz = euler[1];
-
- unit_m3(rot_x_mat);
- unit_m3(rot_y_mat);
- unit_m3(rot_z_mat);
-
- rot_x_mat[1][1] = cosf(Rx);
- rot_x_mat[2][1] = -sinf(Rx);
- rot_x_mat[1][2] = sinf(Rx);
- rot_x_mat[2][2] = cosf(Rx);
-
- rot_y_mat[2][2] = cosf(Ry);
- rot_y_mat[0][2] = -sinf(Ry);
- rot_y_mat[2][0] = sinf(Ry);
- rot_y_mat[0][0] = cosf(Ry);
-
- rot_z_mat[0][0] = cosf(Rz);
- rot_z_mat[1][0] = -sinf(Rz);
- rot_z_mat[0][1] = sinf(Rz);
- rot_z_mat[1][1] = cosf(Rz);
-}
-
-void rotate_m3_zup_yup(float rot_x_mat[3][3], float rot_y_mat[3][3], float rot_z_mat[3][3], const float euler[3])
-{
- float Rx = euler[0];
- float Ry = euler[2];
- float Rz = -euler[1];
-
- unit_m3(rot_x_mat);
- unit_m3(rot_y_mat);
- unit_m3(rot_z_mat);
-
- rot_x_mat[1][1] = cosf(Rx);
- rot_x_mat[2][1] = -sinf(Rx);
- rot_x_mat[1][2] = sinf(Rx);
- rot_x_mat[2][2] = cosf(Rx);
-
- rot_y_mat[2][2] = cosf(Ry);
- rot_y_mat[0][2] = -sinf(Ry);
- rot_y_mat[2][0] = sinf(Ry);
- rot_y_mat[0][0] = cosf(Ry);
-
- rot_z_mat[0][0] = cosf(Rz);
- rot_z_mat[1][0] = -sinf(Rz);
- rot_z_mat[0][1] = sinf(Rz);
- rot_z_mat[1][1] = cosf(Rz);
-}
More information about the Bf-blender-cvs
mailing list