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