CanvasMap
Getting Started Tutorials 3D Reference

Class CM3Utilities

CM3Utilities Class

Utilities to help with 3D rendering

Static Functions

ReturnsFunctionThrows
GetRegularPolygonShape()
GetTHREEColor()
GreatArcArea(Lon1, Lat1, Lon2, Lat2)
GetArcArrayInRadians()

Static Functions

GetRegularPolygonShape()

Returns a THREE.Shape object that contains a regular polyugon

GetTHREEColor()



GreatArcArea(Lon1, Lat1, Lon2, Lat2)

Computes the area of a "patch" on the surface of the earth that is defined
by two longitudes and two latitudes.

The equation herein was taken from: http://mathforum.org/library/drmath/view/63767.html

Parameters:
    Lon1 -90 to 90
    Lat1
    Lon2 -180 to 180
    Lat2

GetArcArrayInRadians()

Creates an array of THREE.Vector3 coordinates that form a smooth arc