mirror of
https://github.com/Cesarus85/ringfall-mjolnir-vr.git
synced 2026-10-22 12:00:36 +02:00
50 lines
1.0 KiB
C
50 lines
1.0 KiB
C
/*
|
|
GEOMETRY.H
|
|
|
|
header included in hcex build.
|
|
*/
|
|
|
|
#ifndef __GEOMETRY_H
|
|
#define __GEOMETRY_H
|
|
#pragma once
|
|
|
|
/* ---------- constants */
|
|
|
|
/* ---------- macros */
|
|
|
|
/* ---------- structures */
|
|
|
|
/* ---------- prototypes/GEOMETRY.C */
|
|
|
|
boolean convex_hull2d_test_point(short count, union real_point2d const *points, union real_point2d const *point, real epsilon);
|
|
boolean convex_hull2d_test_circle(
|
|
short count,
|
|
real_point2d const *points,
|
|
real_point2d const *center,
|
|
real radius);
|
|
boolean convex_hull2d_test_point_indexed(
|
|
short count,
|
|
short const *indices,
|
|
real_point2d const *points,
|
|
real_point2d const *point,
|
|
real epsilon);
|
|
real convex_hull2d_area(
|
|
short count,
|
|
real_point2d const *vertices);
|
|
boolean convex_hull2d_test_vector(
|
|
short count,
|
|
real_point2d const *points,
|
|
real_point2d const *origin,
|
|
real_vector2d const *vector,
|
|
real *minimum_distance,
|
|
real *maximum_distance);
|
|
boolean convex_polygon2d_verify(
|
|
short count,
|
|
real *vertices);
|
|
|
|
/* ---------- globals */
|
|
|
|
/* ---------- public code */
|
|
|
|
#endif // __GEOMETRY_H
|