Tesla Graphics Engine Documentation (January 2012)
Intersect Method (a, b, result)
Tesla
►
Tesla.Math
►
Rectangle
►
Intersect(Rectangle
%
, Rectangle
%
, Rectangle
%
)
C#
Finds the rectangle that represents the overlap (intersection) of two rectangles. May return empty
Declaration Syntax
C#
public
static
void
Intersect
(
ref
Rectangle
a
,
ref
Rectangle
b
,
out
Rectangle
result
)
Parameters
a
(
Rectangle
%
)
First rectangle
b
(
Rectangle
%
)
Second rectangle
result
(
Rectangle
%
)
Existing rectangle to hold result
Assembly:
Tesla
(Module: Tesla) Version: 0.5.0.0 (0.5.0.0)