1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0024473: TKMath, BVH - introduce template-based package for Bounding volume hierarchy structures and tools

This commit is contained in:
dbp
2014-01-15 17:21:18 +04:00
committed by bugmaster
parent 68333c8f16
commit 3c4e78f24f
38 changed files with 3347 additions and 0 deletions

View File

@@ -284,6 +284,24 @@ public:
return aCopyVec4;
}
//! Compute component-wise minimum of two vectors.
NCollection_Vec4 cwiseMin (const NCollection_Vec4& theVec) const
{
return NCollection_Vec4 (Min (v[0], theVec.v[0]),
Min (v[1], theVec.v[1]),
Min (v[2], theVec.v[2]),
Min (v[3], theVec.v[3]));
}
//! Compute component-wise maximum of two vectors.
NCollection_Vec4 cwiseMax (const NCollection_Vec4& theVec) const
{
return NCollection_Vec4 (Max (v[0], theVec.v[0]),
Max (v[1], theVec.v[1]),
Max (v[2], theVec.v[2]),
Max (v[3], theVec.v[3]));
}
//! Compute per-component division by scale factor.
NCollection_Vec4& operator/= (const Element_t theInvFactor)
{