$$ \gdef\pd#1#2{\frac{\partial #1}{\partial #2}} \gdef\d#1{\, \mathrm{d}#1} \gdef\dx{\d{x}} \gdef\tr#1{\operatorname{tr} (#1)} $$ $$ \gdef\norm#1{\left \lVert #1 \right\rVert} \gdef\seminorm#1{| #1 |} $$ $$ \gdef\vec#1{\mathbf{\boldsymbol{#1}}} \gdef\dvec#1{\bar{\vec #1}} $$

Type Alias fenris::geometry::Line3d

source ·
pub type Line3d<T> = Line<T, Const<3>>;

Aliased Type§

struct Line3d<T> { /* private fields */ }

Implementations§

source§

impl<T, D> Line<T, D>where T: Scalar, D: DimName, DefaultAllocator: Allocator<T, D, Const<1>>,

source

pub fn from_point_and_dir( point: OPoint<T, D>, dir: Matrix<T, D, Const<1>, <DefaultAllocator as Allocator<T, D, Const<1>>>::Buffer> ) -> Line<T, D>

source

pub fn point(&self) -> &OPoint<T, D>

source

pub fn dir( &self ) -> &Matrix<T, D, Const<1>, <DefaultAllocator as Allocator<T, D, Const<1>>>::Buffer>

source§

impl<T, D> Line<T, D>where T: Real, D: DimName, DefaultAllocator: Allocator<T, D, Const<1>>,

source

pub fn tangent( &self ) -> Matrix<T, D, Const<1>, <DefaultAllocator as Allocator<T, D, Const<1>>>::Buffer>

A normalized vector tangent to the line.

source

pub fn from_point_through_point( point: OPoint<T, D>, through: &OPoint<T, D> ) -> Line<T, D>

source

pub fn project_point_parametric(&self, point: &OPoint<T, D>) -> T

Computes the projection of the given point onto the line, representing the point in parametric form.

source

pub fn project_point(&self, point: &OPoint<T, D>) -> OPoint<T, D>

Computes the projection of the given point onto the line.

source

pub fn point_from_parameter(&self, t: T) -> OPoint<T, D>

source§

impl<T> Line<T, Const<3>>where T: Real,

source

pub fn intersect_plane_parametric(&self, plane: &Plane<T>) -> Option<T>

Trait Implementations§

source§

impl<T, D> Clone for Line<T, D>where T: Clone + Scalar, D: Clone + DimName, DefaultAllocator: Allocator<T, D, Const<1>>,

source§

fn clone(&self) -> Line<T, D>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T, D> Debug for Line<T, D>where T: Debug + Scalar, D: Debug + DimName, DefaultAllocator: Allocator<T, D, Const<1>>,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more