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