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
R2BezierCurve
Class R2BezierCurve
Hierarchy
R2Curve
R2BezierCurve
R2Segment
R2QuadraticCurve
R2CubicCurve
Index
Constructors
constructor
Properties
x
Max
x
Min
y
Max
y
Min
Accessors
bounds
Methods
contains
draw
draw
Move
draw
Rest
equals
equivalent
To
interpolate
interpolateX
interpolateY
intersects
split
to
Path
String
transform
transform
Draw
transform
Draw
Move
transform
Draw
Rest
union
write
Move
write
Path
write
Rest
cubic
elliptic
from
Any
is
Any
linear
parse
quadratic
Constructors
constructor
new
R2Bezier
Curve
(
)
:
R2BezierCurve
Returns
R2BezierCurve
Properties
Readonly
Abstract
x
Max
x
Max
:
number
Readonly
Abstract
x
Min
x
Min
:
number
Readonly
Abstract
y
Max
y
Max
:
number
Readonly
Abstract
y
Min
y
Min
:
number
Accessors
bounds
get
bounds
(
)
:
R2Box
Returns
R2Box
Methods
Abstract
contains
contains
(
that
:
AnyR2Shape
)
:
boolean
contains
(
x
:
number
, y
:
number
)
:
boolean
Parameters
that:
AnyR2Shape
Returns
boolean
Parameters
x:
number
y:
number
Returns
boolean
draw
draw
(
context
:
R2CurveContext
)
:
void
Parameters
context:
R2CurveContext
Returns
void
Abstract
draw
Move
draw
Move
(
context
:
R2CurveContext
)
:
void
Parameters
context:
R2CurveContext
Returns
void
Abstract
draw
Rest
draw
Rest
(
context
:
R2CurveContext
)
:
void
Parameters
context:
R2CurveContext
Returns
void
Abstract
equals
equals
(
that
:
unknown
)
:
boolean
Parameters
that:
unknown
Returns
boolean
Abstract
equivalent
To
equivalent
To
(
that
:
unknown
, epsilon
?:
number
)
:
boolean
Parameters
that:
unknown
Optional
epsilon:
number
Returns
boolean
Abstract
interpolate
interpolate
(
u
:
number
)
:
R2Point
Parameters
u:
number
Returns
R2Point
Abstract
interpolateX
interpolateX
(
u
:
number
)
:
number
Parameters
u:
number
Returns
number
Abstract
interpolateY
interpolateY
(
u
:
number
)
:
number
Parameters
u:
number
Returns
number
Abstract
intersects
intersects
(
that
:
AnyR2Shape
)
:
boolean
Parameters
that:
AnyR2Shape
Returns
boolean
Abstract
split
split
(
u
:
number
)
:
[
R2Curve
,
R2Curve
]
Parameters
u:
number
Returns
[
R2Curve
,
R2Curve
]
to
Path
String
to
Path
String
(
outputSettings
?:
AnyOutputSettings
)
:
string
Parameters
Optional
outputSettings:
AnyOutputSettings
Returns
string
Abstract
transform
transform
(
f
:
R2Function
)
:
R2BezierCurve
Parameters
f:
R2Function
Returns
R2BezierCurve
transform
Draw
transform
Draw
(
context
:
R2CurveContext
, f
:
R2Function
)
:
void
Parameters
context:
R2CurveContext
f:
R2Function
Returns
void
Abstract
transform
Draw
Move
transform
Draw
Move
(
context
:
R2CurveContext
, f
:
R2Function
)
:
void
Parameters
context:
R2CurveContext
f:
R2Function
Returns
void
Abstract
transform
Draw
Rest
transform
Draw
Rest
(
context
:
R2CurveContext
, f
:
R2Function
)
:
void
Parameters
context:
R2CurveContext
f:
R2Function
Returns
void
union
union
(
that
:
AnyR2Shape
)
:
R2Shape
Parameters
that:
AnyR2Shape
Returns
R2Shape
Abstract
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
Abstract
write
Rest
write
Rest
(
output
:
Output
<
unknown
>
)
:
void
Parameters
output:
Output
<
unknown
>
Returns
void
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
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
parse
parse
(
string
:
string
)
:
R2Curve
Parameters
string:
string
Returns
R2Curve
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
Bezier
Curve
constructor
x
Max
x
Min
y
Max
y
Min
bounds
contains
draw
draw
Move
draw
Rest
equals
equivalent
To
interpolate
interpolateX
interpolateY
intersects
split
to
Path
String
transform
transform
Draw
transform
Draw
Move
transform
Draw
Rest
union
write
Move
write
Path
write
Rest
cubic
elliptic
from
Any
is
Any
linear
parse
quadratic
Generated using
TypeDoc