[][src]Struct pizarra::point::Point

pub struct Point {
    pub x: f64,
    pub y: f64,
}

Fields

x: f64y: f64

Implementations

impl Point[src]

pub fn new(x: f64, y: f64) -> Point[src]

pub fn to_a(self) -> [f64; 2][src]

pub fn magnitude(&self) -> f64[src]

pub fn distance(&self, other: Point) -> f64[src]

pub fn abs(self) -> Point[src]

pub fn min(self, other: Point) -> Point[src]

pub fn max(self, other: Point) -> Point[src]

pub fn dot(self, other: Point) -> f64[src]

pub fn is_nan(&self) -> bool[src]

Trait Implementations

impl Add<Point> for Point[src]

type Output = Point

The resulting type after applying the + operator.

impl AddAssign<Point> for Point[src]

impl Clone for Point[src]

impl Copy for Point[src]

impl Debug for Point[src]

impl Display for Point[src]

impl Div<f64> for Point[src]

type Output = Point

The resulting type after applying the / operator.

impl From<[f64; 2]> for Point[src]

impl From<(f64, f64)> for Point[src]

impl FromStr for Point[src]

type Err = Error

The associated error which can be returned from parsing.

impl Mul<f64> for Point[src]

type Output = Point

The resulting type after applying the * operator.

impl PartialEq<Point> for Point[src]

impl StructuralPartialEq for Point[src]

impl Sub<Point> for Point[src]

type Output = Point

The resulting type after applying the - operator.

impl SubAssign<Point> for Point[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.