Struct dotrix_core::camera::Camera [−][src]
pub struct Camera {
pub distance: f32,
pub y_angle: f32,
pub xz_angle: f32,
pub target: Point3,
pub view: Option<Mat4>,
pub fov: f32,
pub near_plane: f32,
pub far_plane: f32,
pub proj: Option<Mat4>,
}
Expand description
Camera management service
Fields
distance: f32
Distance between the camera and a target
y_angle: f32
Angle around the Y axis
xz_angle: f32
Angle in horizontal plane
target: Point3
Camera target coordinate
view: Option<Mat4>
View matri
fov: f32
Field of View
near_plane: f32
Near plane
far_plane: f32
Far plane
proj: Option<Mat4>
Projection matrix
Implementations
Returns view matrix with zero transition
It is useful for sky boxes and domes
Returns view matrix
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Camera
impl UnwindSafe for Camera
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more