pub struct CurveParams<T>where
T: MyFloat,{
pub x: [T; 8],
pub y: [T; 8],
pub z: [T; 8],
}Expand description
A single hermite curve
Fields§
§x: [T; 8]§y: [T; 8]§z: [T; 8]Implementations§
Source§impl<T> CurveParams<T>where
T: MyFloat,
impl<T> CurveParams<T>where
T: MyFloat,
Source§impl<T> CurveParams<T>where
T: MyFloat,
impl<T> CurveParams<T>where
T: MyFloat,
pub fn curve_normal_at(&self, u: &T) -> MyVector3<T>
pub fn curve_direction_at(&self, u: &T) -> MyVector3<T>
pub fn curve_kappa_at(&self, u: &T) -> T
pub fn d0(&self, u: &T) -> MyVector3<T>
pub fn d1(&self, u: &T) -> MyVector3<T>
pub fn d2(&self, u: &T) -> MyVector3<T>
pub fn d3(&self, u: &T) -> MyVector3<T>
pub fn d4(&self, u: &T) -> MyVector3<T>
Sourcepub fn x_d0(&self, u: &T) -> T
pub fn x_d0(&self, u: &T) -> T
Evaluates the polynomial defined by the coefficients in $c at u,
using the $v coordinate
Sourcepub fn y_d0(&self, u: &T) -> T
pub fn y_d0(&self, u: &T) -> T
Evaluates the polynomial defined by the coefficients in $c at u,
using the $v coordinate
Sourcepub fn z_d0(&self, u: &T) -> T
pub fn z_d0(&self, u: &T) -> T
Evaluates the polynomial defined by the coefficients in $c at u,
using the $v coordinate
Sourcepub fn x_d1(&self, u: &T) -> T
pub fn x_d1(&self, u: &T) -> T
Evaluates the polynomial defined by the coefficients in $c at u,
using the $v coordinate
Sourcepub fn y_d1(&self, u: &T) -> T
pub fn y_d1(&self, u: &T) -> T
Evaluates the polynomial defined by the coefficients in $c at u,
using the $v coordinate
Sourcepub fn z_d1(&self, u: &T) -> T
pub fn z_d1(&self, u: &T) -> T
Evaluates the polynomial defined by the coefficients in $c at u,
using the $v coordinate
Sourcepub fn x_d2(&self, u: &T) -> T
pub fn x_d2(&self, u: &T) -> T
Evaluates the polynomial defined by the coefficients in $c at u,
using the $v coordinate
Sourcepub fn y_d2(&self, u: &T) -> T
pub fn y_d2(&self, u: &T) -> T
Evaluates the polynomial defined by the coefficients in $c at u,
using the $v coordinate
Sourcepub fn z_d2(&self, u: &T) -> T
pub fn z_d2(&self, u: &T) -> T
Evaluates the polynomial defined by the coefficients in $c at u,
using the $v coordinate
Sourcepub fn x_d3(&self, u: &T) -> T
pub fn x_d3(&self, u: &T) -> T
Evaluates the polynomial defined by the coefficients in $c at u,
using the $v coordinate
Sourcepub fn y_d3(&self, u: &T) -> T
pub fn y_d3(&self, u: &T) -> T
Evaluates the polynomial defined by the coefficients in $c at u,
using the $v coordinate
Sourcepub fn z_d3(&self, u: &T) -> T
pub fn z_d3(&self, u: &T) -> T
Evaluates the polynomial defined by the coefficients in $c at u,
using the $v coordinate
Sourcepub fn x_d4(&self, u: &T) -> T
pub fn x_d4(&self, u: &T) -> T
Evaluates the polynomial defined by the coefficients in $c at u,
using the $v coordinate
Trait Implementations§
Source§impl<T> Clone for CurveParams<T>
impl<T> Clone for CurveParams<T>
Source§fn clone(&self) -> CurveParams<T>
fn clone(&self) -> CurveParams<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<T> Freeze for CurveParams<T>where
T: Freeze,
impl<T> RefUnwindSafe for CurveParams<T>where
T: RefUnwindSafe,
impl<T> Send for CurveParams<T>
impl<T> Sync for CurveParams<T>
impl<T> Unpin for CurveParams<T>where
T: Unpin,
impl<T> UnwindSafe for CurveParams<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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.