Expand description
Interactive orthographic and perspective cameras with zoom-to-fit, depth-range fitting, and world/screen conversion shared by native and web.
Screen coordinates are CSS pixels: origin at the top left, y increasing down. Device pixel ratio affects surface sizing, not camera math.
Re-exports§
pub use crate::geometry3d::add3;pub use crate::geometry3d::cross3;pub use crate::geometry3d::dot3;pub use crate::geometry3d::len3;pub use crate::geometry3d::norm3;pub use crate::geometry3d::rotate3;pub use crate::geometry3d::scale3;pub use crate::geometry3d::sub3;
Structs§
- Ray
- A world-space ray for picking.
- View
Camera
Enums§
- Projection
- The projection kind (R21): orthographic is the default; the toggle keeps the apparent size at the target plane.
- View
Frame - Which way the NAMED views face: the frame the standard-view table and the ViewCube’s labelled faces are read in, carried into the world by a rotation.
Functions§
- invert4_
columns - Inverse of a column-major 4×4 matrix (index =
col*4 + rowlayout). ReturnsNoneif singular. Used to invert the view-projection for the host overlays’ screen→world path.