|
Blender V4.3
|
#include "DNA_vec_types.h"#include "BLI_math_base.h"#include "BLI_math_geom.h"#include "BLI_lasso_2d.hh"#include "BLI_strict_flags.h"Go to the source code of this file.
Functions | |
| void | BLI_lasso_boundbox (rcti *rect, const Span< int2 > mcoords) |
| bool | BLI_lasso_is_point_inside (const Span< int2 > mcoords, const int sx, const int sy, const int error_value) |
| bool | BLI_lasso_is_edge_inside (const Span< int2 > mcoords, int x0, int y0, int x1, int y1, const int error_value) |
Definition at line 21 of file lasso_2d.cc.
References blender::IndexRange::drop_front(), blender::Span< T >::index_range(), rcti::xmax, rcti::xmin, rcti::ymax, and rcti::ymin.
| bool BLI_lasso_is_edge_inside | ( | const Span< int2 > | mcoords, |
| int | x0, | ||
| int | y0, | ||
| int | x1, | ||
| int | y1, | ||
| const int | error_value ) |
Definition at line 56 of file lasso_2d.cc.
References BLI_lasso_is_point_inside(), blender::IndexRange::drop_back(), blender::Span< T >::index_range(), blender::Span< T >::is_empty(), isect_seg_seg_v2_int(), blender::Span< T >::last(), and v2.
| bool BLI_lasso_is_point_inside | ( | const Span< int2 > | mcoords, |
| const int | sx, | ||
| const int | sy, | ||
| const int | error_value ) |
Definition at line 42 of file lasso_2d.cc.
References blender::Span< T >::data(), blender::Span< T >::is_empty(), isect_point_poly_v2_int(), and blender::Span< T >::size().
Referenced by BLI_lasso_is_edge_inside().