Struct solstice_2d::RegularPolygon[][src]

pub struct RegularPolygon {
    pub x: f32,
    pub y: f32,
    pub vertex_count: u32,
    pub radius: f32,
}

Fields

x: f32y: f32vertex_count: u32radius: f32

Implementations

impl RegularPolygon[src]

pub fn new(x: f32, y: f32, vertex_count: u32, radius: f32) -> Self[src]

Trait Implementations

impl Clone for RegularPolygon[src]

impl Copy for RegularPolygon[src]

impl Debug for RegularPolygon[src]

impl Default for RegularPolygon[src]

impl SimpleConvexGeometry for RegularPolygon[src]

type Vertices = Map<Range<u32>, Box<dyn Fn(u32) -> Vertex2D>>

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

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

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

impl<'a, V, I, G> BoxedGeometry<'a, Vertex2D, u32> for G where
    V: 'a + Iterator<Item = Vertex2D>,
    I: Iterator<Item = u32> + 'a,
    G: Geometry<Vertex2D, Vertices = V, Indices = I> + DynClone + Debug
[src]

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

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

impl<T> Geometry<Vertex2D> for T where
    T: SimpleConvexGeometry
[src]

type Vertices = <T as SimpleConvexGeometry>::Vertices

type Indices = FlatMap<Range<u32>, IntoIter<u32, 3_usize>, fn(u32) -> IntoIter<u32, 3_usize>>

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

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>,