Struct genmesh::Line [] [src]

pub struct Line<T> {
    pub x: T,
    pub y: T,
}

Represents a line

Fields

the first point

The second point

Methods

impl<T> Line<T>
[src]

Create a new line using point x and y

Trait Implementations

impl<T: Clone, U> MapVertex<T, U> for Line<T>
[src]

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

map a function to each vertex in polygon creating a new polygon

impl<T: Clone> Clone for Line<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Line<T>
[src]

Formats the value using the given formatter.

impl<T: PartialEq> PartialEq for Line<T>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Eq> Eq for Line<T>
[src]

impl<T: Copy> Copy for Line<T>
[src]

impl<T: Hash> Hash for Line<T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more