Struct parrot::geom::Point
[−]
[src]
pub struct Point<T: Number>(pub T, pub T);
Methods
impl<T: Number> Point<T>
[src]
fn distance_to(self, other: Point<T>) -> T
Trait Implementations
impl<T: Debug + Number> Debug for Point<T>
[src]
impl<T: Copy + Number> Copy for Point<T>
[src]
impl<T: Clone + Number> Clone for Point<T>
[src]
fn clone(&self) -> Point<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<T: PartialEq + Number> PartialEq for Point<T>
[src]
fn eq(&self, __arg_0: &Point<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Point<T>) -> bool
This method tests for !=
.
impl<T: PartialOrd + Number> PartialOrd for Point<T>
[src]
fn partial_cmp(&self, __arg_0: &Point<T>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Point<T>) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Point<T>) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Point<T>) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Point<T>) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<T: Number> Distance<Point<T>, T> for Point<T>
[src]
fn distance_squared(self, other: Point<T>) -> T
fn distance(self, other: T) -> N where
Self: Sized,
Self: Sized,
impl<T: Number> Distance<LineSegment<T>, T> for Point<T>
[src]
fn distance_squared(self, LineSegment: LineSegment<T>) -> T
fn distance(self, other: T) -> N where
Self: Sized,
Self: Sized,
impl<'a, T: Number> Distance<&'a Poly<T>, T> for Point<T>
[src]
fn distance_squared(self, polygon: &Poly<T>) -> T
fn distance(self, other: T) -> N where
Self: Sized,
Self: Sized,
impl<T: Number> Bounded<T> for Point<T>
[src]
impl<T: Number> Sub for Point<T>
[src]
type Output = Vector<T>
The resulting type after applying the -
operator
fn sub(self, Point: Point<T>) -> Vector<T>
The method for the -
operator
impl<T: Number> Add<Vector<T>> for Point<T>
[src]
type Output = Point<T>
The resulting type after applying the +
operator
fn add(self, Vector: Vector<T>) -> Point<T>
The method for the +
operator
impl<T: Number> Sub<Vector<T>> for Point<T>
[src]
type Output = Point<T>
The resulting type after applying the -
operator
fn sub(self, Vector: Vector<T>) -> Point<T>
The method for the -
operator