Struct genmesh::Line
[−]
[src]
pub struct Line<T> { pub x: T, pub y: T, }
Represents a line
Fields
x: T
the first point
y: T
The second point
Methods
impl<T> Line<T>
[src]
fn new(x: T, y: T) -> Self
Create a new line using point x and y
Trait Implementations
impl<T: Clone, U> MapVertex<T, U> for Line<T>
[src]
type Output = Line<U>
Output
should be a a container of the same shape of the type It's internal values should reflect any transformation the map did. Read more
fn map_vertex<F>(self, map: F) -> Line<U> where
F: FnMut(T) -> U,
F: FnMut(T) -> U,
map a function to each vertex in polygon creating a new polygon
impl<T: Clone> Clone for Line<T>
[src]
fn clone(&self) -> Line<T>
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<T: Debug> Debug for Line<T>
[src]
impl<T: PartialEq> PartialEq for Line<T>
[src]
fn eq(&self, __arg_0: &Line<T>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Line<T>) -> bool
This method tests for !=
.