23 #ifndef LSST_SPHGEOM_UTILS_H_ 24 #define LSST_SPHGEOM_UTILS_H_ 70 if (abs(x) <= abs(c)) {
71 return a +
Angle(PI) - 2.0 * abs(c);
74 return Angle(PI) - 2.0 * abs(c) - a;
76 return Angle(PI) + 2.0 * abs(c) - a;
88 #endif // LSST_SPHGEOM_UTILS_H_ Vector3d getWeightedCentroid(UnitVector3d const &v0, UnitVector3d const &v1, UnitVector3d const &v2)
Definition: utils.cc:79
double getMinSquaredChordLength(Vector3d const &v, Vector3d const &a, Vector3d const &b, Vector3d const &n)
Definition: utils.cc:36
Angle getMinAngleToCircle(Angle x, Angle c)
Definition: utils.h:62
double getMaxSquaredChordLength(Vector3d const &v, Vector3d const &a, Vector3d const &b, Vector3d const &n)
Definition: utils.cc:58
This file declares a class for representing angles.
Vector3d is a vector in ℝ³ with components stored in double precision.
Definition: Vector3d.h:44
Definition: UnitVector3d.h:55
Angle getMaxAngleToCircle(Angle x, Angle c)
Definition: utils.h:68