dgame v0.4.1 (2015-02-22T14:21:21Z)
Home
Dub
Repo
Rect.enclosePoints
Dgame
Math
Rect
Rect
Use this function to calculate a minimal rectangle enclosing a set of points.
struct
Rect
(T)
static
Rect
enclosePoints
(
in
Vector2
!(
T
)[]
points
)
if
(
isNumeric
!
T
)
Meta
Source
See Implementation
Dgame
Math
Rect
Rect
constructors
this
functions
asArray
collapse
contains
getPosition
getSize
getUnion
increase
intersects
isCollapsed
isEmpty
isZero
move
opBinary
opBinaryRight
opCast
opEquals
set
setPosition
setSize
transferTo
static functions
enclosePoints
variables
height
width
x
y
Use this function to calculate a minimal rectangle enclosing a set of points.