LSSTApplications  19.0.0-1-g1faeb96+1,19.0.0-1-g8c57eb9+36,19.0.0-1-ga3b31f8+10,19.0.0-1-gad49e94+1,19.0.0-10-g3250e53+1,19.0.0-15-g7d47663+7,19.0.0-17-gde1f5b76+10,19.0.0-18-gfb21c91+9,19.0.0-2-g15ad1b6+9,19.0.0-2-g2ed0b45+3,19.0.0-2-g4aada73+1,19.0.0-2-g5e94dc7+3,19.0.0-2-g6e0b8f9,19.0.0-2-g822544a+9,19.0.0-2-gb013ac2+9,19.0.0-2-gd82b0d5+10,19.0.0-20-g12a598f+7,19.0.0-20-g3336a1e+10,19.0.0-22-gd98cb7f78+2,19.0.0-23-g4cc2bcb+7,19.0.0-24-g09ddfed,19.0.0-3-g3912c24+1,19.0.0-3-g57fcecc+9,19.0.0-3-g9629746+3,19.0.0-3-g99a058e+1,19.0.0-3-ga84a0ef+1,19.0.0-3-gbea416a+3,19.0.0-3-gc70e9ed+1,19.0.0-3-gc851abf+10,19.0.0-4-gb4e0033,19.0.0-4-gc799371+10,19.0.0-5-g309d03d+5,19.0.0-5-gac6c5c4+5,19.0.0-59-g5d40e1c7+3,19.0.0-59-gee00874,19.0.0-6-g4aaee92+10,19.0.0-6-g60c8ecb,19.0.0-6-gce3e386+10,19.0.0-8-g967c747+1,19.0.0-8-gb750100+9,w.2020.19
LSSTDataManagementBasePackage
Namespaces | Functions
utils.cc File Reference

This file contains utility function implementations. More...

#include "lsst/sphgeom/utils.h"
#include <cmath>
#include "lsst/sphgeom/UnitVector3d.h"

Go to the source code of this file.

Namespaces

 lsst
 A base class for image defects.
 
 lsst::sphgeom
 

Functions

double lsst::sphgeom::getMinSquaredChordLength (Vector3d const &v, Vector3d const &a, Vector3d const &b, Vector3d const &n)
 Let p be the unit vector closest to v that lies on the plane with normal n in the direction of the cross product of a and b. More...
 
double lsst::sphgeom::getMaxSquaredChordLength (Vector3d const &v, Vector3d const &a, Vector3d const &b, Vector3d const &n)
 Let p be the unit vector furthest from v that lies on the plane with normal n in the direction of the cross product of a and b. More...
 
Vector3d lsst::sphgeom::getWeightedCentroid (UnitVector3d const &v0, UnitVector3d const &v1, UnitVector3d const &v2)
 getWeightedCentroid returns the center of mass of the given spherical triangle (assuming a uniform mass distribution over the triangle surface), weighted by the triangle area. More...
 

Detailed Description

This file contains utility function implementations.

Definition in file utils.cc.