Class GeometryHelpers.Circle

java.lang.Object
  extended by GeometryHelpers.Circle
Enclosing class:
GeometryHelpers

public static class GeometryHelpers.Circle
extends java.lang.Object


Constructor Summary
GeometryHelpers.Circle()
           
GeometryHelpers.Circle(double[] arrLfCen, double lfRad)
           
GeometryHelpers.Circle(double[] arrLfToAvg1, double[] arrLfToAvg2, double lfRad)
           
GeometryHelpers.Circle(int nDim)
           
 
Method Summary
 double closeness(double[] arrLfPt)
           
 double closeness(java.util.Vector<java.lang.Double> vecLfPt)
           
 double[] closestPt(double[] arrLfPt)
           
 void closestPt(double[] arrLfPt, double[] arrLfRslt)
           
 double dist(double[] arrLfPt)
           
 double dist(java.util.Vector<java.lang.Double> vecLfPt)
           
 boolean isectPts2d(GeometryHelpers.Circle isectWith, double[] arrLfPt1, double[] arrLfPt2, double[] arrLfScratch)
          Fails gracelessly if all dimensions are not "2"
 boolean ptInCirc(double[] arrLfPt)
           
 boolean ptInCirc(java.util.Vector<java.lang.Double> vecLfPt)
           
 double rad()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeometryHelpers.Circle

public GeometryHelpers.Circle()

GeometryHelpers.Circle

public GeometryHelpers.Circle(int nDim)

GeometryHelpers.Circle

public GeometryHelpers.Circle(double[] arrLfCen,
                              double lfRad)

GeometryHelpers.Circle

public GeometryHelpers.Circle(double[] arrLfToAvg1,
                              double[] arrLfToAvg2,
                              double lfRad)
Method Detail

rad

public double rad()

dist

public double dist(double[] arrLfPt)

dist

public double dist(java.util.Vector<java.lang.Double> vecLfPt)

closestPt

public void closestPt(double[] arrLfPt,
                      double[] arrLfRslt)

closestPt

public double[] closestPt(double[] arrLfPt)

isectPts2d

public boolean isectPts2d(GeometryHelpers.Circle isectWith,
                          double[] arrLfPt1,
                          double[] arrLfPt2,
                          double[] arrLfScratch)
Fails gracelessly if all dimensions are not "2"

Parameters:
isectWith - circle to intersect with.
arrLfPt1 - first intersection point
arrLfPt2 - second intersection point
arrLfScratch - 2 item scratch array -- can be null
Returns:
true if circles intersect in two distinct points.

closeness

public double closeness(java.util.Vector<java.lang.Double> vecLfPt)

ptInCirc

public boolean ptInCirc(java.util.Vector<java.lang.Double> vecLfPt)

closeness

public double closeness(double[] arrLfPt)

ptInCirc

public boolean ptInCirc(double[] arrLfPt)