Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
Cartesian geometery math library. More...
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
struct | cartesian_point_2d |
struct | cartesian_line_2d |
Functions | |
bool | cartesian_line_intersection (struct cartesian_line_2d a, struct cartesian_line_2d b, struct cartesian_point_2d *intersection) |
Find the intersection point of two finite lines, if it exists. | |
bool | cartesian_point_in_circle (struct cartesian_point_2d point, struct cartesian_point_2d origin, uint32_t radius) |
Determine if a point in inside a circle. | |
bool | cartesian_point_in_polygon (struct cartesian_point_2d point, const struct cartesian_point_2d *polygon, size_t vertices) |
Determine if a point in inside an arbitrary polygon. | |
uint32_t | cartesian_distance_to_polygon_edge (struct cartesian_point_2d point, const struct cartesian_point_2d *polygon, size_t vertices) |
Determine the minimum distance to a polygons edge. | |
Cartesian geometery math library.
SPDX-License-Identifier: FSL-1.1-ALv2