LSSTApplications  19.0.0-13-g16625d3+12,20.0.0+1,20.0.0+22,20.0.0+23,20.0.0+26,20.0.0+28,20.0.0+3,20.0.0+4,20.0.0+5,20.0.0+7,20.0.0+8,20.0.0-1-g10df615+22,20.0.0-1-g253301a+6,20.0.0-1-g4d801e7,20.0.0-1-g596936a+28,20.0.0-1-g8a53f90+2,20.0.0-1-gc96f8cb+27,20.0.0-1-gd1c87d7+2,20.0.0-1-gdb27ee5+6,20.0.0-11-gda4966f+11,20.0.0-14-g7cb2d310,20.0.0-2-gec03fae+4,20.0.0-24-g0eb5a41+1,20.0.0-3-gd2e950e,20.0.0-4-g4a2362f,20.0.0-4-gde602ef96+5,20.0.0-4-ge48a6ca+22,20.0.0-5-gc4485221+1,20.0.0-6-g9bcb941+3,20.0.0-7-g3c4151b+4,20.0.0-7-gb92c176+1,w.2020.31
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.