public static bool BoundsIntersect(this MatrixInfo matrix, MatrixInfo otherMatrix, out BetterBounds intersection) { intersection = new BetterBounds(); if (matrix == null || otherMatrix == null || matrix == otherMatrix) { return(false); } var rect = matrix.WorldBounds; var Otherrect = otherMatrix.WorldBounds; return(rect.Intersects(Otherrect, out intersection)); }
public MatrixIntersection Clone(ref BetterBounds rect) => new MatrixIntersection(Matrix1, Matrix2, rect);
public MatrixIntersection(MatrixInfo matrix1, MatrixInfo matrix2, BetterBounds rect) { Matrix1 = matrix1; Matrix2 = matrix2; Rect = rect; }