LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Functions
lsst::afw::geom::detail Namespace Reference

Functions

template<int N>
double computeExtentNorm (Extent< double, N > const &s)
 
template<int N>
int computeExtentNorm (Extent< int, N > const &s)
 

Function Documentation

template<int N>
double lsst::afw::geom::detail::computeExtentNorm ( Extent< double, N > const &  s)

Definition at line 45 of file Extent.h.

45  {
46  return s.asEigen().norm();
47 }
template<int N>
int lsst::afw::geom::detail::computeExtentNorm ( Extent< int, N > const &  s)

Definition at line 50 of file Extent.h.

50  {
51  throw LSST_EXCEPT(
52  pex::exceptions::LogicError,
53  "Cannot compute norm of integer extent"
54  );
55 #if 1 // make compilers happy in non-void function
56  return -1;
57 #endif
58 }
#define LSST_EXCEPT(type,...)
Definition: Exception.h:46