pub struct F3 {
pub x: F,
pub y: F,
pub z: F,
}
Expand description
F3
Fields§
§x: F
§y: F
§z: F
Implementations§
Source§impl F3
impl F3
pub fn from(v: F3) -> Self
pub fn zeros() -> Self
pub fn new_x(x: F) -> Self
pub fn new(x: F, y: F, z: F) -> Self
pub fn color(color: String) -> 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 get_z(&mut self) -> F
pub fn set_z(&mut self, new_val: F)
pub fn dot(&self, other: &F3) -> F
pub fn cross(&self, other: &F3) -> F3
pub fn mult_f(&self, other: &F) -> F3
pub fn div_f(&self, other: &F) -> F3
pub fn max_f(&self, other: &F) -> F3
pub fn to_linear(&mut self) -> F3
pub fn to_gamma(&mut self) -> F3
Trait Implementations§
Source§impl AddAssign for F3
impl AddAssign for F3
Source§fn add_assign(&mut self, other: F3)
fn add_assign(&mut self, other: F3)
Performs the
+=
operation. Read moreSource§impl DivAssign for F3
impl DivAssign for F3
Source§fn div_assign(&mut self, other: F3)
fn div_assign(&mut self, other: F3)
Performs the
/=
operation. Read moreSource§impl SubAssign for F3
impl SubAssign for F3
Source§fn sub_assign(&mut self, other: F3)
fn sub_assign(&mut self, other: F3)
Performs the
-=
operation. Read moreimpl Copy for F3
impl StructuralPartialEq for F3
Auto Trait Implementations§
impl Freeze for F3
impl RefUnwindSafe for F3
impl Send for F3
impl Sync for F3
impl Unpin for F3
impl UnwindSafe for F3
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>
.