Struct vek::geom::repr_c::LineSegment2 [] [src]

pub struct LineSegment2<T> {
    pub start: Vec2<T>,
    pub end: Vec2<T>,
}

2D Line segment, represented by two points, start and end.

Fields

Methods

impl<T> LineSegment2<T>
[src]

[src]

Converts this line segment into a range of points.

Trait Implementations

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

[src]

Formats the value using the given formatter.

impl<T: Default> Default for LineSegment2<T>
[src]

[src]

Returns the "default value" for a type. Read more

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

[src]

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

1.3.0
[src]

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

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

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

[src]

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

[src]

This method tests for !=.

impl<T> From<Range<Vec2<T>>> for LineSegment2<T>
[src]

[src]

Performs the conversion.