Struct rin_graphics::Ellipse [−][src]
Represents an ellipse in 2D space
Fields
center: Pnt2
width: f32
height: f32
Implementations
impl Ellipse
[src]
impl Ellipse
[src]pub fn to_mesh(self, resolution: u32) -> Mesh<Vec2>
[src]
Returns the ellipse as a filled mesh with only position info
pub fn to_outline(self, resolution: u32) -> Mesh<Vec2>
[src]
Returns the ellipse as a contour mesh with only position info
pub fn to_mesh_color<C: ToRgba>(
self,
color: &C,
resolution: u32
) -> Mesh<Vertex2DColor>
[src]
self,
color: &C,
resolution: u32
) -> Mesh<Vertex2DColor>
Returns the ellipse as a filled mesh with position and color info
pub fn to_outline_color<C: ToRgba>(
self,
color: &C,
resolution: u32
) -> Mesh<Vertex2DColor>
[src]
self,
color: &C,
resolution: u32
) -> Mesh<Vertex2DColor>
Returns the ellipse as a contour mesh with position and color info
pub fn to_mesh_texcoords(self, resolution: u32) -> Mesh<Vertex2DTex>
[src]
Returns the ellipse as a filled mesh with position and texture coordinates info
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Ellipse
impl Send for Ellipse
impl Sync for Ellipse
impl Unpin for Ellipse
impl UnwindSafe for Ellipse
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]