RectangleT

Base template for all AABB-types.

Constructors

this
this(W width, H height)

Constructor

this
this(X x, Y y, W width, H height)

Constructor

Members

Functions

Bottom
T Bottom()

Gets the Y coordinate of the bottom of the rectangle

Center
Vector2 Center()

Gets the center of the rectangle (as floats)

Displace
RectangleT!T Displace(T x, T y)

Returns a displaced version of this rectangle

Expand
RectangleT!T Expand(T x, T y)

Returns an expanded version of this rectangle

Intersects
bool Intersects(T other)

Gets wether this rectangle intersects another

Intersects
bool Intersects(U other)

Gets wether a 2D vector is intersecting this rectangle

Left
T Left()

Gets the X coordinate of the left side of the rectangle

Right
T Right()

Gets the X coordinate of the right side of the rectangle

Top
T Top()

Gets the Y coordinate of the top of the rectangle

opBinary
RectangleT!T opBinary(T other)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
RectangleT!T opBinary(T other)
Undocumented in source. Be warned that the author may not have intended to support it.

Unions

__anonymous
union __anonymous
Undocumented in source.

Meta