15 lines
430 B
C++
15 lines
430 B
C++
namespace dk {
|
|
namespace implem {
|
|
///----------------------------------------------------------------------
|
|
///----------------------------------------------------------------------
|
|
template <uint32_t D>
|
|
CoordinateScalarType area (const Vector<D>& parVec) {
|
|
CoordinateScalarType retval(1);
|
|
for (size_t d = 0; d < D; ++d) {
|
|
retval *= parVec[d];
|
|
}
|
|
return retval;
|
|
}
|
|
} //namespake implem
|
|
|
|
} //namespake dk
|