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;
82Vector3d getWeightedCentroid(UnitVector3d
const & v0,
83 UnitVector3d
const & v1,
84 UnitVector3d
const & v2);
This file declares a class for representing angles.
Angle getMaxAngleToCircle(Angle x, Angle c)
Definition: utils.h:68
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
double getMinSquaredChordLength(Vector3d const &v, Vector3d const &a, Vector3d const &b, Vector3d const &n)
Definition: utils.cc:36