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:
-
width
Number -
height
Number -
angle
Number
Returns:
Object:
vertices
rectangle
(
Object
static
-
width
-
height
Creates and returns the vertices for a rectangle
Parameters:
-
width
Number -
height
Number
Returns:
Object:
vertices
regularPolygon
(
Object
static
-
faceSize
-
numberOfVertices
Creates and returns the vertices for a regular polygon
Parameters:
-
faceSize
Number -
numberOfVertices
Number
Returns:
Object:
vertices
rhombus
(
Object
static
-
faceSize
-
angle
Creates and returns the vertices for a rhombus
Parameters:
-
faceSize
Number -
angle
Number
Returns:
Object:
vertices
square
(
Object
static
-
faceSize
Creates and returns the vertices for a square
Parameters:
-
faceSize
Number
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