#[repr(C)]pub struct ParametricPlane<T>where
T: Scalar,{
pub center: Vector3<T>,
pub x_axis: Vector3<T>,
pub y_axis: Vector3<T>,
}
Expand description
Parametric Plane
Fields§
§center: Vector3<T>
§x_axis: Vector3<T>
§y_axis: Vector3<T>
Implementations§
Source§impl<T> ParametricPlane<T>where
T: FloatScalar,
impl<T> ParametricPlane<T>where
T: FloatScalar,
pub fn new( center: &Vector3<T>, x_axis: &Vector3<T>, y_axis: &Vector3<T>, ) -> ParametricPlane<T>
pub fn plane(&self) -> Plane<T>
pub fn normal(&self) -> Vector3<T>
pub fn intersect_ray(&self, r: &Ray<T, Vector3<T>>) -> Option<Vector3<T>>
pub fn intersect_line( &self, line: &Line<T, Vector3<T>>, epsilon: T, ) -> Option<(T, Vector3<T>)>
pub fn project(&self, v: &Vector3<T>) -> Vector2<T>
Trait Implementations§
Source§impl<T> Clone for ParametricPlane<T>
impl<T> Clone for ParametricPlane<T>
Source§fn clone(&self) -> ParametricPlane<T>
fn clone(&self) -> ParametricPlane<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T> Default for ParametricPlane<T>
impl<T> Default for ParametricPlane<T>
Source§fn default() -> ParametricPlane<T>
fn default() -> ParametricPlane<T>
Returns the “default value” for a type. Read more
impl<T> Copy for ParametricPlane<T>
Auto Trait Implementations§
impl<T> Freeze for ParametricPlane<T>where
T: Freeze,
impl<T> RefUnwindSafe for ParametricPlane<T>where
T: RefUnwindSafe,
impl<T> Send for ParametricPlane<T>where
T: Send,
impl<T> Sync for ParametricPlane<T>where
T: Sync,
impl<T> Unpin for ParametricPlane<T>where
T: Unpin,
impl<T> UnwindSafe for ParametricPlane<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more