Vertices Class
A static class with functions for calculating and returning Vector arrays of shapes
Item Index
Methods
- kite static
- parallelogram static
- rectangle static
- regularPolygon static
- rhombus static
- square static
- trapezium static
- trapezoid static
Methods
kite
()
Object
static
Creates and returns the vertices for a kite - TO DO
Returns:
Object:
vertices
parallelogram
(
Object
static
-
width -
height -
angle
Creates and returns the vertices for a parallelogram
Parameters:
-
widthNumber -
heightNumber -
angleNumber
Returns:
Object:
vertices
rectangle
(
Object
static
-
width -
height
Creates and returns the vertices for a rectangle
Parameters:
-
widthNumber -
heightNumber
Returns:
Object:
vertices
regularPolygon
(
Object
static
-
faceSize -
numberOfVertices
Creates and returns the vertices for a regular polygon
Parameters:
-
faceSizeNumber -
numberOfVerticesNumber
Returns:
Object:
vertices
rhombus
(
Object
static
-
faceSize -
angle
Creates and returns the vertices for a rhombus
Parameters:
-
faceSizeNumber -
angleNumber
Returns:
Object:
vertices
square
(
Object
static
-
faceSize
Creates and returns the vertices for a square
Parameters:
-
faceSizeNumber
Returns:
Object:
vertices
trapezium
()
Object
static
Creates and returns the vertices for a trapezium - TO DO
Returns:
Object:
vertices
trapezoid
()
Object
static
Creates and returns the vertices for a trapezoid - TO DO
Returns:
Object:
vertices
