Struct rin::graphics::Ellipse [−][src]
Represents an ellipse in 2D space
Fields
center: Point<f32, U2>
width: f32
height: f32
Implementations
impl Ellipse
[src]
impl Ellipse
[src]pub fn to_mesh(
self,
resolution: u32
) -> Mesh<Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>>
[src]
self,
resolution: u32
) -> Mesh<Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>>
Returns the ellipse as a filled mesh with only position info
pub fn to_outline(
self,
resolution: u32
) -> Mesh<Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>>
[src]
self,
resolution: u32
) -> Mesh<Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>>
Returns the ellipse as a contour mesh with only position info
pub fn to_mesh_color<C>(self, color: &C, resolution: u32) -> Mesh<Vertex2DColor> where
C: ToRgba,
[src]
C: ToRgba,
Returns the ellipse as a filled mesh with position and color info
pub fn to_outline_color<C>(
self,
color: &C,
resolution: u32
) -> Mesh<Vertex2DColor> where
C: ToRgba,
[src]
self,
color: &C,
resolution: u32
) -> Mesh<Vertex2DColor> where
C: ToRgba,
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<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[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]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]