Rectangle2

References
public class Rectangle2
Represents a single, two-dimensional, orthogonal rectangle.

Constructors

Rectangle2

#
public Rectangle2()

Rectangle2

#
public Rectangle2()

Rectangle2

#
public Rectangle2(
p0,
p1
)

Fields

x_max

#
public double x_max

x_min

#
public double x_min

y_max

#
public double y_max

y_min

#
public double y_min

Properties

IsValid

#
public bool IsValid { get; }

Methods

Grow

#
Grow the rectangle to include a point. Rectangle must be increasing for this to work properly.
public void Grow(
x,
X-coordinate of point to include.
y
Y-coordinate of point to include.
)

Grow

#
Grow the rectangle to include a point. Rectangle must be increasing for this to work properly.
public void Grow(
pt
Point to include in rectangle.
)

Grow

#
public void Grow()

Includes

#
Solve containment for a point and this rectangle.
public Containment Includes()

Includes

#
Solve containment for a point and this rectangle.
public Containment Includes()

Intersect

#
Solve intersection between a semi-infinite line and the rectangle.
public Node2 Intersect(
line
Semi-infinite line to intersect with.
)
The point on the semi-infinite line where the intersection occured.

MakeIncreasing

#
Ensure the limits are all increasing.
public void MakeIncreasing()

ParameterAt

#
public Node2 ParameterAt()

ParameterAt

#
public Node2 ParameterAt()

PointAt

#
Get a point in rectangle space.
public Node2 PointAt(
x,
Normalised parameter long rectangle x direction.
y
Normalised parameter long rectangle y direction.
)