[−][src]Type Definition building_blocks_core::point3::Point3
type Point3<T> = PointN<[T; 3]>;
A 3-dimensional point with scalar type T
.
Implementations
impl<T> Point3<T>
[src]
pub fn x_mut(&mut self) -> &mut T
[src]
pub fn y_mut(&mut self) -> &mut T
[src]
pub fn z_mut(&mut self) -> &mut T
[src]
impl<T> Point3<T> where
T: Copy,
[src]
T: Copy,
pub fn x(&self) -> T
[src]
pub fn y(&self) -> T
[src]
pub fn z(&self) -> T
[src]
pub fn xy(&self) -> Point2<T>
[src]
pub fn yx(&self) -> Point2<T>
[src]
pub fn yz(&self) -> Point2<T>
[src]
pub fn zy(&self) -> Point2<T>
[src]
pub fn zx(&self) -> Point2<T>
[src]
pub fn xz(&self) -> Point2<T>
[src]
pub fn yzx(&self) -> Point3<T>
[src]
pub fn zxy(&self) -> Point3<T>
[src]
pub fn zyx(&self) -> Point3<T>
[src]
impl<T> Point3<T> where
T: Copy + Mul<Output = T> + Sub<Output = T>,
[src]
T: Copy + Mul<Output = T> + Sub<Output = T>,
impl<T> Point3<T> where
T: Copy + Integer,
[src]
T: Copy + Integer,
pub fn vector_div_floor(&self, rhs: &Self) -> Self
[src]
pub fn scalar_div_floor(&self, rhs: T) -> Self
[src]
Trait Implementations
impl<T> Bounded for Point3<T> where
T: Bounded,
[src]
T: Bounded,
impl<T> Distance for Point3<T> where
T: Copy + Signed + Add<Output = T> + Pow<u16, Output = T>,
Point3<T>: Point<Scalar = T>,
[src]
T: Copy + Signed + Add<Output = T> + Pow<u16, Output = T>,
Point3<T>: Point<Scalar = T>,
fn l1_distance(&self, other: &Self) -> Self::Scalar
[src]
fn l2_distance_squared(&self, other: &Self) -> Self::Scalar
[src]
impl<T> DotProduct for Point3<T> where
T: Copy + Add<Output = T> + Mul<Output = T>,
[src]
T: Copy + Add<Output = T> + Mul<Output = T>,
impl<T> Mul<PointN<[T; 3]>> for Point3<T> where
T: Copy + Mul<Output = T>,
[src]
T: Copy + Mul<Output = T>,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self
[src]
impl<T> Mul<T> for Point3<T> where
T: Copy + Mul<Output = T>,
[src]
T: Copy + Mul<Output = T>,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: T) -> Self
[src]
impl<T> Ones for Point3<T> where
T: SmallOne,
[src]
T: SmallOne,
impl<T> PartialOrd<PointN<[T; 3]>> for Point3<T> where
T: Copy + PartialOrd,
[src]
T: Copy + PartialOrd,
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
fn lt(&self, other: &Self) -> bool
[src]
fn gt(&self, other: &Self) -> bool
[src]
fn le(&self, other: &Self) -> bool
[src]
fn ge(&self, other: &Self) -> bool
[src]
impl<T> SmallZero for Point3<T> where
T: SmallZero,
[src]
T: SmallZero,