pub struct ViewParameters {
pub eye: Vector<f32>,
pub focus: Vector<f32>,
pub up: Vector<f32>,
pub field_of_view: f32,
pub near_plane: f32,
pub far_plane: f32,
}Expand description
Everything needed to build a view-projection matrix.
Fields§
§eye: Vector<f32>Camera position.
focus: Vector<f32>Point the camera looks at.
up: Vector<f32>Up direction (world +Y).
field_of_view: f32Vertical field of view in radians.
near_plane: f32Near clip plane.
far_plane: f32Far clip plane.
Trait Implementations§
Source§impl Clone for ViewParameters
impl Clone for ViewParameters
Source§fn clone(&self) -> ViewParameters
fn clone(&self) -> ViewParameters
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ViewParameters
Auto Trait Implementations§
impl Freeze for ViewParameters
impl RefUnwindSafe for ViewParameters
impl Send for ViewParameters
impl Sync for ViewParameters
impl Unpin for ViewParameters
impl UnsafeUnpin for ViewParameters
impl UnwindSafe for ViewParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more