public final class GreatCircle
extends java.lang.Object
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 GreatCircle |
fromBestFit(java.util.List<Vec3> vectors)
Constructs a best-fitting great circle for the supplied vectors.
|
static GreatCircle |
fromPole(Vec3 pole)
Create a great circle with the given pole.
|
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, if
any.
|
Vec3 |
getPole()
Returns a pole to the fitted great circle.
|
Vec3 |
lastPoint()
Returns the normalized final point used in the great-circle fit, if any.
|
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 static GreatCircle fromPole(Vec3 pole)
pole
- pole direction for the great circlepublic static GreatCircle fromBestFit(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()
UnsupportedOperationException
.java.lang.UnsupportedOperationException
- if this great circle has no pointspublic double angleFromLast(Vec3 v)
v
- a directionjava.lang.UnsupportedOperationException
- if this great circle has no pointspublic 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()
java.lang.UnsupportedOperationException
- if no fit was performed to produce
this great circle