/** * @brief * Creates selection planes */ void PlaneSet::CreateSelectionPlanes(const Vector2 &vStartPos, const Vector2 &vEndPos, int nX, int nY, int nWidth, int nHeight, const Matrix4x4 &mProjection, const Matrix4x4 &mView, bool bInfProj) { // Calculate restricted projection matrix Matrix4x4 mRestrictedProjection; mRestrictedProjection.RestrictedProjection(vStartPos, vEndPos, nX, nY, nWidth, nHeight); mRestrictedProjection *= mProjection; // Concatenate (multiply) the view matrix and the projection matrix mRestrictedProjection *= mView; // Create selection planes CreateViewPlanes(mRestrictedProjection, bInfProj); }