Welcome to mirror list, hosted at ThFree Co, Russian Federation.

BLI_lasso_2d.h « blenlib « blender « source - git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 69625a9da832b541e1b020616bd92aa87013c5a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* SPDX-License-Identifier: GPL-2.0-or-later
 * Copyright 2001-2002 NaN Holding BV. All rights reserved. */

#pragma once

/** \file
 * \ingroup bli
 */

#ifdef __cplusplus
extern "C" {
#endif

struct rcti;

void BLI_lasso_boundbox(struct rcti *rect, const int mcoords[][2], unsigned int mcoords_len);
bool BLI_lasso_is_point_inside(
    const int mcoords[][2], unsigned int mcoords_len, int sx, int sy, int error_value);
/**
 * Edge version for lasso select. We assume bound-box check was done.
 */
bool BLI_lasso_is_edge_inside(const int mcoords[][2],
                              unsigned int mcoords_len,
                              int x0,
                              int y0,
                              int x1,
                              int y1,
                              int error_value);

#ifdef __cplusplus
}
#endif