Class GeometryHelpers.Circle
java.lang.Object
GeometryHelpers.Circle
- Enclosing class:
- GeometryHelpers
public static class GeometryHelpers.Circle
- extends java.lang.Object
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 |
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)
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 pointarrLfPt2
- second intersection pointarrLfScratch
- 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)