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