|
Blender V5.3
|
#include <algorithm>#include <cfloat>#include <climits>#include <cmath>#include <cstdio>#include <cstdlib>#include "BLI_math_base_c.hh"#include "BLI_math_geom_c.hh"#include "BLI_math_matrix_c.hh"#include "BLI_math_vector.hh"#include "BLI_rect.hh"#include "BLI_utildefines.hh"#include "DNA_vec_types.h"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Functions | |
| bool | blender::BLI_rcti_is_empty (const rcti *rect) |
| bool | blender::BLI_rctf_is_empty (const rctf *rect) |
| bool | blender::BLI_rcti_isect_x (const rcti *rect, int x) |
| bool | blender::BLI_rcti_isect_y (const rcti *rect, int y) |
| bool | blender::BLI_rcti_isect_pt (const rcti *rect, const int x, const int y) |
| bool | blender::BLI_rcti_isect_pt_v (const rcti *rect, const int xy[2]) |
| bool | blender::BLI_rctf_isect_x (const rctf *rect, float x) |
| bool | blender::BLI_rctf_isect_y (const rctf *rect, float y) |
| bool | blender::BLI_rctf_isect_pt (const rctf *rect, const float x, const float y) |
| bool | blender::BLI_rctf_isect_pt_v (const rctf *rect, const float xy[2]) |
| int | blender::BLI_rcti_length_x (const rcti *rect, int x) |
| int | blender::BLI_rcti_length_y (const rcti *rect, int y) |
| float | blender::BLI_rctf_length_x (const rctf *rect, float x) |
| float | blender::BLI_rctf_length_y (const rctf *rect, float y) |
| bool | blender::BLI_rctf_inside_rctf (const rctf *rct_a, const rctf *rct_b) |
| bool | blender::BLI_rcti_inside_rcti (const rcti *rct_a, const rcti *rct_b) |
| static int | blender::isect_segments_i (const int v1[2], const int v2[2], const int v3[2], const int v4[2]) |
| static int | blender::isect_segments_fl (const float v1[2], const float v2[2], const float v3[2], const float v4[2]) |
| bool | blender::BLI_rcti_isect_segment (const rcti *rect, const int s1[2], const int s2[2]) |
| bool | blender::BLI_rctf_isect_segment (const rctf *rect, const float s1[2], const float s2[2]) |
| bool | blender::BLI_rcti_isect_circle (const rcti *rect, const float xy[2], const float radius) |
| bool | blender::BLI_rctf_isect_circle (const rctf *rect, const float xy[2], const float radius) |
| void | blender::BLI_rctf_union (rctf *rct_a, const rctf *rct_b) |
| void | blender::BLI_rctf_union_x (struct rctf *rct, float x) |
| void | blender::BLI_rctf_union_y (struct rctf *rct, float y) |
| void | blender::BLI_rcti_union (rcti *rct_a, const rcti *rct_b) |
| void | blender::BLI_rctf_init (struct rctf *rect, float xmin, float xmax, float ymin, float ymax) |
| void | blender::BLI_rcti_init (struct rcti *rect, int xmin, int xmax, int ymin, int ymax) |
| bool | blender::BLI_rctf_is_valid (const rctf *rect) |
| bool | blender::BLI_rcti_is_valid (const rcti *rect) |
| void | blender::BLI_rctf_sanitize (struct rctf *rect) |
| void | blender::BLI_rcti_sanitize (struct rcti *rect) |
| void | blender::BLI_rctf_init_pt_radius (struct rctf *rect, const float xy[2], float size) |
| void | blender::BLI_rcti_init_pt_radius (struct rcti *rect, const int xy[2], int size) |
| void | blender::BLI_rcti_init_minmax (struct rcti *rect) |
| void | blender::BLI_rctf_init_minmax (struct rctf *rect) |
| void | blender::BLI_rcti_do_minmax_v (struct rcti *rect, const int xy[2]) |
| void | blender::BLI_rcti_do_minmax_rcti (rcti *rect, const rcti *other) |
| void | blender::BLI_rctf_do_minmax_v (struct rctf *rect, const float xy[2]) |
| void | blender::BLI_rctf_transform_pt_v (const rctf *dst, const rctf *src, float xy_dst[2], const float xy_src[2]) |
| void | blender::BLI_rctf_transform_calc_m4_pivot_min_ex (const rctf *dst, const rctf *src, float matrix[4][4], uint x, uint y) |
| void | blender::BLI_rctf_transform_calc_m4_pivot_min (const rctf *dst, const rctf *src, float matrix[4][4]) |
| void | blender::BLI_rctf_transform_calc_m3_pivot_min (const rctf *dst, const rctf *src, float matrix[3][3]) |
| void | blender::BLI_rcti_translate (struct rcti *rect, int x, int y) |
| void | blender::BLI_rctf_translate (struct rctf *rect, float x, float y) |
| void | blender::BLI_rcti_mul (struct rcti *rect, int factor) |
| void | blender::BLI_rctf_mul (struct rctf *rect, float factor) |
| void | blender::BLI_rcti_recenter (struct rcti *rect, int x, int y) |
| void | blender::BLI_rctf_recenter (struct rctf *rect, float x, float y) |
| void | blender::BLI_rcti_resize_x (struct rcti *rect, int x) |
| void | blender::BLI_rcti_resize_y (struct rcti *rect, int y) |
| void | blender::BLI_rcti_resize (struct rcti *rect, int x, int y) |
| void | blender::BLI_rcti_pad (struct rcti *rect, int pad_x, int pad_y) |
| void | blender::BLI_rctf_pad (struct rctf *rect, float pad_x, float pad_y) |
| void | blender::BLI_rctf_resize_x (struct rctf *rect, float x) |
| void | blender::BLI_rctf_resize_y (struct rctf *rect, float y) |
| void | blender::BLI_rctf_resize (struct rctf *rect, float x, float y) |
| void | blender::BLI_rcti_scale (rcti *rect, float scale) |
| void | blender::BLI_rctf_scale (rctf *rect, float scale) |
| void | blender::BLI_rctf_pad_y (struct rctf *rect, float boundary_size, float pad_min, float pad_max) |
| void | blender::BLI_rctf_interp (rctf *rect, const rctf *rect_a, const rctf *rect_b, const float fac) |
| bool | blender::BLI_rctf_clamp_pt_v (const rctf *rect, float xy[2]) |
| bool | blender::BLI_rcti_clamp_pt_v (const rcti *rect, int xy[2]) |
| bool | blender::BLI_rctf_clamp (rctf *rect, const rctf *rect_bounds, float r_xy[2]) |
| bool | blender::BLI_rcti_clamp (rcti *rect, const rcti *rect_bounds, int r_xy[2]) |
| bool | blender::BLI_rctf_compare (const rctf *rect_a, const rctf *rect_b, const float limit) |
| bool | blender::BLI_rcti_compare (const rcti *rect_a, const rcti *rect_b) |
| bool | blender::BLI_rctf_isect (const rctf *src1, const rctf *src2, rctf *dest) |
| bool | blender::BLI_rcti_isect (const rcti *src1, const rcti *src2, rcti *dest) |
| bool | blender::BLI_rctf_isect_rect_x (const rctf *src1, const rctf *src2, float range_x[2]) |
| bool | blender::BLI_rctf_isect_rect_y (const rctf *src1, const rctf *src2, float range_y[2]) |
| bool | blender::BLI_rcti_isect_rect_x (const rcti *src1, const rcti *src2, int range_x[2]) |
| bool | blender::BLI_rcti_isect_rect_y (const rcti *src1, const rcti *src2, int range_y[2]) |
| void | blender::BLI_rcti_rctf_copy (rcti *dst, const rctf *src) |
| void | blender::BLI_rcti_rctf_copy_floor (rcti *dst, const rctf *src) |
| void | blender::BLI_rcti_rctf_copy_round (rcti *dst, const rctf *src) |
| void | blender::BLI_rctf_rcti_copy (rctf *dst, const rcti *src) |
| void | blender::print_rctf (const char *str, const rctf *rect) |
| void | blender::print_rcti (const char *str, const rcti *rect) |
Rect math functions | |
| #define | ROTATE_SINCOS(r_vec, mat2, vec) |
| void | blender::BLI_rctf_rotate_expand (rctf *dst, const rctf *src, float angle) |
| void | blender::BLI_rctf_rotate_expand_around (rctf *dst, const rctf *src, const float pivot[2], float angle) |
| bool | blender::BLI_rctf_clamp_segment (const rctf *rect, float s1[2], float s2[2]) |
A minimalist lib for functions doing stuff with rectangle structs.
Definition in file rct.cc.
| #define ROTATE_SINCOS | ( | r_vec, | |
| mat2, | |||
| vec ) |
Definition at line 1112 of file rct.cc.
Referenced by blender::BLI_rctf_rotate_expand().