[−][src]Struct rs_math3d::primitives::Plane
Plane
Implementations
impl<T: Scalar> Plane<T>
[src]
pub fn new(n: &Vector3<T>, p: &Vector3<T>) -> Self
[src]
pub fn normal(&self) -> Vector3<T>
[src]
pub fn constant(&self) -> T
[src]
pub fn fromTri(v0: &Vector3<T>, v1: &Vector3<T>, v2: &Vector3<T>) -> Self
[src]
pub fn fromQuad(
v0: &Vector3<T>,
v1: &Vector3<T>,
v2: &Vector3<T>,
v3: &Vector3<T>
) -> Self
[src]
v0: &Vector3<T>,
v1: &Vector3<T>,
v2: &Vector3<T>,
v3: &Vector3<T>
) -> Self
pub fn intersectRay(&self, r: &Ray<T, Vector3<T>>) -> Option<Vector3<T>>
[src]
Trait Implementations
impl<T: Clone + Scalar> Clone for Plane<T>
[src]
fn clone(&self) -> Plane<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Copy + Scalar> Copy for Plane<T>
[src]
impl<T: FloatScalar> Distance<T, Vector3<T>> for Plane<T>
[src]
Distance Queries
Auto Trait Implementations
impl<T> Send for Plane<T> where
T: Send,
T: Send,
impl<T> Sync for Plane<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Plane<T> where
T: Unpin,
T: Unpin,
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, 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>,