Struct rin_graphics::Line [−][src]
Represents a line segment in 2D space
Fields
p1: Pnt2
p2: Pnt2
Implementations
impl Line
[src]
impl Line
[src]pub fn to_mesh(self) -> Mesh<Vec2>
[src]
Returns the line segment as a mesh with only position
pub fn to_color_mesh<C: ToRgba>(self, color: &C) -> Mesh<Vertex2DColor>
[src]
Returns the line segment as a mesh with position and color
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
Blanket Implementations
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]pub fn to_subset(&self) -> Option<SS>
[src]
pub fn is_in_subset(&self) -> bool
[src]
pub fn to_subset_unchecked(&self) -> SS
[src]
pub fn from_subset(element: &SS) -> SP
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]