[][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]

pub fn x_mut(&mut self) -> &mut T[src]

pub fn y_mut(&mut self) -> &mut T[src]

impl<T> Point2<T> where
    T: Copy
[src]

pub fn x(&self) -> T[src]

pub fn y(&self) -> T[src]

pub fn yx(&self) -> Self[src]

impl<T> Point2<T> where
    T: Copy + Integer
[src]

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]

type Output = Self

The resulting type after applying the + operator.

impl<T> Bounded for Point2<T> where
    T: Bounded
[src]

impl<T> Distance for Point2<T> where
    T: Copy + Signed + Add<Output = T> + Pow<u16, Output = T>,
    Point2<T>: Point<Scalar = T>, 
[src]

impl<T> DotProduct for Point2<T> where
    T: Copy + Add<Output = T> + Mul<Output = T>, 
[src]

type Scalar = T

impl<T> Mul<PointN<[T; 2]>> for Point2<T> where
    T: Copy + Mul<Output = T>, 
[src]

type Output = Self

The resulting type after applying the * operator.

impl<T> Mul<T> for Point2<T> where
    T: Copy + Mul<Output = T>, 
[src]

type Output = Self

The resulting type after applying the * operator.

impl<T> Ones for Point2<T> where
    T: SmallOne
[src]

impl<T> PartialOrd<PointN<[T; 2]>> for Point2<T> where
    T: Copy + PartialOrd
[src]

impl<T> SmallZero for Point2<T> where
    T: SmallZero
[src]

impl<T> Sub<PointN<[T; 2]>> for Point2<T> where
    T: Copy + SubAssign
[src]

type Output = Self

The resulting type after applying the - operator.