pub struct FixVec {
pub x: FixFloat,
pub y: FixFloat,
}Fields§
§x: FixFloat§y: FixFloatImplementations§
Source§impl FixVec
impl FixVec
pub const ZERO: Self
pub fn is_zero(self) -> bool
pub fn new(x: i64, y: i64) -> Self
pub fn new_f64(x: f64, y: f64) -> Self
pub fn new_f32(x: f32, y: f32) -> Self
pub fn new_number(x: i64, y: i64) -> Self
pub fn new_point(point: IntPoint) -> Self
pub fn fix_sqr_length(self) -> FixFloat
pub fn fix_length(self) -> FixFloat
pub fn fix_normalize(self) -> Self
pub fn fix_safe_normalize(self) -> Self
pub fn fix_normalize_with_def_value(self, def: Self) -> Self
pub fn fix_dot_product(self, v: Self) -> FixFloat
pub fn fix_cross_product(self, v: Self) -> FixFloat
pub fn fix_cross_product_scalar(self, a: FixFloat) -> Self
pub fn fix_sqr_distance(self, v: Self) -> FixFloat
pub fn fix_distance(self, v: Self) -> FixFloat
pub fn half(self) -> FixVec
pub fn middle(self, v: Self) -> FixVec
pub fn sqr_length(self) -> i64
pub fn length(self) -> FixFloat
pub fn dot_product(self, v: Self) -> i64
pub fn cross_product(self, v: Self) -> i64
pub fn sqr_distance(self, v: Self) -> i64
Trait Implementations§
impl Copy for FixVec
impl Eq for FixVec
impl StructuralPartialEq for FixVec
Auto Trait Implementations§
impl Freeze for FixVec
impl RefUnwindSafe for FixVec
impl Send for FixVec
impl Sync for FixVec
impl Unpin for FixVec
impl UnsafeUnpin for FixVec
impl UnwindSafe for FixVec
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