[−][src]Struct frustum::Frustum
Frustum struct
Fields
origin: Point3<WorldSpace>
target: Point3<WorldSpace>
fovy: f64
ncp: f64
fcp: f64
width: usize
height: usize
Methods
impl Frustum
[src]
pub fn view(&self) -> Transform3<WorldSpace, CameraSpace>
[src]
Generates the view matrix. Using left hand.
pub fn projection(&self) -> Transform3<CameraSpace, ViewSpace>
[src]
Generates the perspective projection matrix. Using left hand with zero to one (y flip).
pub fn screen(&self) -> Transform3<ViewSpace, ScreenSpace>
[src]
Generates the screen matrix.
pub fn ray_from_ncp(
&self,
screen_coords: &Point2<ScreenSpace>
) -> Option<(Point3<WorldSpace>, Vec3<WorldSpace>)>
[src]
&self,
screen_coords: &Point2<ScreenSpace>
) -> Option<(Point3<WorldSpace>, Vec3<WorldSpace>)>
Calculate for a given screen space coordinate the corresponding ray origin and direction on the near clipping plane.
pub fn distance(&self, position: &Point3<WorldSpace>) -> f64
[src]
pub fn iter(&self) -> FrustumIterator
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Frustum
impl Send for Frustum
impl Sync for Frustum
impl Unpin for Frustum
impl UnwindSafe for Frustum
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,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,