provaengine v0.2.0-alpha (2018-03-19T00:32:13Z)
Dub
Repo
Rect
prova
math
rect
struct
Rect {
float
left
;
float
top
;
float
width
;
float
height
;
this
(float left, float top, float width, float height);
void
set
(float left, float top, float width, float height);
float
right
[@property getter];
float
right
[@property setter];
float
bottom
[@property getter];
float
bottom
[@property setter];
Vector2
getSize
();
Vector2
getCenter
();
Vector2
getTopLeft
();
Vector2
getTopRight
();
Vector2
getBottomLeft
();
Vector2
getBottomRight
();
Side
getClosestSide
(Rect rect);
Side
getClosestSide
(Vector2 position);
}
Constructors
this
this
(float left, float top, float width, float height)
Members
Functions
getBottomLeft
Vector2
getBottomLeft
()
getBottomRight
Vector2
getBottomRight
()
getCenter
Vector2
getCenter
()
getClosestSide
Side
getClosestSide
(Rect rect)
Undocumented in source. Be warned that the author may not have intended to support it.
getClosestSide
Side
getClosestSide
(Vector2 position)
Undocumented in source. Be warned that the author may not have intended to support it.
getSize
Vector2
getSize
()
getTopLeft
Vector2
getTopLeft
()
getTopRight
Vector2
getTopRight
()
set
void
set
(float left, float top, float width, float height)
/ Sets the position and dimensions of the rect in a single statement
Properties
bottom
float
bottom
[@property getter]
bottom
float
bottom
[@property setter]
right
float
right
[@property getter]
right
float
right
[@property setter]
Variables
height
float
height
;
left
float
left
;
top
float
top
;
width
float
width
;
Meta
Source
See Implementation
prova
math
rect
enums
Side
structs
Rect