pub struct CurveSample {
pub position: Vec3,
pub tangent: Vec3,
pub segment: u32,
pub parameter: f32,
}Expand description
One sampled point and unit tangent along a spline.
Fields§
§position: Vec3Evaluated position.
tangent: Vec3Unit direction of increasing curve parameter.
segment: u32Source control-point interval.
parameter: f32Local parameter within the source interval.
Trait Implementations§
Source§impl Clone for CurveSample
impl Clone for CurveSample
impl Copy for CurveSample
Source§impl Debug for CurveSample
impl Debug for CurveSample
Source§impl PartialEq for CurveSample
impl PartialEq for CurveSample
impl StructuralPartialEq for CurveSample
Auto Trait Implementations§
impl Freeze for CurveSample
impl RefUnwindSafe for CurveSample
impl Send for CurveSample
impl Sync for CurveSample
impl Unpin for CurveSample
impl UnsafeUnpin for CurveSample
impl UnwindSafe for CurveSample
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
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> ⓘ
Converts
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> ⓘ
Converts
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 more