Struct rin::graphics::Ellipse[][src]

pub struct Ellipse {
    pub center: Point<f32, U2>,
    pub width: f32,
    pub height: f32,
}

Represents an ellipse in 2D space

Fields

center: Point<f32, U2>width: f32height: f32

Implementations

impl Ellipse[src]

pub fn to_mesh(
    self,
    resolution: u32
) -> Mesh<Matrix<f32, U2, U1, <DefaultAllocator as Allocator<f32, U2, U1>>::Buffer>>
[src]

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]

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]

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]

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

impl Clone for Ellipse[src]

impl Debug for Ellipse[src]

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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<V> IntoPnt<V> for V[src]

impl<V> IntoVec<V> for V[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]