diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-09 08:48:09 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-09 08:48:09 +0400 |
commit | 6a4567b9ab957ef912129f24aa4d3f60c3363c4f (patch) | |
tree | 1fc722e77a39f22b1dc5aa1634716bbcebfc03b2 /source/blender/blenlib/BLI_rect.h | |
parent | bcb99b794d7176cf94cb87c483a0efa458b12ef7 (diff) |
BLI Rect: utility function to transform a point using 2 rect's
Diffstat (limited to 'source/blender/blenlib/BLI_rect.h')
-rw-r--r-- | source/blender/blenlib/BLI_rect.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_rect.h b/source/blender/blenlib/BLI_rect.h index dddfb8c6ea9..b86a5bc51b0 100644 --- a/source/blender/blenlib/BLI_rect.h +++ b/source/blender/blenlib/BLI_rect.h @@ -52,6 +52,8 @@ void BLI_rctf_init_minmax(struct rctf *rect); void BLI_rcti_do_minmax_v(struct rcti *rect, const int xy[2]); void BLI_rctf_do_minmax_v(struct rctf *rect, const float xy[2]); +void BLI_rctf_transform_pt_v(const rctf *dst, const rctf *src, float xy_dst[2], const float xy_src[2]); + void BLI_rctf_translate(struct rctf *rect, float x, float y); void BLI_rcti_translate(struct rcti *rect, int x, int y); void BLI_rcti_recenter(struct rcti *rect, int x, int y); |