1#![cfg_attr(not(test), no_std)]
11
12#![deny(unconditional_recursion)]
42
43pub use crate::angle::Angle;
44pub use crate::box2d::Box2D;
45pub use crate::homogen::HomogeneousVector;
46pub use crate::length::Length;
47pub use crate::point::{point2, point3, Point2D, Point3D};
48pub use crate::scale::Scale;
49pub use crate::transform2d::Transform2D;
50pub use crate::transform3d::Transform3D;
51pub use crate::vector::{bvec2, bvec3, BoolVector2D, BoolVector3D};
52pub use crate::vector::{vec2, vec3, Vector2D, Vector3D};
53
54pub use crate::box3d::{box3d, Box3D};
55pub use crate::rect::{rect, Rect};
56pub use crate::rigid::RigidTransform3D;
57pub use crate::rotation::{Rotation2D, Rotation3D};
58pub use crate::side_offsets::SideOffsets2D;
59pub use crate::size::{size2, size3, Size2D, Size3D};
60pub use crate::translation::{Translation2D, Translation3D};
61pub use crate::trig::Trig;
62
63#[macro_use]
64mod macros;
65
66mod angle;
67pub mod approxeq;
68pub mod approxord;
69mod box2d;
70mod box3d;
71mod homogen;
72mod length;
73pub mod num;
74mod point;
75mod rect;
76mod rigid;
77mod rotation;
78mod scale;
79mod side_offsets;
80mod size;
81mod transform2d;
82mod transform3d;
83mod translation;
84mod trig;
85mod vector;
86
87#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, PartialOrd, Ord, Hash)]
89pub struct UnknownUnit;
90
91pub mod default {
92 use super::UnknownUnit;
95 pub type Length<T> = super::Length<T, UnknownUnit>;
96 pub type Point2D<T> = super::Point2D<T, UnknownUnit>;
97 pub type Point3D<T> = super::Point3D<T, UnknownUnit>;
98 pub type Vector2D<T> = super::Vector2D<T, UnknownUnit>;
99 pub type Vector3D<T> = super::Vector3D<T, UnknownUnit>;
100 pub type HomogeneousVector<T> = super::HomogeneousVector<T, UnknownUnit>;
101 pub type Size2D<T> = super::Size2D<T, UnknownUnit>;
102 pub type Size3D<T> = super::Size3D<T, UnknownUnit>;
103 pub type Rect<T> = super::Rect<T, UnknownUnit>;
104 pub type Box2D<T> = super::Box2D<T, UnknownUnit>;
105 pub type Box3D<T> = super::Box3D<T, UnknownUnit>;
106 pub type SideOffsets2D<T> = super::SideOffsets2D<T, UnknownUnit>;
107 pub type Transform2D<T> = super::Transform2D<T, UnknownUnit, UnknownUnit>;
108 pub type Transform3D<T> = super::Transform3D<T, UnknownUnit, UnknownUnit>;
109 pub type Rotation2D<T> = super::Rotation2D<T, UnknownUnit, UnknownUnit>;
110 pub type Rotation3D<T> = super::Rotation3D<T, UnknownUnit, UnknownUnit>;
111 pub type Translation2D<T> = super::Translation2D<T, UnknownUnit, UnknownUnit>;
112 pub type Translation3D<T> = super::Translation3D<T, UnknownUnit, UnknownUnit>;
113 pub type Scale<T> = super::Scale<T, UnknownUnit, UnknownUnit>;
114 pub type RigidTransform3D<T> = super::RigidTransform3D<T, UnknownUnit, UnknownUnit>;
115}