[−][src]Struct three_d::core::camera::Camera
Implementations
impl Camera[src]
pub fn new_orthographic(
gl: &Gl,
position: Vec3,
target: Vec3,
up: Vec3,
width: f32,
height: f32,
depth: f32
) -> Camera[src]
gl: &Gl,
position: Vec3,
target: Vec3,
up: Vec3,
width: f32,
height: f32,
depth: f32
) -> Camera
pub fn new_perspective(
gl: &Gl,
position: Vec3,
target: Vec3,
up: Vec3,
fovy: Degrees,
aspect: f32,
z_near: f32,
z_far: f32
) -> Camera[src]
gl: &Gl,
position: Vec3,
target: Vec3,
up: Vec3,
fovy: Degrees,
aspect: f32,
z_near: f32,
z_far: f32
) -> Camera
pub fn set_perspective_projection(
&mut self,
fovy: Degrees,
aspect: f32,
z_near: f32,
z_far: f32
)[src]
&mut self,
fovy: Degrees,
aspect: f32,
z_near: f32,
z_far: f32
)
pub fn set_orthographic_projection(
&mut self,
width: f32,
height: f32,
depth: f32
)[src]
&mut self,
width: f32,
height: f32,
depth: f32
)
pub fn set_size(&mut self, width: f32, height: f32)[src]
pub fn set_view(&mut self, position: Vec3, target: Vec3, up: Vec3)[src]
pub fn mirror_in_xz_plane(&mut self)[src]
pub fn view_direction_at(&self, screen_coordinates: (f64, f64)) -> Vec3[src]
pub fn get_view(&self) -> &Mat4[src]
pub fn get_projection(&self) -> &Mat4[src]
pub fn position(&self) -> &Vec3[src]
pub fn target(&self) -> &Vec3[src]
pub fn up(&self) -> &Vec3[src]
pub fn matrix_buffer(&self) -> &UniformBuffer[src]
pub fn in_frustrum(&self, min: &Vec3, max: &Vec3) -> bool[src]
pub fn translate(&mut self, change: &Vec3)[src]
pub fn rotate(&mut self, xrel: f32, yrel: f32)[src]
pub fn zoom(&mut self, wheel: f32)[src]
Auto Trait Implementations
impl !RefUnwindSafe for Camera[src]
impl !Send for Camera[src]
impl !Sync for Camera[src]
impl Unpin for Camera[src]
impl UnwindSafe for Camera[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Erased for T
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,