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 Clone for Point
[src]
fn clone(&self) -> Point
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Point
[src]
impl Debug for Point
[src]
impl Add<Scalar> for Point
[src]
type Output = Point
The resulting type after applying the +
operator.
fn add(self, s: Scalar) -> Point
[src]
Performs the +
operation.
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
[src]
Performs the +
operation.
impl From<Vec2d> for Point
[src]
impl From<(Scalar, Scalar)> for Point
[src]
impl Sub<Scalar> for Point
[src]
type Output = Point
The resulting type after applying the -
operator.
fn sub(self, s: Scalar) -> Point
[src]
Performs the -
operation.