Struct geomprim2d::Point [−][src]
pub struct Point<S> { pub x: S, pub y: S, }
Fields
x: S
y: S
Methods
impl<S: Scalar> Point<S>
[src]
impl<S: Scalar> Point<S>
pub fn new(x: S, y: S) -> Self
[src]
pub fn new(x: S, y: S) -> Self
pub fn origin() -> Self
[src]
pub fn origin() -> Self
pub fn from_point(p: &Point<S>) -> Self
[src]
pub fn from_point(p: &Point<S>) -> Self
pub fn translate(&mut self, dx: S, dy: S)
[src]
pub fn translate(&mut self, dx: S, dy: S)
pub fn translate_x(&mut self, dx: S)
[src]
pub fn translate_x(&mut self, dx: S)
pub fn translate_y(&mut self, dy: S)
[src]
pub fn translate_y(&mut self, dy: S)
Trait Implementations
impl<S: Debug> Debug for Point<S>
[src]
impl<S: Debug> Debug for Point<S>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<S: Clone> Clone for Point<S>
[src]
impl<S: Clone> Clone for Point<S>
fn clone(&self) -> Point<S>
[src]
fn clone(&self) -> Point<S>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<S: Copy> Copy for Point<S>
[src]
impl<S: Copy> Copy for Point<S>
impl<S: Scalar> Send for Point<S>
[src]
impl<S: Scalar> Send for Point<S>