corners
The number of corners found on regular shapes
Interface
#include <codecogs/maths/geometry/corners.h>
using namespace Maths::Geometry;
Overview
| Shape | Corners |
|---|---|
| dot | 1 |
| line | 2 |
| triangle | 3 |
| square | 4 |
| polygon | 5 |
| hexagon | 6 |
| septagon | 7 |
| octagon | 8 |
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)
This function's source code is only visible to registered users — documentation and the calculator above are free to use either way. Sign in to see it.