Expand description
Camera and coordinate conversions.
World coordinates are model units (mm, Y up). The view maps them to device
pixels (Y down) of a target whose CSS size times dpr is its pixel size. All
conversions use f64; GPU buffers receive f32 offsets relative to local
origins, so precision does not depend on the absolute world position.
Structs§
- View
- Camera state. Not part of the document; hosts may persist it as view state.
Constants§
Functions§
- lod_
tolerance - Flatten tolerance (model units) for a LOD bucket: ¼ device pixel at the bucket’s smallest scale.