16 lines
450 B
Text
16 lines
450 B
Text
|
namespace dk {
|
||
|
namespace implem {
|
||
|
///----------------------------------------------------------------------
|
||
|
///----------------------------------------------------------------------
|
||
|
template <size_t D>
|
||
|
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
|