public final class GreatCircle
extends java.lang.Object
Constructor and Description |
---|
GreatCircle(java.util.List<Vec3> vectors)
Constructs a best-fitting great circle for the supplied vectors.
|
Modifier and Type | Method and Description |
---|---|
double |
angleFromLast(Vec3 v)
Returns the angle between the supplied direction and the last point
on the great-circle fit.
|
static java.util.List<java.lang.String> |
getEmptyFields()
Returns a list of empty strings equal in length to the number of parameters.
|
static java.util.List<java.lang.String> |
getHeaders()
Returns the headers describing the parameters as a list of strings.
|
double |
getMad1()
Returns the MAD1 (planar maximum angular deviation) value for
the great-circle fit.
|
java.util.List<Vec3> |
getPoints()
Returns the normalized points to which the great circle was fitted.
|
Vec3 |
getPole()
Returns a pole to the fitted great circle.
|
Vec3 |
lastPoint()
Returns the normalized final point used in the great-circle fit.
|
Vec3 |
nearestOnCircle(Vec3 point)
For a supplied direction, returns the nearest direction which lies
on this great circle.
|
java.util.List<java.lang.String> |
toStrings()
Returns the statistical parameters as a list of strings.
|
public GreatCircle(java.util.List<Vec3> vectors)
vectors
- the direction vectors for which to fit the circlepublic java.util.List<Vec3> getPoints()
public Vec3 getPole()
public Vec3 nearestOnCircle(Vec3 point)
point
- a vector specifying a directionpublic Vec3 lastPoint()
public double angleFromLast(Vec3 v)
v
- a directionpublic java.util.List<java.lang.String> toStrings()
getHeaders()
.public static java.util.List<java.lang.String> getEmptyFields()
public static java.util.List<java.lang.String> getHeaders()
public double getMad1()