ae ~master (2024-01-05T13:09:51Z)
Home
Dub
Repo
Shape
ae
utils
geometry
Undocumented in source.
struct
Shape (
T
) {
ShapeKind
kind
;
union
__anonymous
;
this
(Point!T point);
this
(Rect!T rect);
this
(Circle!T circle);
auto
opDispatch
(T args);
}
Constructors
this
this
(Point!T point)
Undocumented in source.
this
this
(Rect!T rect)
Undocumented in source.
this
this
(Circle!T circle)
Undocumented in source.
Members
Functions
opDispatch
auto
opDispatch
(T args)
Dispatches operations common to all shapes.
Unions
__anonymous
union
__anonymous
Undocumented in source.
Variables
kind
ShapeKind
kind
;
Wrapped shape.
Meta
Source
See Implementation
ae
utils
geometry
enums
ShapeKind
functions
circle
dist
dist2
intersects
point
rect
shape
sqrtx
manifest constants
TAU
structs
Circle
Point
Rect
Shape