#[repr(C)]pub struct Vector4f {
pub x: f32,
pub y: f32,
pub z: f32,
pub w: f32,
}Fields§
§x: f32§y: f32§z: f32§w: f32Implementations§
Source§impl Vector4f
impl Vector4f
pub fn normalize(&mut self)
pub fn normalized(self) -> Vector4f
pub fn lerp(start: Vector4f, end: Vector4f, t: f32) -> Vector4f
pub fn tcb_in_tangent( prev: Vector4f, current: Vector4f, next: Vector4f, tension: f32, continuity: f32, bias: f32, ) -> Vector4f
pub fn tcb_out_tangent( prev: Vector4f, current: Vector4f, next: Vector4f, tension: f32, continuity: f32, bias: f32, ) -> Vector4f
pub fn bezier_lerp( start: Vector4f, outtan: Vector4f, intan: Vector4f, end: Vector4f, t: f32, ) -> Vector4f
pub fn hermite_lerp( prev: Vector4f, start: Vector4f, end: Vector4f, next: Vector4f, t: f32, ) -> Vector4f
Trait Implementations§
impl Copy for Vector4f
impl StructuralPartialEq for Vector4f
Auto Trait Implementations§
impl Freeze for Vector4f
impl RefUnwindSafe for Vector4f
impl Send for Vector4f
impl Sync for Vector4f
impl Unpin for Vector4f
impl UnsafeUnpin for Vector4f
impl UnwindSafe for Vector4f
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