The number of corners found on regular shapes

View versions (1)

Interface

#include <codecogs/maths/geometry/corners.h>

using namespace Maths::Geometry;

Overview

ShapeCorners
dot1
line2
triangle3
square4
polygon5
hexagon6
septagon7
octagon8
GPL Licence — free for non commercial use. See Licence details.

FUNCTION

corners

This function is really just wrapper to the underlying enum that defines the number of corners found on a set of regular shapes.

Parameters

shape
the type of shape

Returns

the number of corners
Author

Code Cogs (January 2008)