From 9cce2d864554cb78abfb5e2909dfb1a506933d3c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 12 Aug 2012 01:07:31 +0000 Subject: smooth-view for 2d views, graph editor, sequencer, node view, works with border zoom, view selected, view all. --- source/blender/blenlib/BLI_rect.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/blender/blenlib/BLI_rect.h') diff --git a/source/blender/blenlib/BLI_rect.h b/source/blender/blenlib/BLI_rect.h index 1c06e107c1f..55ab961cc53 100644 --- a/source/blender/blenlib/BLI_rect.h +++ b/source/blender/blenlib/BLI_rect.h @@ -53,6 +53,10 @@ 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_resize(struct rcti *rect, int x, int y); void BLI_rctf_resize(struct rctf *rect, float x, float y); +void BLI_rctf_interp(struct rctf *rect, const struct rctf *rect_a, const struct rctf *rect_b, const float fac); +//void BLI_rcti_interp(struct rctf *rect, struct rctf *rect_a, struct rctf *rect_b, float fac); +int BLI_rctf_compare(const struct rctf *rect_a, const struct rctf *rect_b, const float limit); +int BLI_rcti_compare(const struct rcti *rect_a, const struct rcti *rect_b); int BLI_in_rcti(const struct rcti *rect, const int x, const int y); int BLI_in_rcti_v(const struct rcti *rect, const int xy[2]); int BLI_in_rctf(const struct rctf *rect, const float x, const float y); -- cgit v1.2.3