Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2015-07-11 01:04:27 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2015-07-11 01:04:27 +0300
commit909fa34c5f8cea52ce5fa469315936c6303f41b1 (patch)
tree7bc64b5ebd494ba809d5bdf4494b578901ffffe7 /source/blender/blenlib/BLI_math_matrix.h
parentbf3fe67862e3a42193f45c49d3d6b07724453da7 (diff)
BLI_matrix space_transform: Add a 'local-invariant' setter.
`BLI_space_transform_from_matrices()` defines a 'global-invariant' transform (same point in global space, two different coordinates in local and target spaces). New `BLI_space_transform_global_from_matrices()` is kind of opposite, it defines a 'local-invariant' transform (two different points in global space, same coordinates in local and target spaces). Useful to 'match' meshes.
Diffstat (limited to 'source/blender/blenlib/BLI_math_matrix.h')
-rw-r--r--source/blender/blenlib/BLI_math_matrix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_matrix.h b/source/blender/blenlib/BLI_math_matrix.h
index f7eeb1ec7a1..d7a309e0835 100644
--- a/source/blender/blenlib/BLI_math_matrix.h
+++ b/source/blender/blenlib/BLI_math_matrix.h
@@ -241,6 +241,7 @@ typedef struct SpaceTransform {
} SpaceTransform;
void BLI_space_transform_from_matrices(struct SpaceTransform *data, float local[4][4], float target[4][4]);
+void BLI_space_transform_global_from_matrices(struct SpaceTransform *data, float local[4][4], float target[4][4]);
void BLI_space_transform_apply(const struct SpaceTransform *data, float co[3]);
void BLI_space_transform_invert(const struct SpaceTransform *data, float co[3]);
void BLI_space_transform_apply_normal(const struct SpaceTransform *data, float no[3]);