[−][src]Struct screen_13::camera::Orthographic
A standard orthographic camera.
Implementations
impl Orthographic[src]
pub fn new<T: Into<CoordF>>(
eye: Vec3,
target: Vec3,
dims: T,
depth: Range<f32>
) -> Self[src]
eye: Vec3,
target: Vec3,
dims: T,
depth: Range<f32>
) -> Self
Constructs an Orthographic instance from the given values.
pub fn target(&self) -> Vec3[src]
Gets the position this camera is looking at.
pub fn set_eye(&mut self, eye: Vec3)[src]
Sets the position this camera is looking from.
pub fn set_target(&mut self, target: Vec3)[src]
Sets the camera target position.
Trait Implementations
impl Camera for Orthographic[src]
pub fn depth(&self) -> &Range<f32>[src]
pub fn eye(&self) -> Vec3[src]
pub fn overlaps_cone(&self, _c: Cone) -> bool[src]
pub fn overlaps_point(&self, _p: Vec3) -> bool[src]
pub fn overlaps_sphere(&self, _s: Sphere) -> bool[src]
pub fn project_point(&self, p: Vec3) -> Vec3[src]
pub fn projection(&self) -> Mat4[src]
pub fn unproject_point(&self, p: Vec3) -> Vec3[src]
pub fn view(&self) -> Mat4[src]
pub fn view_inv(&self) -> Mat4[src]
pub fn corners(&self) -> [Vec3; 8][src]
impl Clone for Orthographic[src]
pub fn clone(&self) -> Orthographic[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for Orthographic[src]
impl Send for Orthographic[src]
impl Sync for Orthographic[src]
impl Unpin for Orthographic[src]
impl UnwindSafe for Orthographic[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> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> Same<T> for T[src]
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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>,