LSSTApplications  18.0.0+73,19.0.0+5,19.0.0+63,19.0.0+74,19.0.0+9,19.0.0-1-g20d9b18+29,19.0.0-1-g49a97f9+3,19.0.0-1-g5549ca4+4,19.0.0-1-g8c57eb9+29,19.0.0-1-g9a028c0+9,19.0.0-1-ga72da6b+3,19.0.0-1-gb77924a+10,19.0.0-1-gbfe0924+61,19.0.0-1-ge272bc4+29,19.0.0-1-gefe1d0d+45,19.0.0-14-g7511ce4+1,19.0.0-16-g3dc1a33c+1,19.0.0-16-g497ad8f+2,19.0.0-17-g9c22e3c+5,19.0.0-18-g2c901ce+5,19.0.0-18-g35bb99870,19.0.0-19-g2772d4a+4,19.0.0-19-g85fbfd3+4,19.0.0-2-g0d9f9cd+69,19.0.0-2-g260436e+49,19.0.0-2-g9675b69+3,19.0.0-2-gd6f004e+1,19.0.0-2-gde8e5e3+3,19.0.0-2-gff6972b+13,19.0.0-3-ga642a0f,19.0.0-3-gf3b1435+1,19.0.0-4-gac56cce+12,19.0.0-47-g0e06596+1,19.0.0-48-gd5e8b3b4+1,19.0.0-5-g66946eb+1,19.0.0-5-gd8897ba+1,19.0.0-7-g3343160,19.0.0-7-g686a884+4,19.0.0-7-g886f805+1,w.2020.16
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.