CameraImpl
trait · ferroui-media3d · v0.5.0
trait CameraImpl: FerroObjectImpl + $crate::Upcast<Camera>
The overridable members introduced by the class.
Members
get_view_matrix
fn get_view_matrix(this: &Self) -> Matrix3D
The matrix from the world to the coordinates of the camera, its transform included
(WPF's GetViewMatrix). Not finite when the transform has no inverse: the camera
then shows nothing.
get_projection_matrix
fn get_projection_matrix(this: &Self, aspect_ratio: f64, near_plane_distance: f64, far_plane_distance: f64) -> Matrix3D
The matrix from the coordinates of the camera to the clip space for the aspect ratio
(width over height) and the near and far planes (WPF's GetProjectionMatrix, with
the planes given, as the snapshot fits them to the scene). A matrix camera ignores
the planes.
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.