Class Facet

java.lang.Object
  |
  +--Facet

public class Facet
extends java.lang.Object

A facet is a triangular tile of the surface of a planet.


Field Summary
static int N_VERTICES_PER_FACET
          At each corner of a facet you find a vertex.
 
Constructor Summary
Facet()
          Creates an empty facet class.
Facet(int az, int el)
          Creates a facet with the specified azimuth and elevation.
 
Method Summary
 int getAzimuth()
          Returns the azimuth of the facet.
 int getElevation()
          Returns the elevation of the facet.
 Vertex[] getVertices()
          Returns N_VERTICES_PER_FACET vertices at the corners of the facet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

N_VERTICES_PER_FACET

public static final int N_VERTICES_PER_FACET
At each corner of a facet you find a vertex. The number of vertices cornering a facet is fixed to N_VERTICES_PER_FACET. Since a facet is triangular, this number is 3.
Constructor Detail

Facet

public Facet()
Creates an empty facet class.

Facet

public Facet(int az,
             int el)
Creates a facet with the specified azimuth and elevation.
Parameters:
az - azimuth
el - elevation
Method Detail

getAzimuth

public int getAzimuth()
Returns the azimuth of the facet.

getElevation

public int getElevation()
Returns the elevation of the facet.

getVertices

public Vertex[] getVertices()
Returns N_VERTICES_PER_FACET vertices at the corners of the facet. The first time this function is called, the vertices are computed as described in the WDB document. The result is stored in a private variable that is referenced all subsequent times.