CanvasMap
Getting Started Tutorials 3D Reference

Class CM3Utilities

CM3Utilities Class

Utilities to help with 3D rendering


Copyright (C) 2020, Humboldt State University, Jim Graham

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General
Public License as published by the Free Software Foundation, either version 3 of the License, or (at your
option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see
.

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