public final class Cone extends CooXYZ
Constructor and Description |
---|
Cone(CooXYZ center,
double radiusRad)
Creator.
|
Cone(double lonRad,
double latRad,
double radiusRad)
Creator.
|
Cone(double x,
double y,
double z,
double radiusRad)
Creator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(CooXYZ coo)
Returns
true if the given point is inside the cone. |
double |
radiusRad()
Returns the angle of the cone (the distance between its center and the its edge), in radians.
|
java.lang.String |
toString() |
arcCenter, arcCenter, circumCenter, circumCenter, circumRadiusSphe, circumRadiusSphe, crossProd, euclDist, havDist, lat, lon, mec, mec, mec, normalizedSum, scalarProd, scalarProd, spheDist, toEquaCooXYZ, x, y, z
public Cone(CooXYZ center, double radiusRad)
center
- cetner of the coneradiusRad
- radius of the cone, in radianspublic Cone(double lonRad, double latRad, double radiusRad)
lonRad
- longitude of the center of the cone, in radianslatRad
- latitude of the center of the cone, in radiansradiusRad
- radius of the cone, in radianspublic Cone(double x, double y, double z, double radiusRad)
x
- first Cartesian coordinate of the center of the coney
- second Cartesian coordinate of the center of the conez
- third Cartesian coordinate of the center of the coneradiusRad
- radius of the cone, in radianspublic double radiusRad()
public boolean contains(CooXYZ coo)
true
if the given point is inside the cone.coo
- position to be testedtrue
if the given point is inside the cone.Copyright © 2018 F.-X. Pineau, CDS, Observatoire Astronomique de Strasbourg, Universite de Strasbourg, CNRS. All Rights Reserved.