evael v0.0.1 (2019-04-17T22:22:13Z)
Dub
Repo
Rectangle
evael
utils
Rectangle
Rectangle.
struct
Rectangle (
T
=
float
S
=
int
) {
T
left
;
T
right
;
T
bottom
;
T
top
;
this
(T left, T bottom, S width, S height);
this
(T left, T bottom, Size!S size);
this
(Vector!(T, 2) position, Size!S size);
bool
isIn
(ivec2 position);
bool
isIn
(vec2 position);
const
(
Size
!
S
)
size
[@property getter];
Size
!
S
size
[@property setter];
}
Constructors
this
this
(T left, T bottom, S width, S height)
Undocumented in source.
this
this
(T left, T bottom, Size!S size)
Undocumented in source.
this
this
(Vector!(T, 2) position, Size!S size)
Undocumented in source.
Members
Functions
isIn
bool
isIn
(vec2 position)
Undocumented in source. Be warned that the author may not have intended to support it.
isIn
bool
isIn
(ivec2 position)
Undocumented in source. Be warned that the author may not have intended to support it.
Properties
size
const
(
Size
!
S
)
size
[@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
size
Size
!
S
size
[@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
bottom
T
bottom
;
Rectangle bounds
left
T
left
;
right
T
right
;
top
T
top
;
Rectangle bounds
Meta
Source
See Implementation
evael
utils
Rectangle
aliases
Rectanglef
structs
Rectangle
Rectangle.