pub struct Camera3D { /* private fields */ }Implementations§
Source§impl Camera3D
impl Camera3D
pub fn new() -> Self
pub fn move_pos(&mut self, delta_v: &Vector3D)
pub fn move_psi(&mut self, delta_psi: f64)
pub fn move_theta(&mut self, delta_theta: f64)
pub fn move_phi(&mut self, delta_phi: f64)
pub fn adjust_fov(&mut self, delta_fov_x: f64, delta_fov_y: f64)
pub fn rotation_matrix(&self) -> Rotation3D
pub fn position(&self) -> &Vector3D
pub fn theta(&self) -> f64
pub fn phi(&self) -> f64
pub fn psi(&self) -> f64
pub fn fov_x(&self) -> f64
pub fn fov_y(&self) -> f64
pub fn distance_min(&self) -> f64
pub fn distance_max(&self) -> f64
pub fn projection_matrix(&self) -> [[f32; 4]; 4]
pub fn view_matrix(&self) -> [[f32; 4]; 4]
Auto Trait Implementations§
impl Freeze for Camera3D
impl RefUnwindSafe for Camera3D
impl Send for Camera3D
impl Sync for Camera3D
impl Unpin for Camera3D
impl UnwindSafe for Camera3D
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