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