Expand description
Camera: projection (intrinsic) × position/orientation (extrinsic).
A port of silx silx.gui.plot3d.scene.camera. silx caches matrices behind a
change-notifier; here every matrix is rebuilt on demand (a 4×4 build per
frame is negligible), so the observer machinery is dropped.
Structs§
- Camera
- Combination of camera projection and extrinsic pose. Port of
Camera. - Camera
Extrinsic - Camera position and orientation (the view matrix). Port of
CameraExtrinsic. - Orthographic
- Orthographic projection with optional aspect-ratio preservation. Port of
transform.Orthographic. - Perspective
- Perspective projection by field-of-view + aspect. Port of
transform.Perspective.
Enums§
- Camera
Direction - Rotation direction relative to the image plane, for
CameraExtrinsic::orbitandCameraExtrinsic::rotate. Mirrors silx’s'up'/'down'/'left'/'right'. - Camera
Face - Pre-defined camera orientations, for
CameraExtrinsic::reset. Mirrors_RESET_CAMERA_ORIENTATIONS. - Camera
Move - Translation direction relative to the image plane, for
CameraExtrinsic::move_to. Mirrors silx’s sixmovedirections. - Projection
- Camera intrinsic: either perspective or orthographic projection.