edu.jhu.htm.geometry
Class Chull

java.lang.Object
  |
  +--edu.jhu.htm.geometry.ConHelper
        |
        +--edu.jhu.htm.geometry.Chull
All Implemented Interfaces:
ConvexProducer, DomainProducer

public class Chull
extends ConHelper
implements ConvexProducer, DomainProducer

use a set of points to construct a domain construct with the set or create one and add points

  Current Version
  ===============
  ID:	$Id: Chull.java,v 1.2 2003/02/19 15:46:11 womullan Exp $
  Revision: 	$Revision: 1.2 $
  Date/time:	$Date: 2003/02/19 15:46:11 $
 

Author:
wil

Field Summary
 
Fields inherited from class edu.jhu.htm.geometry.ConHelper
conv, domain
 
Constructor Summary
Chull()
          use this f you are going to add all points then call makeConvex()
Chull(double[] ras, double[] decs)
          pass points in two arrays
 
Method Summary
 void add(double ra, double dec)
          add point to polygon - checks for existing points
 void add(Vector3d v)
           
 Convex getConvex()
          may not have a convex if makeCOnvex was not called
 void makeConvex()
          call this if you are done adding points to actually construct the convex for the points get Convex does this anyway though if conv is null..
 
Methods inherited from class edu.jhu.htm.geometry.ConHelper
getDomain
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.jhu.htm.geometry.DomainProducer
getDomain
 

Constructor Detail

Chull

public Chull()
use this f you are going to add all points then call makeConvex()


Chull

public Chull(double[] ras,
             double[] decs)
      throws java.lang.Exception
pass points in two arrays

Method Detail

makeConvex

public void makeConvex()
                throws java.lang.Exception
call this if you are done adding points to actually construct the convex for the points get Convex does this anyway though if conv is null..

java.lang.Exception

add

public void add(double ra,
                double dec)
add point to polygon - checks for existing points


add

public void add(Vector3d v)

getConvex

public Convex getConvex()
may not have a convex if makeCOnvex was not called

Specified by:
getConvex in interface ConvexProducer
Overrides:
getConvex in class ConHelper