#ifndef _SelectMgr_VectorTypes_HeaderFile #define _SelectMgr_VectorTypes_HeaderFile #include #include #include #include #include typedef NCollection_Vec3 SelectMgr_Vec3; typedef NCollection_Vec4 SelectMgr_Vec4; typedef NCollection_Mat4 SelectMgr_Mat4; namespace SelectMgr_MatOp { inline SelectMgr_Vec3 Transform (const gp_Trsf& theTrsf, const SelectMgr_Vec3& theVec) { SelectMgr_Vec3 aRes (0.0); for (Standard_Integer aRow = 1; aRow <= 3; ++aRow) { for (Standard_Integer aCol = 1; aCol <= 3; ++aCol) { aRes[aRow - 1] += theVec[aCol - 1] * theTrsf.Value (aRow, aCol); } aRes[aRow - 1] += theTrsf.Value (aRow, 4); } return aRes; } }; #endif // _SelectMgr_VectorTypes_HeaderFile