lsst.afw  13.0-109-g62eb66483
Namespaces | Classes | Typedefs | Enumerations | Functions | Variables
lsst::afw::geom Namespace Reference

Namespaces

 angle
 
 coordinates
 
 detail
 
 details
 
 ellipses
 
 polygon
 
 python
 
 skyWcs
 
 spherePoint
 
 testUtils
 
 transform
 
 transformConfig
 
 transformFromString
 
 utils
 
 xyTransformFactory
 

Classes

class  AffineTransform
 An affine coordinate transformation consisting of a linear transformation and an offset. More...
 
class  AffineXYTransform
 Wrap an AffineTransform. More...
 
class  Angle
 A class representing an angle. More...
 
class  AngleUnit
 A class used to convert scalar POD types such as double to Angle. More...
 
class  BaseEndpoint
 Virtual base class for endpoints, which are helper classes for Transform. More...
 
class  BaseVectorEndpoint
 Base class for endpoints with Array = std::vector<Point> where Point has 2 dimensions. More...
 
class  Box2D
 A floating-point coordinate rectangle geometry. More...
 
class  Box2I
 An integer coordinate rectangle. More...
 
class  CoordinateBase
 A CRTP base class for coordinate objects. More...
 
class  CoordinateBase< Derived, T, 2 >
 Specialization of CoordinateBase for 2 dimensions. More...
 
class  CoordinateBase< Derived, T, 3 >
 Specialization of CoordinateBase for 3 dimensions. More...
 
class  CoordinateExpr
 A boolean coordinate. More...
 
class  Extent
 A coordinate class intended to represent offsets and dimensions. More...
 
class  Extent< T, 2 >
 A coordinate class intended to represent offsets and dimensions (2-d specialization). More...
 
class  Extent< T, 3 >
 A coordinate class intended to represent offsets and dimensions (3-d specialization). More...
 
class  ExtentBase
 
class  Functor
 Abstract base class for function objects. More...
 
class  GenericEndpoint
 A generic endpoint for data in the format used by ast::Mapping. More...
 
class  IcrsCoordEndpoint
 An endpoint for IcrsCoord. More...
 
class  IdentityXYTransform
 A trivial XYTransform satisfying f(x)=x. More...
 
class  InvertedXYTransform
 Wrap an XYTransform, swapping forward and reverse transforms. More...
 
class  LinearFunctor
 Concrete implementation of Functor subclass for testing. More...
 
class  LinearTransform
 A 2D linear coordinate transformation. More...
 
class  MultiXYTransform
 Wrap a sequence of multiple XYTransforms. More...
 
class  Point
 A coordinate class intended to represent absolute positions. More...
 
class  Point2Endpoint
 An endpoint for Point2D. More...
 
class  Point< T, 2 >
 A coordinate class intended to represent absolute positions (2-d specialization). More...
 
class  Point< T, 3 >
 A coordinate class intended to represent absolute positions (3-d specialization). More...
 
class  PointBase
 
class  RadialXYTransform
 A purely radial polynomial distortion, up to 6th order. More...
 
class  SeparableXYTransform
 A 2D transform for which the pixel distortions in the in the x- and y-directions are separable. More...
 
class  SingularTransformException
 
class  SkyWcs
 A WCS that transform pixels to ICRS RA/Dec using the LSST standard for pixels. More...
 
class  Span
 A range of pixels within one row of an Image. More...
 
class  SpanPixelIterator
 An iterator that yields Point2I and increases in the x direction. More...
 
class  SpanSet
 A compact representation of a collection of pixels. More...
 
class  SpherePoint
 Point in an unspecified spherical coordinate system. More...
 
class  Transform
 Transform LSST spatial data, such as Point2D and IcrsCoord, using an AST transform. More...
 
class  XYTransform
 Virtual base class for 2D transforms. More...
 

Typedefs

typedef Box2D BoxD
 
typedef Box2I BoxI
 
typedef CoordinateExpr< 2 > CoordinateExpr2
 
typedef CoordinateExpr< 3 > CoordinateExpr3
 
typedef Extent< int, 2 > ExtentI
 
typedef Extent< int, 2 > Extent2I
 
typedef Extent< int, 3 > Extent3I
 
typedef Extent< double, 2 > ExtentD
 
typedef Extent< double, 2 > Extent2D
 
typedef Extent< double, 3 > Extent3D
 
typedef Point< int, 2 > PointI
 
typedef Point< int, 2 > Point2I
 
typedef Point< int, 3 > Point3I
 
typedef Point< double, 2 > PointD
 
typedef Point< double, 2 > Point2D
 
typedef Point< double, 3 > Point3D
 
using TransformPoint2ToPoint2 = Transform< Point2Endpoint, Point2Endpoint >
 
using TransformPoint2ToGeneric = Transform< Point2Endpoint, GenericEndpoint >
 
using TransformPoint2ToIcrsCoord = Transform< Point2Endpoint, IcrsCoordEndpoint >
 

Enumerations

enum  Stencil { Stencil::CIRCLE, Stencil::BOX, Stencil::MANHATTAN }
 An enumeration class which describes the shapes. More...
 

Functions

std::ostream & operator<< (std::ostream &os, lsst::afw::geom::AffineTransform const &transform)
 
AffineTransform makeAffineTransformFromTriple (Point2D const &p1, Point2D const &p2, Point2D const &p3, Point2D const &q1, Point2D const &q2, Point2D const &q3)
 
constexpr double degToRad (double x) noexcept
 
constexpr double radToDeg (double x) noexcept
 
constexpr double radToArcsec (double x) noexcept
 
constexpr double radToMas (double x) noexcept
 
constexpr double arcsecToRad (double x) noexcept
 
constexpr double masToRad (double x) noexcept
 
constexpr Angle operator+ (Angle a, Angle d) noexcept
 Sum of two angles. More...
 
constexpr Angle operator- (Angle a, Angle d) noexcept
 Difference of two angles. More...
 
constexpr Angle operator* (Angle a, Angle d) noexcept
 Product of two angles. More...
 
constexpr Angle operator- (Angle angle)
 An angle in the opposite sense. More...
 
constexpr Angle operator/ (Angle a, int d) noexcept
 Ratio of an angle and a scalar. More...
 
constexpr Angle operator/ (Angle a, double d) noexcept
 Ratio of an angle and a scalar. More...
 
template<typename T >
constexpr double operator/ (T const lhs, Angle rhs) noexcept=delete
 
std::ostream & operator<< (std::ostream &s, Angle a)
 Print an Angle to a stream. More...
 
template<typename T >
constexpr bool isAngle (T) noexcept
 Allow a user to check if they have an angle. More...
 
template<typename T >
constexpr Angle operator* (T lhs, AngleUnit rhs) noexcept
 Use AngleUnit to convert a POD (e.g. int, double) to an Angle; e.g. 180*degrees. More...
 
std::ostream & operator<< (std::ostream &os, Box2I const &box)
 
std::ostream & operator<< (std::ostream &os, Box2D const &box)
 
template<typename Derived , typename T , int N>
bool allclose (CoordinateBase< Derived, T, N > const &a, CoordinateBase< Derived, T, N > const &b, T rtol=static_cast< T >(1E-5), T atol=static_cast< T >(1E-8))
 Floating-point comparison with tolerance. More...
 
template<typename Derived , typename T , int N>
std::ostream & operator<< (std::ostream &os, CoordinateBase< Derived, T, N > const &coordinate)
 
template<int N>
bool all (CoordinateExpr< N > const &expr)
 Return true if all elements are true. More...
 
template<int N>
bool any (CoordinateExpr< N > const &expr)
 Return true if any elements are true. More...
 
std::ostream & operator<< (std::ostream &os, GenericEndpoint const &endpoint)
 Print "GenericEndpoint(_n_)" to the ostream where _n_ is the number of axes, e.g. More...
 
std::ostream & operator<< (std::ostream &os, Point2Endpoint const &endpoint)
 Print "Point2Endpoint()" to the ostream. More...
 
std::ostream & operator<< (std::ostream &os, IcrsCoordEndpoint const &endpoint)
 Print "IcrsCoordEndpoint()" to the ostream. More...
 
template<int N>
Extent< int, N > truncate (Extent< double, N > const &input)
 Return the component-wise truncation (round towards zero). More...
 
template<int N>
Extent< int, N > floor (Extent< double, N > const &input)
 Return the component-wise floor (round towards more negative). More...
 
template<int N>
Extent< int, N > ceil (Extent< double, N > const &input)
 Return the component-wise ceil (round towards more positive). More...
 
template<typename T , int N>
Extent< T, N > operator* (T scalar, ExtentBase< T, N > const &rhs)
 
template<int N>
Extent< double, N > operator* (ExtentBase< int, N > const &lhs, double rhs)
 
template<int N>
void operator*= (ExtentBase< int, N > &lhs, double rhs)
 
template<int N>
Extent< double, N > operator/ (ExtentBase< int, N > const &lhs, double rhs)
 
template<int N>
void operator/= (ExtentBase< int, N > &lhs, double rhs)
 
template<int N>
Extent< double, N > operator* (double lhs, ExtentBase< int, N > const &rhs)
 
template<int N>
Extent< double, N > operator+ (Extent< double, N > const &lhs, Extent< int, N > const &rhs)
 
template<int N>
Extent< double, N > & operator+= (Extent< double, N > &lhs, Extent< int, N > const &rhs)
 
template<int N>
Extent< double, N > operator- (Extent< double, N > const &lhs, Extent< int, N > const &rhs)
 
template<int N>
Extent< double, N > & operator-= (Extent< double, N > &lhs, Extent< int, N > const &rhs)
 
template<int N>
Extent< double, N > operator+ (Extent< int, N > const &lhs, Extent< double, N > const &rhs)
 
template<int N>
Extent< double, N > operator- (Extent< int, N > const &lhs, Extent< double, N > const &rhs)
 
std::ostream & operator<< (std::ostream &os, lsst::afw::geom::LinearTransform const &t)
 
template<int N>
Point< double, N > operator+ (Point< double, N > const &lhs, Extent< int, N > const &rhs)
 
template<int N>
Point< double, N > operator+ (Extent< int, N > const &rhs, Point< double, N > const &lhs)
 
template<int N>
Point< double, N > & operator+= (Point< double, N > &lhs, Extent< int, N > const &rhs)
 
template<int N>
Point< double, N > operator+ (Point< int, N > const &lhs, Extent< double, N > const &rhs)
 
template<int N>
Point< double, N > operator- (Point< double, N > const &lhs, Extent< int, N > const &rhs)
 
template<int N>
Point< double, N > & operator-= (Point< double, N > &lhs, Extent< int, N > const &rhs)
 
template<int N>
Point< double, N > operator- (Point< int, N > const &lhs, Extent< double, N > const &rhs)
 
template<int N>
Extent< double, N > operator- (Point< double, N > const &lhs, Point< int, N > const &rhs)
 
template<int N>
Extent< double, N > operator- (Point< int, N > const &lhs, Point< double, N > const &rhs)
 
Eigen::Matrix2d makeCdMatrix (Angle const &scale, Angle const &orientation=0 *degrees, bool flipX=false)
 Make a WCS CD matrix. More...
 
TransformPoint2ToPoint2 makeWcsPairTransform (SkyWcs const &src, SkyWcs const &dst)
 A Transform obtained by putting two SkyWcs objects "back to back". More...
 
std::ostream & operator<< (std::ostream &os, SpherePoint const &point)
 Print the value of a point to a stream. More...
 
template<class FromEndpoint , class ToEndpoint >
std::ostream & operator<< (std::ostream &os, Transform< FromEndpoint, ToEndpoint > const &transform)
 Print a Transform to an ostream. More...
 
AffineTransform linearizeTransform (TransformPoint2ToPoint2 const &original, Point2D const &inPoint)
 Approximate a Transform by its local linearization. More...
 
TransformPoint2ToPoint2 makeTransform (AffineTransform const &affine)
 Wrap an AffineTransform as a Transform. More...
 
TransformPoint2ToPoint2 makeRadialTransform (std::vector< double > const &coeffs)
 A purely radial polynomial distortion. More...
 
TransformPoint2ToPoint2 makeRadialTransform (std::vector< double > const &forwardCoeffs, std::vector< double > const &inverseCoeffs)
 A purely radial polynomial distortion. More...
 
TransformPoint2ToPoint2 makeIdentityTransform ()
 Trivial Transform x → x. More...
 
constexpr Angle operator* (Angle a, double d) noexcept
 Product of an angle and a scalar. More...
 
constexpr Angle operator* (double d, Angle a) noexcept
 Product of an angle and a scalar. More...
 
constexpr Angle operator* (Angle a, int d) noexcept
 Product of an angle and a scalar. More...
 
constexpr Angle operator* (int d, Angle a) noexcept
 Product of an angle and a scalar. More...
 

Variables

double constexpr PI = boost::math::constants::pi<double>()
 The ratio of a circle's circumference to diameter. More...
 
double constexpr TWOPI = boost::math::constants::pi<double>() * 2.0
 
double constexpr HALFPI = boost::math::constants::pi<double>() * 0.5
 
double constexpr ONE_OVER_PI = 1.0 / boost::math::constants::pi<double>()
 
double const SQRTPI = sqrt(boost::math::constants::pi<double>())
 
double const INVSQRTPI = 1.0 / sqrt(boost::math::constants::pi<double>())
 
double constexpr ROOT2 = boost::math::constants::root_two<double>()
 
AngleUnit constexpr radians = AngleUnit(1.0)
 constant with units of radians More...
 
AngleUnit constexpr degrees = AngleUnit(PI / 180.0)
 constant with units of degrees More...
 
AngleUnit constexpr hours = AngleUnit(PI * 15.0 / 180.0)
 constant with units of hours More...
 
AngleUnit constexpr arcminutes = AngleUnit(PI / 60 / 180.0)
 constant with units of arcminutes More...
 
AngleUnit constexpr arcseconds = AngleUnit(PI / 180.0 / 3600.0)
 constant with units of arcseconds More...
 

Typedef Documentation

◆ BoxD

Definition at line 472 of file Box.h.

◆ BoxI

Definition at line 473 of file Box.h.

◆ CoordinateExpr2

Definition at line 93 of file CoordinateExpr.h.

◆ CoordinateExpr3

Definition at line 94 of file CoordinateExpr.h.

◆ Extent2D

typedef Extent<double, 2> lsst::afw::geom::Extent2D

Definition at line 344 of file Extent.h.

◆ Extent2I

Examples:
image2.cc, imageStatistics.cc, maskedImage2.cc, and statistics.cc.

Definition at line 341 of file Extent.h.

◆ Extent3D

typedef Extent<double, 3> lsst::afw::geom::Extent3D

Definition at line 345 of file Extent.h.

◆ Extent3I

Definition at line 342 of file Extent.h.

◆ ExtentD

typedef Extent<double, 2> lsst::afw::geom::ExtentD

Definition at line 343 of file Extent.h.

◆ ExtentI

Definition at line 338 of file Extent.h.

◆ Point2D

typedef Point<double, 2> lsst::afw::geom::Point2D

Definition at line 273 of file Point.h.

◆ Point2I

Examples:
image2.cc, and maskedImage2.cc.

Definition at line 270 of file Point.h.

◆ Point3D

typedef Point<double, 3> lsst::afw::geom::Point3D

Definition at line 274 of file Point.h.

◆ Point3I

Definition at line 271 of file Point.h.

◆ PointD

typedef Point<double, 2> lsst::afw::geom::PointD

Definition at line 272 of file Point.h.

◆ PointI

typedef Point<int, 2> lsst::afw::geom::PointI

Definition at line 269 of file Point.h.

◆ TransformPoint2ToGeneric

Definition at line 285 of file Transform.h.

◆ TransformPoint2ToIcrsCoord

Definition at line 286 of file Transform.h.

◆ TransformPoint2ToPoint2

Definition at line 284 of file Transform.h.

Enumeration Type Documentation

◆ Stencil

An enumeration class which describes the shapes.

A stencil is a shape used in creating SpanSets, erosion kernels, or dilation kernels. CIRCLE creates a circle shape, BOX creates a box shape, and MANHATTAN creates a diamond shape.

Enumerator
CIRCLE 
BOX 
MANHATTAN 

Definition at line 64 of file SpanSet.h.

Function Documentation

◆ all()

template<int N>
bool lsst::afw::geom::all ( CoordinateExpr< N > const &  expr)
inline

Return true if all elements are true.

Definition at line 79 of file CoordinateExpr.h.

◆ allclose()

template<typename Derived , typename T , int N>
bool allclose ( CoordinateBase< Derived, T, N > const &  a,
CoordinateBase< Derived, T, N > const &  b,
T  rtol = static_cast< T >(1E-5),
T  atol = static_cast< T >(1E-8) 
)

Floating-point comparison with tolerance.

Interface, naming, and default tolerances matches Numpy.

◆ any()

template<int N>
bool lsst::afw::geom::any ( CoordinateExpr< N > const &  expr)
inline

Return true if any elements are true.

Definition at line 87 of file CoordinateExpr.h.

◆ arcsecToRad()

constexpr double lsst::afw::geom::arcsecToRad ( double  x)
inlinenoexcept

Definition at line 37 of file Angle.h.

◆ ceil()

template<int N>
Extent<int, N> lsst::afw::geom::ceil ( Extent< double, N > const &  input)

Return the component-wise ceil (round towards more positive).

In Python, this is available as both a free function and a method on ExtentD.

◆ degToRad()

constexpr double lsst::afw::geom::degToRad ( double  x)
inlinenoexcept

Definition at line 33 of file Angle.h.

◆ floor()

template<int N>
Extent<int, N> lsst::afw::geom::floor ( Extent< double, N > const &  input)

Return the component-wise floor (round towards more negative).

In Python, this is available as both a free function and a method on ExtentD.

◆ isAngle()

template<typename T >
constexpr bool lsst::afw::geom::isAngle ( T  )
inlinenoexcept

Allow a user to check if they have an angle.

Definition at line 347 of file Angle.h.

◆ linearizeTransform()

AffineTransform lsst::afw::geom::linearizeTransform ( TransformPoint2ToPoint2 const &  original,
Point2D const &  inPoint 
)

Approximate a Transform by its local linearization.

Template Parameters
FromEndpoint,ToEndpointThe endpoints of the transform.
Parameters
originalthe Transform to linearize
inPointthe point at which a linear approximation is desired
Returns
an AffineTransform whose value and Jacobian at inPoint match those of original. It may be invertible; in general, linearizations are invertible if the Jacobian at inPoint is invertible.
Exceptions
pex::exceptions::InvalidParameterErrorThrown if original does not have a well-defined value and Jacobian at inPoint
Exception Safety
Not exception safe.

◆ makeAffineTransformFromTriple()

AffineTransform lsst::afw::geom::makeAffineTransformFromTriple ( Point2D const &  p1,
Point2D const &  p2,
Point2D const &  p3,
Point2D const &  q1,
Point2D const &  q2,
Point2D const &  q3 
)

◆ makeCdMatrix()

Eigen::Matrix2d lsst::afw::geom::makeCdMatrix ( Angle const &  scale,
Angle const &  orientation = 0 *degrees,
bool  flipX = false 
)

Make a WCS CD matrix.

Parameters
[in]scalePixel scale as an angle on sky/pixels
[in]orientationPosition angle of focal plane +Y, measured from N through E. At 0 degrees, +Y is along N and +X is along E/W if flipX false/true At 90 degrees, +Y is along E and +X is along S/N if flipX false/true
[in]flipXFip x axis (see orientation for details)?
Returns
the CD matrix, where element (i-1, j-1) corresponds to FITS keyword CDi_j and i, j have range [1, 2]

◆ makeIdentityTransform()

TransformPoint2ToPoint2 lsst::afw::geom::makeIdentityTransform ( )

Trivial Transform x → x.

Returns
a Transform mapping any Point2D to itself. The Transform's inverse shall be itself.
Exception Safety
Provides basic exception safety.

◆ makeRadialTransform() [1/2]

TransformPoint2ToPoint2 lsst::afw::geom::makeRadialTransform ( std::vector< double > const &  coeffs)

A purely radial polynomial distortion.

The Transform transforms an input \(x\) to

\[ \frac{x}{r} \sum_{i=1}^{N} \mathrm{coeffs[i]} \ r^i \]

where \(r\) is the magnitude of \(x\).

Parameters
coeffsradial polynomial coefficients. May be an empty vector to represent the identity transformation; otherwise must have size > 1, coeffs[0] = 0, and coeffs[1] ≠ 0.
Returns
the radial distortion represented by coeffs. The Transform shall have an inverse, which may be approximate.
Exceptions
pex::exceptions::InvalidParameterErrorThrown if coeffs does not have the required format.
Exception Safety
Provides basic exception safety.

◆ makeRadialTransform() [2/2]

TransformPoint2ToPoint2 lsst::afw::geom::makeRadialTransform ( std::vector< double > const &  forwardCoeffs,
std::vector< double > const &  inverseCoeffs 
)

A purely radial polynomial distortion.

Similar to makeRadialTransform(std::vector<double> const &), but allows the user to provide an inverse.

Parameters
forwardCoeffsradial polynomial coefficients. May be an empty vector to represent the identity transformation; otherwise must have size > 1, coeffs[0] = 0, and coeffs[1] ≠ 0.
inverseCoeffscoefficients for the inverse transform, as above. Does not need to have the same degree as forwardCoeffs, but either both must be empty or neither must be empty.
Returns
the radial distortion represented by coeffs. The Transform shall have an inverse, whose accuracy is determined by the relationship between forwardCoeffs and inverseCoeffs.
Exceptions
pex::exceptions::InvalidParameterErrorThrown if forwardCoeffs or inverseCoeffs does not have the required format.
Exception Safety
Provides basic exception safety.

◆ makeTransform()

TransformPoint2ToPoint2 lsst::afw::geom::makeTransform ( AffineTransform const &  affine)

Wrap an AffineTransform as a Transform.

Parameters
affineThe AffineTransform to wrap.
Returns
a Transform that that maps any Point2D x to affine(x). It shall be invertible iff affine is invertible.
Exception Safety
Provides basic exception safety.

◆ makeWcsPairTransform()

TransformPoint2ToPoint2 lsst::afw::geom::makeWcsPairTransform ( SkyWcs const &  src,
SkyWcs const &  dst 
)

A Transform obtained by putting two SkyWcs objects "back to back".

Parameters
srcthe WCS for the source pixels
dstthe WCS for the destination pixels
Returns
a Transform whose forward transformation converts from src pixels to dst pixels, and whose inverse transformation converts in the opposite direction.
Exception Safety
Provides basic exception safety.
Note
Parameters are provided in the order dst, src for consistency with XYTransformFromWcsPair.

◆ masToRad()

constexpr double lsst::afw::geom::masToRad ( double  x)
inlinenoexcept

Definition at line 38 of file Angle.h.

◆ operator*() [1/9]

constexpr Angle operator* ( Angle  a,
Angle  d 
)
inlinenoexcept

Product of two angles.

Warning
The result will be treated like an planar angle, not a solid angle.

Definition at line 289 of file Angle.h.

◆ operator*() [2/9]

constexpr Angle operator* ( Angle  a,
double  d 
)
inlinenoexcept

Product of an angle and a scalar.

Definition at line 296 of file Angle.h.

◆ operator*() [3/9]

constexpr Angle lsst::afw::geom::operator* ( double  d,
Angle  a 
)
inlinenoexcept

Product of an angle and a scalar.

Definition at line 296 of file Angle.h.

◆ operator*() [4/9]

constexpr Angle lsst::afw::geom::operator* ( Angle  a,
int  d 
)
inlinenoexcept

Product of an angle and a scalar.

Definition at line 297 of file Angle.h.

◆ operator*() [5/9]

constexpr Angle lsst::afw::geom::operator* ( int  d,
Angle  a 
)
inlinenoexcept

Product of an angle and a scalar.

Definition at line 297 of file Angle.h.

◆ operator*() [6/9]

template<typename T >
constexpr Angle operator* ( T  lhs,
AngleUnit  rhs 
)
inlinenoexcept

Use AngleUnit to convert a POD (e.g. int, double) to an Angle; e.g. 180*degrees.

Parameters
lhsthe value to convert
rhsthe conversion coefficient
Exception Safety
Shall not throw exceptions.

Definition at line 362 of file Angle.h.

◆ operator*() [7/9]

template<typename T , int N>
Extent<T, N> lsst::afw::geom::operator* ( T  scalar,
ExtentBase< T, N > const &  rhs 
)

Definition at line 376 of file Extent.h.

◆ operator*() [8/9]

template<int N>
Extent<double, N> lsst::afw::geom::operator* ( ExtentBase< int, N > const &  lhs,
double  rhs 
)

Definition at line 381 of file Extent.h.

◆ operator*() [9/9]

template<int N>
Extent<double, N> lsst::afw::geom::operator* ( double  lhs,
ExtentBase< int, N > const &  rhs 
)

Definition at line 403 of file Extent.h.

◆ operator*=()

template<int N>
void lsst::afw::geom::operator*= ( ExtentBase< int, N > &  lhs,
double  rhs 
)

Definition at line 386 of file Extent.h.

◆ operator+() [1/6]

constexpr Angle operator+ ( Angle  a,
Angle  d 
)
inlinenoexcept

Sum of two angles.

Definition at line 275 of file Angle.h.

◆ operator+() [2/6]

template<int N>
Point<double, N> lsst::afw::geom::operator+ ( Point< double, N > const &  lhs,
Extent< int, N > const &  rhs 
)

Definition at line 277 of file Point.h.

◆ operator+() [3/6]

template<int N>
Point<double, N> lsst::afw::geom::operator+ ( Extent< int, N > const &  rhs,
Point< double, N > const &  lhs 
)

Definition at line 282 of file Point.h.

◆ operator+() [4/6]

template<int N>
Point<double, N> lsst::afw::geom::operator+ ( Point< int, N > const &  lhs,
Extent< double, N > const &  rhs 
)

Definition at line 292 of file Point.h.

◆ operator+() [5/6]

template<int N>
Extent<double, N> lsst::afw::geom::operator+ ( Extent< double, N > const &  lhs,
Extent< int, N > const &  rhs 
)

Definition at line 408 of file Extent.h.

◆ operator+() [6/6]

template<int N>
Extent<double, N> lsst::afw::geom::operator+ ( Extent< int, N > const &  lhs,
Extent< double, N > const &  rhs 
)

Definition at line 428 of file Extent.h.

◆ operator+=() [1/2]

template<int N>
Point<double, N>& lsst::afw::geom::operator+= ( Point< double, N > &  lhs,
Extent< int, N > const &  rhs 
)

Definition at line 287 of file Point.h.

◆ operator+=() [2/2]

template<int N>
Extent<double, N>& lsst::afw::geom::operator+= ( Extent< double, N > &  lhs,
Extent< int, N > const &  rhs 
)

Definition at line 413 of file Extent.h.

◆ operator-() [1/8]

constexpr Angle operator- ( Angle  a,
Angle  d 
)
inlinenoexcept

Difference of two angles.

Definition at line 281 of file Angle.h.

◆ operator-() [2/8]

template<int N>
Point<double, N> lsst::afw::geom::operator- ( Point< double, N > const &  lhs,
Extent< int, N > const &  rhs 
)

Definition at line 297 of file Point.h.

◆ operator-() [3/8]

template<int N>
Point<double, N> lsst::afw::geom::operator- ( Point< int, N > const &  lhs,
Extent< double, N > const &  rhs 
)

Definition at line 307 of file Point.h.

◆ operator-() [4/8]

constexpr Angle operator- ( Angle  angle)
inline

An angle in the opposite sense.

Definition at line 308 of file Angle.h.

◆ operator-() [5/8]

template<int N>
Extent<double, N> lsst::afw::geom::operator- ( Point< double, N > const &  lhs,
Point< int, N > const &  rhs 
)

Definition at line 312 of file Point.h.

◆ operator-() [6/8]

template<int N>
Extent<double, N> lsst::afw::geom::operator- ( Point< int, N > const &  lhs,
Point< double, N > const &  rhs 
)

Definition at line 317 of file Point.h.

◆ operator-() [7/8]

template<int N>
Extent<double, N> lsst::afw::geom::operator- ( Extent< double, N > const &  lhs,
Extent< int, N > const &  rhs 
)

Definition at line 418 of file Extent.h.

◆ operator-() [8/8]

template<int N>
Extent<double, N> lsst::afw::geom::operator- ( Extent< int, N > const &  lhs,
Extent< double, N > const &  rhs 
)

Definition at line 433 of file Extent.h.

◆ operator-=() [1/2]

template<int N>
Point<double, N>& lsst::afw::geom::operator-= ( Point< double, N > &  lhs,
Extent< int, N > const &  rhs 
)

Definition at line 302 of file Point.h.

◆ operator-=() [2/2]

template<int N>
Extent<double, N>& lsst::afw::geom::operator-= ( Extent< double, N > &  lhs,
Extent< int, N > const &  rhs 
)

Definition at line 423 of file Extent.h.

◆ operator/() [1/4]

constexpr Angle operator/ ( Angle  a,
int  d 
)
inlinenoexcept

Ratio of an angle and a scalar.

Definition at line 316 of file Angle.h.

◆ operator/() [2/4]

constexpr Angle operator/ ( Angle  a,
double  d 
)
inlinenoexcept

Ratio of an angle and a scalar.

Definition at line 323 of file Angle.h.

◆ operator/() [3/4]

template<typename T >
constexpr double lsst::afw::geom::operator/ ( T const  lhs,
Angle  rhs 
)
deletenoexcept

◆ operator/() [4/4]

template<int N>
Extent<double, N> lsst::afw::geom::operator/ ( ExtentBase< int, N > const &  lhs,
double  rhs 
)

Definition at line 392 of file Extent.h.

◆ operator/=()

template<int N>
void lsst::afw::geom::operator/= ( ExtentBase< int, N > &  lhs,
double  rhs 
)

Definition at line 397 of file Extent.h.

◆ operator<<() [1/11]

std::ostream& lsst::afw::geom::operator<< ( std::ostream &  os,
lsst::afw::geom::LinearTransform const &  t 
)

◆ operator<<() [2/11]

template<typename Derived , typename T , int N>
std::ostream& lsst::afw::geom::operator<< ( std::ostream &  os,
CoordinateBase< Derived, T, N > const &  coordinate 
)

Definition at line 193 of file CoordinateBase.h.

◆ operator<<() [3/11]

std::ostream& lsst::afw::geom::operator<< ( std::ostream &  os,
lsst::afw::geom::AffineTransform const &  transform 
)

◆ operator<<() [4/11]

template<class FromEndpoint , class ToEndpoint >
std::ostream& lsst::afw::geom::operator<< ( std::ostream &  os,
Transform< FromEndpoint, ToEndpoint > const &  transform 
)

Print a Transform to an ostream.

The format is "Transform<_fromEndpoint_, _toEndpoint_>" where fromEndpoint and toEndpoint are the appropriate endpoint printed to the ostream; for example "Transform<GenericEndpoint(4), Point2Endpoint()>"

◆ operator<<() [5/11]

std::ostream& lsst::afw::geom::operator<< ( std::ostream &  os,
GenericEndpoint const &  endpoint 
)

Print "GenericEndpoint(_n_)" to the ostream where _n_ is the number of axes, e.g.

"GenericAxes(4)"

◆ operator<<() [6/11]

std::ostream & operator<< ( std::ostream &  s,
Angle  a 
)

Print an Angle to a stream.

The exact details of the string representation are unspecified and subject to change, but the following may be regarded as typical: "0.567 rad".

Parameters
sThe output stream.
aThe angle.
Exception Safety
Provides basic exception guarantee.

◆ operator<<() [7/11]

std::ostream& lsst::afw::geom::operator<< ( std::ostream &  os,
Point2Endpoint const &  endpoint 
)

Print "Point2Endpoint()" to the ostream.

◆ operator<<() [8/11]

std::ostream& lsst::afw::geom::operator<< ( std::ostream &  os,
IcrsCoordEndpoint const &  endpoint 
)

Print "IcrsCoordEndpoint()" to the ostream.

◆ operator<<() [9/11]

std::ostream & operator<< ( std::ostream &  os,
SpherePoint const &  point 
)

Print the value of a point to a stream.

The exact details of the string representation are unspecified and subject to change, but the following may be regarded as typical: "(10.543250, +32.830583)".

Parameters
osthe stream to which to print point
pointthe point to print to the stream
Returns
a reference to os
Exceptions
pex::exceptions::std::ostream::failureThrown if an I/O state flag was set that was registered with os.exceptions(). See the documentation of std::ostream for more details.
Exception Safety
Provides basic exception guarantee.

◆ operator<<() [10/11]

std::ostream& lsst::afw::geom::operator<< ( std::ostream &  os,
Box2I const &  box 
)

◆ operator<<() [11/11]

std::ostream& lsst::afw::geom::operator<< ( std::ostream &  os,
Box2D const &  box 
)

◆ radToArcsec()

constexpr double lsst::afw::geom::radToArcsec ( double  x)
inlinenoexcept

Definition at line 35 of file Angle.h.

◆ radToDeg()

constexpr double lsst::afw::geom::radToDeg ( double  x)
inlinenoexcept

Definition at line 34 of file Angle.h.

◆ radToMas()

constexpr double lsst::afw::geom::radToMas ( double  x)
inlinenoexcept

Definition at line 36 of file Angle.h.

◆ truncate()

template<int N>
Extent<int, N> lsst::afw::geom::truncate ( Extent< double, N > const &  input)

Return the component-wise truncation (round towards zero).

In Python, this is available as both a free function and a method on ExtentD.

Variable Documentation

◆ arcminutes

AngleUnit constexpr lsst::afw::geom::arcminutes = AngleUnit(PI / 60 / 180.0)

constant with units of arcminutes

Definition at line 90 of file Angle.h.

◆ arcseconds

AngleUnit constexpr lsst::afw::geom::arcseconds = AngleUnit(PI / 180.0 / 3600.0)

constant with units of arcseconds

Definition at line 91 of file Angle.h.

◆ degrees

AngleUnit constexpr lsst::afw::geom::degrees = AngleUnit(PI / 180.0)

constant with units of degrees

Definition at line 88 of file Angle.h.

◆ HALFPI

double constexpr lsst::afw::geom::HALFPI = boost::math::constants::pi<double>() * 0.5

Definition at line 23 of file Angle.h.

◆ hours

AngleUnit constexpr lsst::afw::geom::hours = AngleUnit(PI * 15.0 / 180.0)

constant with units of hours

Definition at line 89 of file Angle.h.

◆ INVSQRTPI

double const lsst::afw::geom::INVSQRTPI = 1.0 / sqrt(boost::math::constants::pi<double>())

Definition at line 27 of file Angle.h.

◆ ONE_OVER_PI

double constexpr lsst::afw::geom::ONE_OVER_PI = 1.0 / boost::math::constants::pi<double>()

Definition at line 24 of file Angle.h.

◆ PI

double constexpr lsst::afw::geom::PI = boost::math::constants::pi<double>()

The ratio of a circle's circumference to diameter.

Definition at line 21 of file Angle.h.

◆ radians

AngleUnit constexpr lsst::afw::geom::radians = AngleUnit(1.0)

constant with units of radians

Definition at line 87 of file Angle.h.

◆ ROOT2

double constexpr lsst::afw::geom::ROOT2 = boost::math::constants::root_two<double>()

Definition at line 28 of file Angle.h.

◆ SQRTPI

double const lsst::afw::geom::SQRTPI = sqrt(boost::math::constants::pi<double>())

Definition at line 26 of file Angle.h.

◆ TWOPI

double constexpr lsst::afw::geom::TWOPI = boost::math::constants::pi<double>() * 2.0

Definition at line 22 of file Angle.h.