pub struct F2 {
pub x: F,
pub y: F,
}
Expand description
F2
Fields§
§x: F
§y: F
Implementations§
Source§impl F2
impl F2
pub fn from(v: F2) -> Self
pub fn zeros() -> Self
pub fn new_x(x: F) -> Self
pub fn new(x: F, y: F) -> Self
pub fn get_x(&mut self) -> F
pub fn set_x(&mut self, new_val: F)
pub fn get_y(&mut self) -> F
pub fn set_y(&mut self, new_val: F)
pub fn dot(&self, other: &F2) -> F
pub fn mult_f(&self, other: &F) -> F2
pub fn max_f(&self, other: &F) -> F2
pub fn xyy(&self) -> F3
pub fn yyx(&self) -> F3
pub fn yxy(&self) -> F3
pub fn xxx(&self) -> F3
Trait Implementations§
impl Copy for F2
impl StructuralPartialEq for F2
Auto Trait Implementations§
impl Freeze for F2
impl RefUnwindSafe for F2
impl Send for F2
impl Sync for F2
impl Unpin for F2
impl UnwindSafe for F2
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Variant for T
impl<T> Variant for T
Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant
trait object to &mut dyn Any
.Source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant
trait object to Box<dyn Any>
.