Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/math
R2Box
Class R2Box
Hierarchy
R2Shape
R2Box
Implements
Interpolate
<
R2Box
>
HashCode
Equivalent
Debug
Index
Constructors
constructor
Properties
x
Max
x
Min
y
Max
y
Min
hitX
hitY
Accessors
bottom
bounds
center
height
left
right
top
width
x
y
Methods
contains
contains
Box
contains
Circle
contains
Point
contains
Segment
debug
equals
equivalent
To
hash
Code
interpolate
To
intersects
intersects
Box
intersects
Circle
intersects
Point
intersects
Segment
is
Defined
to
Any
to
String
transform
union
from
Any
from
Init
intersects
Segment
is
Any
is
Init
of
undefined
Constructors
constructor
new
R2Box
(
xMin
:
number
, yMin
:
number
, xMax
:
number
, yMax
:
number
)
:
R2Box
Parameters
xMin:
number
yMin:
number
xMax:
number
yMax:
number
Returns
R2Box
Properties
Readonly
x
Max
x
Max
:
number
Readonly
x
Min
x
Min
:
number
Readonly
y
Max
y
Max
:
number
Readonly
y
Min
y
Min
:
number
Static
hitX
hitX
:
number
Static
hitY
hitY
:
number
Accessors
bottom
get
bottom
(
)
:
number
Returns
number
bounds
get
bounds
(
)
:
R2Box
Returns
R2Box
center
get
center
(
)
:
R2Point
Returns
R2Point
height
get
height
(
)
:
number
Returns
number
left
get
left
(
)
:
number
Returns
number
right
get
right
(
)
:
number
Returns
number
top
get
top
(
)
:
number
Returns
number
width
get
width
(
)
:
number
Returns
number
x
get
x
(
)
:
number
Returns
number
y
get
y
(
)
:
number
Returns
number
Methods
contains
contains
(
that
:
AnyR2Shape
)
:
boolean
contains
(
x
:
number
, y
:
number
)
:
boolean
Parameters
that:
AnyR2Shape
Returns
boolean
Parameters
x:
number
y:
number
Returns
boolean
contains
Box
contains
Box
(
that
:
R2Box
)
:
boolean
Parameters
that:
R2Box
Returns
boolean
contains
Circle
contains
Circle
(
that
:
R2Circle
)
:
boolean
Parameters
that:
R2Circle
Returns
boolean
contains
Point
contains
Point
(
that
:
R2Point
)
:
boolean
Parameters
that:
R2Point
Returns
boolean
contains
Segment
contains
Segment
(
that
:
R2Segment
)
:
boolean
Parameters
that:
R2Segment
Returns
boolean
debug
debug
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
equivalent
To
equivalent
To
(
that
:
unknown
, epsilon
?:
number
)
:
boolean
Parameters
that:
unknown
Optional
epsilon:
number
Returns
boolean
hash
Code
hash
Code
(
)
:
number
Returns
number
interpolate
To
interpolate
To
(
that
:
R2Box
)
:
Interpolator
<
R2Box
>
interpolate
To
(
that
:
unknown
)
:
null
|
Interpolator
<
R2Box
>
Parameters
that:
R2Box
Returns
Interpolator
<
R2Box
>
Parameters
that:
unknown
Returns
null
|
Interpolator
<
R2Box
>
intersects
intersects
(
that
:
AnyR2Shape
)
:
boolean
Parameters
that:
AnyR2Shape
Returns
boolean
intersects
Box
intersects
Box
(
that
:
R2Box
)
:
boolean
Parameters
that:
R2Box
Returns
boolean
intersects
Circle
intersects
Circle
(
that
:
R2Circle
)
:
boolean
Parameters
that:
R2Circle
Returns
boolean
intersects
Point
intersects
Point
(
that
:
R2Point
)
:
boolean
Parameters
that:
R2Point
Returns
boolean
intersects
Segment
intersects
Segment
(
that
:
R2Segment
)
:
boolean
Parameters
that:
R2Segment
Returns
boolean
is
Defined
is
Defined
(
)
:
boolean
Returns
boolean
to
Any
to
Any
(
)
:
R2BoxInit
Returns
R2BoxInit
to
String
to
String
(
)
:
string
Returns
string
transform
transform
(
f
:
R2Function
)
:
R2Box
Parameters
f:
R2Function
Returns
R2Box
union
union
(
that
:
AnyR2Shape
)
:
R2Box
Parameters
that:
AnyR2Shape
Returns
R2Box
Static
from
Any
from
Any
(
value
:
AnyR2Box
)
:
R2Box
Parameters
value:
AnyR2Box
Returns
R2Box
Static
from
Init
from
Init
(
value
:
R2BoxInit
)
:
R2Box
Parameters
value:
R2BoxInit
Returns
R2Box
Static
intersects
Segment
intersects
Segment
(
d0
:
number
, d1
:
number
, x0
:
number
, y0
:
number
, x1
:
number
, y1
:
number
)
:
boolean
Parameters
d0:
number
d1:
number
x0:
number
y0:
number
x1:
number
y1:
number
Returns
boolean
Static
is
Any
is
Any
(
value
:
unknown
)
:
value
is
AnyR2Box
Parameters
value:
unknown
Returns
value
is
AnyR2Box
Static
is
Init
is
Init
(
value
:
unknown
)
:
value
is
R2BoxInit
Parameters
value:
unknown
Returns
value
is
R2BoxInit
Static
of
of
(
xMin
:
number
, yMin
:
number
, xMax
?:
number
, yMax
?:
number
)
:
R2Box
Parameters
xMin:
number
yMin:
number
Optional
xMax:
number
Optional
yMax:
number
Returns
R2Box
Static
undefined
undefined
(
)
:
R2Box
Returns
R2Box
Modules
@swim/system
@swim/core
@swim/util
@swim/codec
@swim/mapping
@swim/collections
@swim/constraint
@swim/structure
@swim/streamlet
@swim/dataflow
@swim/recon
@swim/uri
@swim/math
@swim/geo
@swim/time
@swim/mesh
@swim/toolkit
R2
Box
constructor
x
Max
x
Min
y
Max
y
Min
hitX
hitY
bottom
bounds
center
height
left
right
top
width
x
y
contains
contains
Box
contains
Circle
contains
Point
contains
Segment
debug
equals
equivalent
To
hash
Code
interpolate
To
intersects
intersects
Box
intersects
Circle
intersects
Point
intersects
Segment
is
Defined
to
Any
to
String
transform
union
from
Any
from
Init
intersects
Segment
is
Any
is
Init
of
undefined
Generated using
TypeDoc