LSST Applications g1635faa6d4+745614a90c,g1653933729+a8ce1bb630,g28da252d5a+36e17e8051,g2bbee38e9b+b1004dee84,g2bc492864f+b1004dee84,g2cdde0e794+3ad5f2bb52,g3156d2b45e+07302053f8,g347aa1857d+b1004dee84,g35bb328faa+a8ce1bb630,g3a166c0a6a+b1004dee84,g3e281a1b8c+693a468c5f,g4005a62e65+17cd334064,g414038480c+d4d6896112,g41af890bb2+e8ee78cfb6,g57cf332d5c+9ad48012b1,g80478fca09+3a97490614,g82479be7b0+650455f6e5,g858d7b2824+90519c3d98,g87f999b8a7+e0bafe6837,g9125e01d80+a8ce1bb630,ga1f12eb575+40efdb3bb8,ga5288a1d22+d42688abc1,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gbb4f38f987+90519c3d98,gc28159a63d+b1004dee84,gcf0d15dbbd+a3dda83249,gd35896b8e2+72bccd2e03,gda3e153d99+90519c3d98,gda6a2b7d83+a3dda83249,gdaeeff99f8+1711a396fd,ge2409df99d+1c5d9253c1,ge33fd446bb+90519c3d98,ge79ae78c31+b1004dee84,gf0baf85859+5daf287408,gf3967379c6+f78c452182,gfc885e0ea2+a8ce1bb630,gfda6b12a05+8eff2637a0,w.2024.43
LSST Data Management Base Package
Loading...
Searching...
No Matches
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

namespace  lsst
 
namespace  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.
 
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.
 
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.
 

Detailed Description

This file contains utility function implementations.

Definition in file utils.cc.