ScissorRectHelper.Intersect(Nullable, Nullable) Method
Definition¶
Namespace: Brine2D.Rendering
Computes the effective scissor rectangle when pushing a new rect onto an existing one. Returns the intersection of current and incoming, or a zero-area rectangle when the two do not overlap.
public static System.Nullable<Brine2D.Core.Rectangle> Intersect(System.Nullable<Brine2D.Core.Rectangle> current, System.Nullable<Brine2D.Core.Rectangle> incoming);
Parameters¶
current System.Nullable<Rectangle>
incoming System.Nullable<Rectangle>