Struct shapes::Point [] [src]

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

A point in the Cartesian plane.

Fields

The x coordinate.

The y coordinate.

Trait Implementations

impl Clone for Point
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Point
[src]

impl Debug for Point
[src]

Formats the value using the given formatter.

impl Add<Scalar> for Point
[src]

The resulting type after applying the + operator

The method for the + operator

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

The resulting type after applying the + operator

The method for the + operator

impl From<Vec2d> for Point
[src]

Performs the conversion.

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

Performs the conversion.

impl Sub<Scalar> for Point
[src]

The resulting type after applying the - operator

The method for the - operator

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

The resulting type after applying the - operator

The method for the - operator