2014-12-29 15:17:59 +00:00
|
|
|
namespace dk {
|
|
|
|
namespace implem {
|
|
|
|
///----------------------------------------------------------------------
|
|
|
|
///----------------------------------------------------------------------
|
2015-01-08 11:20:17 +00:00
|
|
|
template <uint32_t D>
|
2014-12-29 15:17:59 +00:00
|
|
|
CoordinateScalarType area (const Vector<CoordinateScalarType, D>& parVec) {
|
|
|
|
CoordinateScalarType retval(1);
|
|
|
|
for (size_t d = 0; d < D; ++d) {
|
|
|
|
retval *= parVec[d];
|
|
|
|
}
|
|
|
|
return retval;
|
|
|
|
}
|
|
|
|
} //namespake implem
|
|
|
|
|
|
|
|
} //namespake dk
|