Skip to main content

mln_engine/camera/
mod.rs

1//! The camera: its options, momentum and limits, bound options, the
2//! transform that moves it, the transform state, and the view it shows and
3//! draws with.
4
5mod bound_options;
6#[expect(clippy::module_inception, reason = "`camera::camera` holds the camera's options and updates")]
7mod camera;
8mod camera_limits;
9mod camera_momentum;
10mod elevation;
11mod frame_projection;
12mod ground;
13// gtests-core: MapProjection (test/map/map.test.cpp).
14pub(crate) mod map_projection;
15mod map_view;
16mod mode;
17mod projection;
18mod projection_mode;
19
20pub use bound_options::BoundOptions;
21pub use camera::{
22    AnimationOptions, CameraDelta, CameraError, CameraOptions, CameraUpdate, CameraUpdateMode, CameraVelocity,
23    GesturePhase, TransitionEnd, TransitionOutcome,
24};
25pub use camera_limits::{CameraLimits, MAX_FIELD_OF_VIEW, MIN_FIELD_OF_VIEW};
26pub use camera_momentum::{
27    AnchoredMomentum, CameraMomentum, InvalidMomentum, MomentumDecay, MomentumDecayModel, MomentumEasing,
28    MomentumGlide, MomentumSnap,
29};
30pub use elevation::Elevation;
31pub use frame_projection::{ClipDepthRange, FrameProjection};
32#[cfg(test)]
33pub(crate) use ground::GroundHit;
34pub use map_projection::MapProjection;
35pub use map_view::{Camera, LogicalExtent, MapView, Viewport};
36pub use mode::{ConstrainMode, ViewportMode};
37pub use projection_mode::{AxonometricMode, ProjectionMode};
38mod camera_pose;
39pub mod constants;
40pub(crate) mod tile_coordinate;
41mod tile_projector;
42pub mod transform;
43mod transform_state;
44mod vertical_perspective_projection;
45mod view;
46
47pub use camera::FreeCameraOptions;
48pub use projection::{ProjectedTilePoint, Projection, ProjectionData};
49pub use tile_coordinate::TileCoordinate;
50pub use tile_projector::TileProjector;
51pub use transform::{CameraCommandId, CommandEnd, FrameClock};
52pub use transform_state::TransformState;
53pub use vertical_perspective_projection::{CenterAndBearing, VerticalPerspectiveProjection};
54pub use view::{NorthOrientation, View, scale_zoom, zoom_scale};