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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Point
[src]

impl Debug for Point
[src]

[src]

Formats the value using the given formatter.

impl Add<Scalar> for Point
[src]

The resulting type after applying the + operator.

[src]

Performs the + operation.

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

The resulting type after applying the + operator.

[src]

Performs the + operation.

impl From<Vec2d> for Point
[src]

[src]

Performs the conversion.

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

[src]

Performs the conversion.

impl Sub<Scalar> for Point
[src]

The resulting type after applying the - operator.

[src]

Performs the - operation.

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

The resulting type after applying the - operator.

[src]

Performs the - operation.