Struct rin::graphics::Circle [−][src]
Represents an circle in 2D space
Fields
center: Point<f32, U2>
radius: f32
Implementations
impl Circle
[src]
impl Circle
[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 circle 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 circle 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 circle 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 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<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]