[][src]Struct screen_13::math::Plane

pub struct Plane { /* fields omitted */ }

A flat two-dimensional surface that extends infinitely far.

Implementations

impl Plane[src]

pub fn new(normal: Vec3, distance: f32) -> Self[src]

Constructs a new plane from the given normal and distance from the origin.

pub const fn distance(&self) -> f32[src]

Returns the distance in the direction of normal from the origin to this plane.

pub const fn normal(&self) -> Vec3[src]

Returns the orientation of this plane.

Trait Implementations

impl Clone for Plane[src]

impl Copy for Plane[src]

impl Debug for Plane[src]

impl<'de> Deserialize<'de> for Plane[src]

impl PartialEq<Plane> for Plane[src]

impl Serialize for Plane[src]

impl StructuralPartialEq for Plane[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.