30#ifndef LSST_SPHGEOM_UTILS_H_
31#define LSST_SPHGEOM_UTILS_H_
77 if (abs(x) <= abs(c)) {
78 return a +
Angle(PI) - 2.0 * abs(c);
81 return Angle(PI) - 2.0 * abs(c) - a;
83 return Angle(PI) + 2.0 * abs(c) - a;
90 UnitVector3d
const & v1,
91 UnitVector3d
const & v2);
This file declares a class for representing angles.
Angle getMaxAngleToCircle(Angle x, Angle c)
Definition utils.h:75
Angle getMinAngleToCircle(Angle x, Angle c)
Definition utils.h:69
double getMaxSquaredChordLength(Vector3d const &v, Vector3d const &a, Vector3d const &b, Vector3d const &n)
Definition utils.cc:65
Vector3d getWeightedCentroid(UnitVector3d const &v0, UnitVector3d const &v1, UnitVector3d const &v2)
Definition utils.cc:86
double getMinSquaredChordLength(Vector3d const &v, Vector3d const &a, Vector3d const &b, Vector3d const &n)
Definition utils.cc:43