Struct geomprim2d::Line [−][src]
Fields
s: Point<S>
t: Point<S>
Methods
impl<S: Scalar> Line<S>
[src]
impl<S: Scalar> Line<S>
pub fn new(s: Point<S>, t: Point<S>) -> Self
[src]
pub fn new(s: Point<S>, t: Point<S>) -> Self
pub fn from_line(l: Line<S>) -> Self
[src]
pub fn from_line(l: Line<S>) -> Self
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 + Scalar> Debug for Line<S>
[src]
impl<S: Debug + Scalar> Debug for Line<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 + Scalar> Clone for Line<S>
[src]
impl<S: Clone + Scalar> Clone for Line<S>
fn clone(&self) -> Line<S>
[src]
fn clone(&self) -> Line<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 + Scalar> Copy for Line<S>
[src]
impl<S: Copy + Scalar> Copy for Line<S>