diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-22 14:10:24 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-01-22 14:10:24 +0300 |
commit | 8ec59c7c687b9e50c48a9d455b31ff4c01df69d2 (patch) | |
tree | 32bf65aad65475c5dd9aeefa9067eba21e7324fb /source/blender/blenlib/BLI_math_geom.h | |
parent | 2d2339a70992b819a23e8c71f68027022b395f46 (diff) |
Math Lib:
* inline some more functions, from math_base and math_vector
* also made some changes to the way inline is done so it can
work for more than one file
* reflect_v3_v3v3 requires input vectors to be normalized now.
* added rgb_to_grayscale
* added zero_v4, copy_v4_v4, swap_v4_v4, is_one_v3
* added box_clip_bounds_m4 to clip a bounding box against a
projection matrix
Diffstat (limited to 'source/blender/blenlib/BLI_math_geom.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_geom.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h index f650a55d8ad..33d5c887b54 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -144,6 +144,9 @@ void perspective_m4(float mat[4][4], float left, float right, void orthographic_m4(float mat[4][4], float left, float right, float bottom, float top, float nearClip, float farClip); +int box_clip_bounds_m4(float boundbox[2][3], + float bounds[4], float winmat[4][4]); + /********************************** Mapping **********************************/ void map_to_tube(float *u, float *v, float x, float y, float z); |