Function rin::graphics::path::regular_poly [−][src]
pub fn regular_poly<Point>(
center: Point,
r: <Point as NumPnt>::Field,
sides: u32
) -> Path2D<Point> where
Point: FloatPnt + Copy,
u32: SubsetOf<<Point as NumPnt>::Field>,
<Point as NumPnt>::Field: RealField,
<Point as NumPnt>::Field: Float,
<Point as NumPnt>::Field: NumCast,
<Point as NumPnt>::Field: Neg,
<Point as NumPnt>::Coordinates: Neg,
<<Point as NumPnt>::Coordinates as Neg>::Output == <Point as NumPnt>::Coordinates,
Returns a path containing a regular polygon