autd3_geometry_viewer/
lib.rs1mod camera_helper;
15mod device_viewer;
16mod imgui_renderer;
17mod model;
18mod patch;
19mod renderer;
20mod settings;
21mod viewer;
22
23pub use settings::Settings;
24pub use viewer::GeometryViewer;
25
26pub type Vector2 = cgmath::Vector2<f32>;
27pub type Vector3 = cgmath::Vector3<f32>;
28pub type Vector4 = cgmath::Vector4<f32>;
29pub type Quaternion = cgmath::Quaternion<f32>;
30pub type Matrix3 = cgmath::Matrix3<f32>;
31pub type Matrix4 = cgmath::Matrix4<f32>;
32
33#[cfg(feature = "use_meter")]
34pub(crate) const SCALE: f32 = 1e-3;
35#[cfg(not(feature = "use_meter"))]
36pub(crate) const SCALE: f32 = 1.;
37
38pub(crate) const GL_SCALE: f32 = 1e-3 / SCALE;
39
40#[cfg(feature = "left_handed")]
41pub(crate) const ZPARITY: f32 = -1.;
42#[cfg(not(feature = "left_handed"))]
43pub(crate) const ZPARITY: f32 = 1.;