Struct siege_math::vector::point::Point3
[−]
[src]
#[repr(C)]pub struct Point3<F>(pub Vec3<F>);
Point vector in 3-dimensions
Methods
impl<F: FullFloat> Point3<F>
[src]
Methods from Deref<Target = Vec3<F>>
pub fn truncate_n(&self, n: usize) -> Vec2<F>
[src]
pub fn truncate_x(&self) -> Vec2<F>
[src]
pub fn truncate_y(&self) -> Vec2<F>
[src]
pub fn truncate_z(&self) -> Vec2<F>
[src]
pub fn squared_magnitude(&self) -> F
[src]
pub fn project_onto(&self, axis: Vec3<F>) -> Vec3<F>
[src]
pub fn reject_onto(&self, axis: Vec3<F>) -> Vec3<F>
[src]
pub fn triple_product(&self, b: Vec3<F>, c: Vec3<F>) -> F
[src]
Trait Implementations
impl<F: Debug> Debug for Point3<F>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<F: Clone> Clone for Point3<F>
[src]
fn clone(&self) -> Point3<F>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<F: Copy> Copy for Point3<F>
[src]
impl<F: PartialEq> PartialEq for Point3<F>
[src]
fn eq(&self, __arg_0: &Point3<F>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Point3<F>) -> bool
[src]
This method tests for !=
.
impl<F: Eq> Eq for Point3<F>
[src]
impl<F: Hash> Hash for Point3<F>
[src]
fn hash<__HF: Hasher>(&self, __arg_0: &mut __HF)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl<F: FullFloat> Deref for Point3<F>
[src]
type Target = Vec3<F>
The resulting type after dereferencing.
fn deref(&self) -> &Vec3<F>
[src]
Dereferences the value.
impl<F: FullFloat> From<Point3<F>> for Vec3<F>
[src]
impl<F: FullFloat> From<Point3<F>> for Vec4<F>
[src]
impl<F: FullFloat> From<Vec3<F>> for Point3<F>
[src]
impl<F: FullFloat> From<Vec4<F>> for Point3<F>
[src]
impl<F: FullFloat> Add<Vec3<F>> for Point3<F>
[src]
type Output = Point3<F>
The resulting type after applying the +
operator.
fn add(self, other: Vec3<F>) -> Point3<F>
[src]
Performs the +
operation.
impl<F: FullFloat> Sub<Vec3<F>> for Point3<F>
[src]
type Output = Point3<F>
The resulting type after applying the -
operator.
fn sub(self, other: Vec3<F>) -> Point3<F>
[src]
Performs the -
operation.
impl<F: FullFloat> Sub<Point3<F>> for Point3<F>
[src]
type Output = Vec3<F>
The resulting type after applying the -
operator.
fn sub(self, other: Point3<F>) -> Vec3<F>
[src]
Performs the -
operation.
impl<F: FullFloat> Neg for Point3<F>
[src]
type Output = Point3<F>
The resulting type after applying the -
operator.
fn neg(self) -> Point3<F>
[src]
Performs the unary -
operation.
impl From<Point3<f64>> for Point3<f32>
[src]
impl From<Point3<f32>> for Point3<f64>
[src]
impl<F: FullFloat> ApproxEq for Point3<F>
[src]
type Flt = F
fn approx_eq(
&self,
other: &Self,
epsilon: <F as ApproxEq>::Flt,
ulps: <<F as ApproxEq>::Flt as Ulps>::U
) -> bool
[src]
&self,
other: &Self,
epsilon: <F as ApproxEq>::Flt,
ulps: <<F as ApproxEq>::Flt as Ulps>::U
) -> bool
This method tests for self
and other
values to be approximately equal using two methods: epsilon and ulps. If the values differ by less than the given epsilon, they will be considered equal. If the values differ by more than epsilon, but by less than the given ulps, they will also be considered equal. Otherwise they are unequal. Read more
fn approx_ne(
&self,
other: &Self,
epsilon: Self::Flt,
ulps: <Self::Flt as Ulps>::U
) -> bool
[src]
&self,
other: &Self,
epsilon: Self::Flt,
ulps: <Self::Flt as Ulps>::U
) -> bool
This method tests for self
and other
values to be not approximately equal using two methods: epsilon and ulps. If the values differ by less than the given epsilon, they will be considered equal. If the values differ by more than epsilon, but by less than the given ulps, they will also be considered equal. Otherwise they are unequal. Read more