Struct shapes::Point [] [src]

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

A point in the Cartesian plane.

Fields

x: Scalar

The x coordinate.

y: Scalar

The y coordinate.

Trait Implementations

impl Debug for Point
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Copy for Point
[src]

impl Clone for Point
[src]

fn clone(&self) -> Point

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 Add<Scalar> for Point
[src]

type Output = Point

The resulting type after applying the + operator

fn add(self, s: Scalar) -> Point

The method for the + operator

impl<T: Into<Point>> Add<T> for Point
[src]

type Output = Point

The resulting type after applying the + operator

fn add(self, v: T) -> Point

The method for the + operator

impl From<Vec2d> for Point
[src]

fn from(v: Vec2d) -> Point

Performs the conversion.

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

fn from((x, y): (Scalar, Scalar)) -> Point

Performs the conversion.

impl Sub<Scalar> for Point
[src]

type Output = Point

The resulting type after applying the - operator

fn sub(self, s: Scalar) -> Point

The method for the - operator

impl<T: Into<Point>> Sub<T> for Point
[src]

type Output = Point

The resulting type after applying the - operator

fn sub(self, v: T) -> Point

The method for the - operator