public class CooXYZ
extends java.lang.Object
Constructor and Description |
---|
CooXYZ(double lonRad,
double latRad) |
CooXYZ(double x,
double y,
double z) |
Modifier and Type | Method and Description |
---|---|
static CooXYZ |
arcCenter(CooXYZ a,
CooXYZ b)
Returns the center of the arc define by the smallest distance (on the unit sphere) between
the two given points.
|
static CooXYZ |
arcCenter(CooXYZ a,
CooXYZ b,
double r)
Faster version of
arcCenter(CooXYZ, CooXYZ) when we already know the distance between
the two given points. |
static CooXYZ |
circumCenter(CooXYZ a,
CooXYZ b,
CooXYZ c)
Returns the center on the unit sphere of the circumcircle of a
spherical triangle of given vertices a, b and c.
|
static CooXYZ |
circumCenter(CooXYZ a,
CooXYZ b,
CooXYZ c,
double r)
Returns the center on the unit sphere of the circumcircle of radius r of
a spherical triangle of given vertices a, b and c.
|
static double |
circumRadiusSphe(CooXYZ a,
CooXYZ b,
CooXYZ c)
Returns the angular radius (in radians) of the circumcircle of a
spherical triangle of given vertices a, b and c.
|
static double |
circumRadiusSphe(double a,
double b,
double c)
Returns the angular radius (in radians) of the circumcircle of a
spherical triangle of given side lengths a, b and c.
|
static cds.healpix.common.sphgeom.Vect3D |
crossProd(CooXYZ v1,
CooXYZ v2)
Returns the cross-product of the two given vectors.
|
static double |
euclDist(CooXYZ c1,
CooXYZ c2)
Returns the Euclidean distance separating the two given points.
|
static double |
havDist(CooXYZ c1,
CooXYZ c2)
Returns the spherival distance (using the Haversine formula) separating the two given points.
|
double |
lat()
Getter
|
double |
lon()
Getter
|
static Cone |
mec(CooXYZ... p)
Returns the Minimum Enclosing Cone, i.e. the cone containig all the given points and having the
smallest possible radius.
|
static Cone |
mec(CooXYZ a,
CooXYZ b)
Returns the minimum enclosing cone, i.e. the cone containig the two given points and having
the smallest possible radius.
|
static Cone |
mec(CooXYZ a,
CooXYZ b,
CooXYZ c)
Returns the Minimum Enclosing Cone, i.e. the cone containig the three given points and having
the smallest possible radius.
|
static CooXYZ |
normalizedSum(CooXYZ... vects)
Returns the sum of the given vector, normalized so that the resulting vector is on the unit
sphere.
|
double |
scalarProd(CooXYZ v)
Computes the scalar product of this point with given vectors.
|
double |
scalarProd(cds.healpix.common.sphgeom.Vect3D v)
Computes the scalar product of this point with given vectors.
|
static double |
spheDist(CooXYZ c1,
CooXYZ c2)
Retruns the spherical distance separating the two given points.
|
static CooXYZ |
toEquaCooXYZ(CooXYZ pos) |
java.lang.String |
toString() |
double |
x()
Getter
|
double |
y()
Getter
|
double |
z()
Getter
|
public CooXYZ(double lonRad, double latRad)
public CooXYZ(double x, double y, double z)
public final double lon()
public final double lat()
public final double x()
public final double y()
public final double z()
public static CooXYZ normalizedSum(CooXYZ... vects)
vects
- vector we are looking for the normalized sum.public static cds.healpix.common.sphgeom.Vect3D crossProd(CooXYZ v1, CooXYZ v2)
v1
- first vectorv2
- second vectorpublic double scalarProd(cds.healpix.common.sphgeom.Vect3D v)
v
- the second vector used in the scalar product.public double scalarProd(CooXYZ v)
v
- the second vector used in the scalar product.public static final double havDist(CooXYZ c1, CooXYZ c2)
c1
- first pointc2
- second pointpublic static final double spheDist(CooXYZ c1, CooXYZ c2)
c1
- first pointc2
- second pointpublic static final double euclDist(CooXYZ c1, CooXYZ c2)
c1
- first pointc2
- second pointpublic java.lang.String toString()
toString
in class java.lang.Object
public static Cone mec(CooXYZ a, CooXYZ b)
a
- first pointb
- secobd pointpublic static Cone mec(CooXYZ a, CooXYZ b, CooXYZ c)
a
- first pointb
- secobd pointc
- third pointpublic static Cone mec(CooXYZ... p)
p
- list of the points we look for the minimum enclising conepublic static final double circumRadiusSphe(double a, double b, double c)
a
- first size length (in radians)b
- second size length (in radians)c
- third size length (in radians)public static final double circumRadiusSphe(CooXYZ a, CooXYZ b, CooXYZ c)
a
- first vertexb
- second vertexc
- third vertexpublic static final CooXYZ circumCenter(CooXYZ a, CooXYZ b, CooXYZ c)
a
- first vertexb
- second vertexc
- third vertexpublic static final CooXYZ circumCenter(CooXYZ a, CooXYZ b, CooXYZ c, double r)
a
- first vertexb
- second vertexc
- third vertexr
- spherical radius of the circumcirclepublic static final CooXYZ arcCenter(CooXYZ a, CooXYZ b)
a
- first pointb
- second pointpublic static final CooXYZ arcCenter(CooXYZ a, CooXYZ b, double r)
arcCenter(CooXYZ, CooXYZ)
when we already know the distance between
the two given points.a
- first pointb
- second pointr
- half the distance between a and bCopyright © 2018 F.-X. Pineau, CDS, Observatoire Astronomique de Strasbourg, Universite de Strasbourg, CNRS. All Rights Reserved.