Struct oxygen_quark::vector::vector3d::Vector3D
source · Fields§
§x: FractionThe x-coordinate of the vector
y: FractionThe y-coordinate of the vector
z: FractionThe z-coordinate of the vector
Implementations§
source§impl Vector3D
impl Vector3D
sourcepub fn component_product(self, other: Vector3D) -> Vector3D
pub fn component_product(self, other: Vector3D) -> Vector3D
Returns a new Vector3D containing the product of every component in a Vector3D with the corresponding component in another one.
sourcepub fn dot_product(self, other: Vector3D) -> Fraction
pub fn dot_product(self, other: Vector3D) -> Fraction
Returns a Fraction that is the result of the dot-product between two Vector3Ds.
sourcepub fn cross_product(self, other: Vector3D) -> Vector3D
pub fn cross_product(self, other: Vector3D) -> Vector3D
Returns a Vector3D that is the cross-product between two other Vector3Ds.
Trait Implementations§
source§impl AddAssign<Vector3D> for Vector3D
impl AddAssign<Vector3D> for Vector3D
source§fn add_assign(&mut self, other: Vector3D)
fn add_assign(&mut self, other: Vector3D)
Performs the
+= operation. Read moresource§impl Ord for Vector3D
impl Ord for Vector3D
source§impl PartialOrd<Vector3D> for Vector3D
impl PartialOrd<Vector3D> for Vector3D
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl RemAssign<Vector3D> for Vector3D
impl RemAssign<Vector3D> for Vector3D
source§fn rem_assign(&mut self, other: Vector3D)
fn rem_assign(&mut self, other: Vector3D)
Performs the
%= operation. Read moresource§impl SubAssign<Vector3D> for Vector3D
impl SubAssign<Vector3D> for Vector3D
source§fn sub_assign(&mut self, other: Vector3D)
fn sub_assign(&mut self, other: Vector3D)
Performs the
-= operation. Read more