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
R2Spline
Class R2Spline
Hierarchy
R2Curve
R2Spline
Implements
Debug
Index
Constructors
constructor
Properties
bounding
Box
closed
curves
path
String
Accessors
bounds
x
Max
x
Min
y
Max
y
Min
Methods
contains
debug
draw
draw
Move
draw
Rest
equals
equivalent
To
interpolate
interpolateX
interpolateY
intersects
is
Closed
is
Defined
split
subdivide
to
Path
String
to
String
transform
transform
Draw
transform
Draw
Move
transform
Draw
Rest
union
write
Move
write
Path
write
Rest
builder
closed
cubic
elliptic
empty
from
Any
is
Any
linear
open
parse
quadratic
Constructors
constructor
new
R2Spline
(
curves
:
readonly
R2Curve
[]
, closed
:
boolean
)
:
R2Spline
Parameters
curves:
readonly
R2Curve
[]
closed:
boolean
Returns
R2Spline
Properties
Readonly
bounding
Box
bounding
Box
:
null
|
R2Box
Readonly
closed
closed
:
boolean
Readonly
curves
curves
:
readonly
R2Curve
[]
Readonly
path
String
path
String
:
undefined
|
string
Accessors
bounds
get
bounds
(
)
:
R2Box
Returns
R2Box
x
Max
get
xMax
(
)
:
number
Returns
number
x
Min
get
xMin
(
)
:
number
Returns
number
y
Max
get
yMax
(
)
:
number
Returns
number
y
Min
get
yMin
(
)
:
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
debug
debug
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
draw
draw
(
context
:
R2CurveContext
)
:
void
Parameters
context:
R2CurveContext
Returns
void
draw
Move
draw
Move
(
context
:
R2SplineContext
)
:
void
Parameters
context:
R2SplineContext
Returns
void
draw
Rest
draw
Rest
(
context
:
R2SplineContext
)
:
void
Parameters
context:
R2SplineContext
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
interpolate
interpolate
(
u
:
number
)
:
R2Point
Parameters
u:
number
Returns
R2Point
interpolateX
interpolateX
(
u
:
number
)
:
number
Parameters
u:
number
Returns
number
interpolateY
interpolateY
(
u
:
number
)
:
number
Parameters
u:
number
Returns
number
intersects
intersects
(
that
:
AnyR2Shape
)
:
boolean
Parameters
that:
AnyR2Shape
Returns
boolean
is
Closed
is
Closed
(
)
:
boolean
Returns
boolean
is
Defined
is
Defined
(
)
:
boolean
Returns
boolean
split
split
(
u
:
number
)
:
[
R2Spline
,
R2Spline
]
Parameters
u:
number
Returns
[
R2Spline
,
R2Spline
]
subdivide
subdivide
(
u
:
number
)
:
R2Spline
Parameters
u:
number
Returns
R2Spline
to
Path
String
to
Path
String
(
outputSettings
?:
AnyOutputSettings
)
:
string
Parameters
Optional
outputSettings:
AnyOutputSettings
Returns
string
to
String
to
String
(
)
:
string
Returns
string
transform
transform
(
f
:
R2Function
)
:
R2Spline
Parameters
f:
R2Function
Returns
R2Spline
transform
Draw
transform
Draw
(
context
:
R2CurveContext
, f
:
R2Function
)
:
void
Parameters
context:
R2CurveContext
f:
R2Function
Returns
void
transform
Draw
Move
transform
Draw
Move
(
context
:
R2SplineContext
, f
:
R2Function
)
:
void
Parameters
context:
R2SplineContext
f:
R2Function
Returns
void
transform
Draw
Rest
transform
Draw
Rest
(
context
:
R2SplineContext
, f
:
R2Function
)
:
void
Parameters
context:
R2SplineContext
f:
R2Function
Returns
void
union
union
(
that
:
AnyR2Shape
)
:
R2Shape
Parameters
that:
AnyR2Shape
Returns
R2Shape
write
Move
write
Move
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
write
Path
write
Path
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
write
Rest
write
Rest
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
Static
builder
builder
(
)
:
R2SplineBuilder
Returns
R2SplineBuilder
Static
closed
closed
(
...
curves
:
R2Curve
[]
)
:
R2Spline
Parameters
Rest
...
curves:
R2Curve
[]
Returns
R2Spline
Static
cubic
cubic
(
x0
:
number
, y0
:
number
, x1
:
number
, y1
:
number
, x2
:
number
, y2
:
number
, x3
:
number
, y3
:
number
)
:
R2Curve
Parameters
x0:
number
y0:
number
x1:
number
y1:
number
x2:
number
y2:
number
x3:
number
y3:
number
Returns
R2Curve
Static
elliptic
elliptic
(
cx
:
number
, cy
:
number
, rx
:
number
, ry
:
number
, phi
:
number
, a0
:
number
, da
:
number
)
:
R2Curve
Parameters
cx:
number
cy:
number
rx:
number
ry:
number
phi:
number
a0:
number
da:
number
Returns
R2Curve
Static
empty
empty
(
)
:
R2Spline
Returns
R2Spline
Static
from
Any
from
Any
(
value
:
AnyR2Shape
)
:
R2Shape
Parameters
value:
AnyR2Shape
Returns
R2Shape
Static
is
Any
is
Any
(
value
:
unknown
)
:
value
is
AnyR2Shape
Parameters
value:
unknown
Returns
value
is
AnyR2Shape
Static
linear
linear
(
x0
:
number
, y0
:
number
, x1
:
number
, y1
:
number
)
:
R2Curve
Parameters
x0:
number
y0:
number
x1:
number
y1:
number
Returns
R2Curve
Static
open
open
(
...
curves
:
R2Curve
[]
)
:
R2Spline
Parameters
Rest
...
curves:
R2Curve
[]
Returns
R2Spline
Static
parse
parse
(
string
:
string
)
:
R2Spline
Parameters
string:
string
Returns
R2Spline
Static
quadratic
quadratic
(
x0
:
number
, y0
:
number
, x1
:
number
, y1
:
number
, x2
:
number
, y2
:
number
)
:
R2Curve
Parameters
x0:
number
y0:
number
x1:
number
y1:
number
x2:
number
y2:
number
Returns
R2Curve
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
Spline
constructor
bounding
Box
closed
curves
path
String
bounds
x
Max
x
Min
y
Max
y
Min
contains
debug
draw
draw
Move
draw
Rest
equals
equivalent
To
interpolate
interpolateX
interpolateY
intersects
is
Closed
is
Defined
split
subdivide
to
Path
String
to
String
transform
transform
Draw
transform
Draw
Move
transform
Draw
Rest
union
write
Move
write
Path
write
Rest
builder
closed
cubic
elliptic
empty
from
Any
is
Any
linear
open
parse
quadratic
Generated using
TypeDoc