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
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 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
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]
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
The method for the - operator