diff options
author | mano-wii <germano.costa@ig.com.br> | 2019-03-22 04:20:13 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2019-03-22 04:23:49 +0300 |
commit | 2b42b8b779cd29dd1d4531103cee6aa69643ac7b (patch) | |
tree | 15c01d0e72f1c2668d0ded4436e8dcd802913e7a /source/blender/blenlib/BLI_math_geom.h | |
parent | 1ae6aaad43ad1e021b2e8d8298bb389a4271d185 (diff) |
BLI Math: Add and use new `projmat_dimensions` utility.
Diffstat (limited to 'source/blender/blenlib/BLI_math_geom.h')
-rw-r--r-- | source/blender/blenlib/BLI_math_geom.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_geom.h b/source/blender/blenlib/BLI_math_geom.h index 4d095ab1900..2f81fbf37f6 100644 --- a/source/blender/blenlib/BLI_math_geom.h +++ b/source/blender/blenlib/BLI_math_geom.h @@ -441,6 +441,11 @@ void window_translate_m4(float winmat[4][4], float perspmat[4][4], void planes_from_projmat(float mat[4][4], float left[4], float right[4], float top[4], float bottom[4], float front[4], float back[4]); +void projmat_dimensions(const float projmat[4][4], + float *r_left, float *r_right, + float *r_bottom, float *r_top, + float *r_near, float *r_far); + int box_clip_bounds_m4(float boundbox[2][3], const float bounds[4], float winmat[4][4]); void box_minmax_bounds_m4(float min[3], float max[3], |