Geometry
Class RegionCoordinate

java.lang.Object
  |
  +--Geometry.RegionCoordinate

public class RegionCoordinate
extends java.lang.Object

Defines by ring and sector a coordinate on a Region or a Topology that can have an associated elevation (or any float value).

Version:
Created 18 August 2003
Author:
Dan Tappan
See Also:
Region

Field Summary
 float elevation
           
 float ring
           
 float sector
           
 
Constructor Summary
RegionCoordinate(float ring, float sector)
          Creates a new two-dimensional coordinate, which may be scaled according to Region or Topology rings and sectors.
RegionCoordinate(float ring, float sector, float elevation)
          Creates a new three-dimensional coordinate, which may be scaled according to Region or Topology rings and sectors.
 
Method Summary
 RegionCoordinate getClone()
          Returns a clone of this object.
 java.lang.String toString()
          Returns a string representation of this class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ring

public float ring

sector

public float sector

elevation

public float elevation
Constructor Detail

RegionCoordinate

public RegionCoordinate(float ring,
                        float sector,
                        float elevation)
Creates a new three-dimensional coordinate, which may be scaled according to Region or Topology rings and sectors.

Parameters:
ring - - the ring
sector - - the sector
elevation - - the elevation at this point

RegionCoordinate

public RegionCoordinate(float ring,
                        float sector)
Creates a new two-dimensional coordinate, which may be scaled according to Region or Topology rings and sectors. The elevation class variable is assigned 0.0.

Parameters:
ring - - the ring
sector - - the sector
Method Detail

getClone

public RegionCoordinate getClone()
Returns a clone of this object.

Returns:
the clone

toString

public java.lang.String toString()
Returns a string representation of this class.

Overrides:
toString in class java.lang.Object
Returns:
the String representation