LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
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