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
R2QuadraticCurve
Class R2QuadraticCurve
Hierarchy
R2BezierCurve
R2QuadraticCurve
Implements
Debug
Index
Constructors
constructor
Properties
x0
x1
x2
y0
y1
y2
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
Defined
split
to
Path
String
to
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
R2Quadratic
Curve
(
x0
:
number
, y0
:
number
, x1
:
number
, y1
:
number
, x2
:
number
, y2
:
number
)
:
R2QuadraticCurve
Parameters
x0:
number
y0:
number
x1:
number
y1:
number
x2:
number
y2:
number
Returns
R2QuadraticCurve
Properties
Readonly
x0
x0
:
number
Readonly
x1
x1
:
number
Readonly
x2
x2
:
number
Readonly
y0
y0
:
number
Readonly
y1
y1
:
number
Readonly
y2
y2
:
number
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
:
R2CurveContext
)
:
void
Parameters
context:
R2CurveContext
Returns
void
draw
Rest
draw
Rest
(
context
:
R2CurveContext
)
:
void
Parameters
context:
R2CurveContext
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
Defined
is
Defined
(
)
:
boolean
Returns
boolean
split
split
(
u
:
number
)
:
[
R2QuadraticCurve
,
R2QuadraticCurve
]
Parameters
u:
number
Returns
[
R2QuadraticCurve
,
R2QuadraticCurve
]
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
)
:
R2QuadraticCurve
Parameters
f:
R2Function
Returns
R2QuadraticCurve
transform
Draw
transform
Draw
(
context
:
R2CurveContext
, f
:
R2Function
)
:
void
Parameters
context:
R2CurveContext
f:
R2Function
Returns
void
transform
Draw
Move
transform
Draw
Move
(
context
:
R2CurveContext
, f
:
R2Function
)
:
void
Parameters
context:
R2CurveContext
f:
R2Function
Returns
void
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
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
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
Quadratic
Curve
constructor
x0
x1
x2
y0
y1
y2
bounds
x
Max
x
Min
y
Max
y
Min
contains
debug
draw
draw
Move
draw
Rest
equals
equivalent
To
interpolate
interpolateX
interpolateY
intersects
is
Defined
split
to
Path
String
to
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