liba
0.1.15
An algorithm library based on C/C++
Toggle main menu visibility
Loading...
Searching...
No Matches
bounding.h
Go to the documentation of this file.
1
6
7
#ifndef LIBA_BOUNDING_H
8
#define LIBA_BOUNDING_H
9
10
#include "
point2.h
"
11
#include "
point3.h
"
12
18
19
#if defined(__cplusplus)
20
extern
"C"
{
21
#endif
/* __cplusplus */
22
35
A_EXTERN
int
a_bounding_box2
(
a_point2
const
*i_p,
a_size
i_n,
36
a_real
*xmin,
a_real
*xmax,
37
a_real
*ymin,
a_real
*ymax);
38
53
A_EXTERN
int
a_bounding_box3
(
a_point3
const
*i_p,
a_size
i_n,
54
a_real
*xmin,
a_real
*xmax,
55
a_real
*ymin,
a_real
*ymax,
56
a_real
*zmin,
a_real
*zmax);
57
72
A_EXTERN
a_size
a_bounding_obb2
(
a_point2
*i_p,
a_size
i_n,
a_point2
*o_p,
a_size
o_n,
73
a_point2
*o,
a_vector2
*u,
a_vector2
*v,
a_real
*umax,
a_real
*vmax);
74
75
#if defined(__cplusplus)
76
}
/* extern "C" */
77
#endif
/* __cplusplus */
78
80
81
#endif
/* a/bounding.h */
a_bounding_box3
int a_bounding_box3(a_point3 const *i_p, a_size i_n, a_real *xmin, a_real *xmax, a_real *ymin, a_real *ymax, a_real *zmin, a_real *zmax)
compute the axis-aligned bounding box (AABB) for a set of 3D points.
a_bounding_box2
int a_bounding_box2(a_point2 const *i_p, a_size i_n, a_real *xmin, a_real *xmax, a_real *ymin, a_real *ymax)
compute the axis-aligned bounding box (AABB) for a set of 2D points.
a_bounding_obb2
a_size a_bounding_obb2(a_point2 *i_p, a_size i_n, a_point2 *o_p, a_size o_n, a_point2 *o, a_vector2 *u, a_vector2 *v, a_real *umax, a_real *vmax)
compute the minimum area Oriented Bounding Box (OBB) for a set of 2D points.
a_real
double a_real
compiler built-in floating-point number type
Definition
a.h:1012
a_size
size_t a_size
unsigned integer type returned by the sizeof operator
Definition
a.h:823
point2.h
two-dimensional point
point3.h
three-dimensional point
a_point2
instance structure for two-dimensional point
Definition
point2.h:264
a_point3
instance structure for three-dimensional point
Definition
point3.h:350
a_vector2
instance structure for two-dimensional vector
Definition
vector2.h:343
bounding.h
Generated by
1.17.0