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>>,
impl<T, D> Line<T, D>where T: Scalar, D: DimName, DefaultAllocator: Allocator<T, D, Const<1>>,
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>
pub fn point(&self) -> &OPoint<T, D>
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>>,
impl<T, D> Line<T, D>where T: Real, D: DimName, DefaultAllocator: Allocator<T, D, Const<1>>,
sourcepub fn tangent(
&self
) -> Matrix<T, D, Const<1>, <DefaultAllocator as Allocator<T, D, Const<1>>>::Buffer>
pub fn tangent( &self ) -> Matrix<T, D, Const<1>, <DefaultAllocator as Allocator<T, D, Const<1>>>::Buffer>
A normalized vector tangent to the line.
pub fn from_point_through_point( point: OPoint<T, D>, through: &OPoint<T, D> ) -> Line<T, D>
sourcepub fn project_point_parametric(&self, point: &OPoint<T, D>) -> T
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.
sourcepub fn project_point(&self, point: &OPoint<T, D>) -> OPoint<T, D>
pub fn project_point(&self, point: &OPoint<T, D>) -> OPoint<T, D>
Computes the projection of the given point onto the line.