#[repr(C)]pub struct msdfgen_Vector2 {
pub x: f64,
pub y: f64,
}Expand description
A 2-dimensional euclidean vector with double precision. Implementation based on the Vector2 template from Artery Engine. @author Viktor Chlumsky
Fields§
§x: f64§y: f64Implementations§
Source§impl msdfgen_Vector2
impl msdfgen_Vector2
pub unsafe fn reset(&mut self)
pub unsafe fn set(&mut self, x: f64, y: f64)
pub unsafe fn length(&self) -> f64
pub unsafe fn direction(&self) -> f64
pub unsafe fn normalize(&self, allowZero: bool) -> msdfgen_Vector2
pub unsafe fn getOrthogonal(&self, polarity: bool) -> msdfgen_Vector2
pub unsafe fn getOrthonormal( &self, polarity: bool, allowZero: bool, ) -> msdfgen_Vector2
pub unsafe fn project( &self, vector: *const msdfgen_Vector2, positive: bool, ) -> msdfgen_Vector2
pub unsafe fn new(val: f64) -> Self
pub unsafe fn new1(x: f64, y: f64) -> Self
Trait Implementations§
Source§impl Clone for msdfgen_Vector2
impl Clone for msdfgen_Vector2
Source§fn clone(&self) -> msdfgen_Vector2
fn clone(&self) -> msdfgen_Vector2
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 moreSource§impl Debug for msdfgen_Vector2
impl Debug for msdfgen_Vector2
impl Copy for msdfgen_Vector2
Auto Trait Implementations§
impl Freeze for msdfgen_Vector2
impl RefUnwindSafe for msdfgen_Vector2
impl Send for msdfgen_Vector2
impl Sync for msdfgen_Vector2
impl Unpin for msdfgen_Vector2
impl UnwindSafe for msdfgen_Vector2
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