liba 0.1.15
An algorithm library based on C/C++
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)
20extern "C" {
21#endif /* __cplusplus */
22
35A_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
53A_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
72A_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 */
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.
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_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.
double a_real
compiler built-in floating-point number type
Definition a.h:1012
size_t a_size
unsigned integer type returned by the sizeof operator
Definition a.h:823
two-dimensional point
three-dimensional point
instance structure for two-dimensional point
Definition point2.h:185
instance structure for three-dimensional point
Definition point3.h:193
instance structure for two-dimensional vector
Definition vector2.h:315