Skip to main content

Module camera64

Module camera64 

Source
Expand description

f64 camera and relative-to-centre (RTC) geometry path.

The reference builds its render frame in f64 relative to the camera centre. At Earth radius (6 378 137 m) an f32 world coordinate steps by a metre, so sub-metre detail disappears before the vertex is even transformed. This module keeps the camera, the view transform, and the vertex subtraction in f64, and narrows only the final screen coordinates.

Matrices are stored column-major, the same convention as crate::math3d::Mat4, so an f64 frame and an f32 scene camera project a shared anchor to the same pixel.

Structs§

Camera64
A camera whose position and basis stay in f64.
DMat4
Double-precision 4x4 matrix stored column-major.
DVec3
Double-precision 3D vector.
ProjectedPoint64
A projected screen position in f64 logical pixels.
RenderFrame64
A prepared frame: f64 projection plus the RTC origin subtracted from world positions before they are narrowed.

Constants§

EARTH_RADIUS_M
Earth’s nominal radius in metres.