evael ~master (2021-10-23T09:29:02.1632381)
Dub
Repo
Rectangle
evael
utils
rectangle
Rectangle.
struct
Rectangle (
T
=
float
S
=
int
) {
T
left
;
T
right
;
T
bottom
;
T
top
;
Size
!
S
size
;
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);
}
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
(ivec2 position)
Undocumented in source. Be warned that the author may not have intended to support it.
isIn
bool
isIn
(vec2 position)
bottom
T
bottom
;
Undocumented in source. Be warned that the author may not have intended to support it.
Variables
left
T
left
;
right
T
right
;
Undocumented in source.
size
Size
!
S
size
;
top
T
top
;
Undocumented in source.
Meta
Source
See Implementation
evael
utils
rectangle
aliases
Rectanglef
rectf
structs
Rectangle
Rectangle.