pub struct SplineSample {
pub position: Vec3,
pub forward: Vec3,
pub right: Vec3,
pub up: Vec3,
pub twist: f32,
pub t: f32,
}Expand description
A sampled point along a spline with computed basis vectors.
Fields§
§position: Vec3§forward: Vec3§right: Vec3§up: Vec3§twist: f32Twist in degrees (before application to right/up).
t: f32Parametric t in [0, 1) along the spline.
Trait Implementations§
Source§impl Clone for SplineSample
impl Clone for SplineSample
Source§fn clone(&self) -> SplineSample
fn clone(&self) -> SplineSample
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 moreAuto Trait Implementations§
impl Freeze for SplineSample
impl RefUnwindSafe for SplineSample
impl Send for SplineSample
impl Sync for SplineSample
impl Unpin for SplineSample
impl UnwindSafe for SplineSample
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