Rectangle

Base template for all AABB-types.

Constructors

this
this()
Undocumented in source.
this
this(int width, int height)
Undocumented in source.
this
this(int x, int y, int width, int height)
Undocumented in source.

Public Imports

std.traits
public import std.traits;
Undocumented in source.

Members

Functions

Bottom
int Bottom()
Undocumented in source. Be warned that the author may not have intended to support it.
Center
Vector2 Center()
Undocumented in source. Be warned that the author may not have intended to support it.
Displace
Rectangle Displace(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
Expand
Rectangle Expand(int x, int y)
Undocumented in source. Be warned that the author may not have intended to support it.
Intersects
bool Intersects(Rectangle other)
Undocumented in source. Be warned that the author may not have intended to support it.
Intersects
bool Intersects(Vector2 other)
Undocumented in source. Be warned that the author may not have intended to support it.
Left
int Left()
Undocumented in source. Be warned that the author may not have intended to support it.
Right
int Right()
Undocumented in source. Be warned that the author may not have intended to support it.
Top
int Top()
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Rectangle opBinary(T other)
Undocumented in source. Be warned that the author may not have intended to support it.
opBinary
Rectangle opBinary(T other)
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

Height
int Height;
Undocumented in source.
Width
int Width;
Undocumented in source.
X
int X;
Undocumented in source.
Y
int Y;
Undocumented in source.

Meta