[−][src]Type Definition building_blocks_core::point2::Point2
type Point2<T> = PointN<[T; 2]>;
A 2-dimensional point with scalar type T
.
Implementations
impl<T> Point2<T>
[src]
impl<T> Point2<T> where
T: Copy,
[src]
T: Copy,
impl<T> Point2<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> Add<PointN<[T; 2]>> for Point2<T> where
T: Copy + AddAssign,
[src]
T: Copy + AddAssign,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output
[src]
impl<T> Bounded for Point2<T> where
T: Bounded,
[src]
T: Bounded,
impl<T> Distance for Point2<T> where
T: Copy + Signed + Add<Output = T> + Pow<u16, Output = T>,
Point2<T>: Point<Scalar = T>,
[src]
T: Copy + Signed + Add<Output = T> + Pow<u16, Output = T>,
Point2<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 Point2<T> where
T: Copy + Add<Output = T> + Mul<Output = T>,
[src]
T: Copy + Add<Output = T> + Mul<Output = T>,
impl<T> Mul<PointN<[T; 2]>> for Point2<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 Point2<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 Point2<T> where
T: SmallOne,
[src]
T: SmallOne,
impl<T> PartialOrd<PointN<[T; 2]>> for Point2<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 Point2<T> where
T: SmallZero,
[src]
T: SmallZero,
impl<T> Sub<PointN<[T; 2]>> for Point2<T> where
T: Copy + SubAssign,
[src]
T: Copy + SubAssign,