provaengine ~master (2018-04-11T21:05:02Z)
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
)
getClosestSide
Side
getClosestSide
(
Vector2
position
)
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