public class SphericalCoordinates extends Object implements Serializable
Instance of this class are guaranteed to be immutable.
Constructor and Description |
---|
SphericalCoordinates(double delta,
double alpha,
double norm)
Build a new instance.
|
SphericalCoordinates(double delta,
double alpha,
double norm,
boolean normalizeAngles)
Build a new instance.
|
SphericalCoordinates(Vector3D vector)
Build a new instance.
|
Modifier and Type | Method and Description |
---|---|
double |
getAlpha()
Get the azimuth α.
|
Vector3D |
getCartesianCoordinates()
Returns the cartesian coordinates.
|
double |
getDelta()
Get the elevation δ.
|
double |
getNorm()
Get the norm.
|
public SphericalCoordinates(double delta, double alpha, double norm)
delta
- elevation δ of the pointalpha
- azimuth α of the pointnorm
- norm of the pointpublic SphericalCoordinates(double delta, double alpha, double norm, boolean normalizeAngles)
delta
- elevation δ of the pointalpha
- azimuth α of the pointnorm
- norm of the pointnormalizeAngles
- true if angles should be centered around 0, false if kept as providedpublic SphericalCoordinates(Vector3D vector)
vector
- vector in cartesian coordinatespublic Vector3D getCartesianCoordinates()
public double getDelta()
public double getAlpha()
public double getNorm()
Copyright © 2023 CNES. All rights reserved.