Skip to main content

use_geometry/
lib.rs

1#![forbid(unsafe_code)]
2#![doc = include_str!("../README.md")]
3
4//! Small Euclidean 2D geometry primitives for `RustUse`.
5
6pub mod aabb;
7pub mod circle;
8pub mod distance;
9pub mod error;
10pub mod line;
11pub mod orientation;
12pub mod point;
13pub mod prelude;
14pub mod segment;
15pub mod triangle;
16pub mod vector;
17
18pub use aabb::{Aabb2, aabb_from_points};
19pub use circle::Circle;
20pub use distance::{distance_2d, distance_squared_2d, midpoint_2d};
21pub use error::GeometryError;
22pub use line::Line2;
23pub use orientation::{
24    Orientation2, orientation_2d, orientation_2d_with_tolerance, try_orientation_2d,
25    try_orientation_2d_with_tolerance,
26};
27pub use point::Point2;
28pub use segment::Segment2;
29pub use triangle::{Triangle, triangle_area, triangle_twice_area, triangle_twice_signed_area};
30pub use vector::Vector2;