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
R2EllipticCurve
Class R2EllipticCurve
Hierarchy
R2Curve
R2EllipticCurve
Implements
Debug
Index
Constructors
constructor
Properties
a0
cx
cy
da
phi
rx
ry
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
split
to
Endpoints
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
from
Endpoints
is
Any
linear
parse
quadratic
Constructors
constructor
new
R2Elliptic
Curve
(
cx
:
number
, cy
:
number
, rx
:
number
, ry
:
number
, phi
:
number
, a0
:
number
, da
:
number
)
:
R2EllipticCurve
Parameters
cx:
number
cy:
number
rx:
number
ry:
number
phi:
number
a0:
number
da:
number
Returns
R2EllipticCurve
Properties
Readonly
a0
a0
:
number
Readonly
cx
cx
:
number
Readonly
cy
cy
:
number
Readonly
da
da
:
number
Readonly
phi
phi
:
number
Readonly
rx
rx
:
number
Readonly
ry
ry
:
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
split
split
(
u
:
number
)
:
[
R2EllipticCurve
,
R2EllipticCurve
]
Parameters
u:
number
Returns
[
R2EllipticCurve
,
R2EllipticCurve
]
to
Endpoints
to
Endpoints
(
)
:
{
large
:
boolean
;
phi
:
number
;
rx
:
number
;
ry
:
number
;
sweep
:
boolean
;
x0
:
number
;
x1
:
number
;
y0
:
number
;
y1
:
number
}
Returns
{
large
:
boolean
;
phi
:
number
;
rx
:
number
;
ry
:
number
;
sweep
:
boolean
;
x0
:
number
;
x1
:
number
;
y0
:
number
;
y1
:
number
}
large
:
boolean
phi
:
number
rx
:
number
ry
:
number
sweep
:
boolean
x0
:
number
x1
:
number
y0
:
number
y1
:
number
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
)
:
R2EllipticCurve
Parameters
f:
R2Function
Returns
R2EllipticCurve
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
from
Endpoints
from
Endpoints
(
x0
:
number
, y0
:
number
, rx
:
number
, ry
:
number
, phi
:
number
, large
:
boolean
, sweep
:
boolean
, x1
:
number
, y1
:
number
)
:
R2EllipticCurve
Parameters
x0:
number
y0:
number
rx:
number
ry:
number
phi:
number
large:
boolean
sweep:
boolean
x1:
number
y1:
number
Returns
R2EllipticCurve
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
Elliptic
Curve
constructor
a0
cx
cy
da
phi
rx
ry
bounds
x
Max
x
Min
y
Max
y
Min
contains
debug
draw
draw
Move
draw
Rest
equals
equivalent
To
interpolate
interpolateX
interpolateY
intersects
split
to
Endpoints
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
from
Endpoints
is
Any
linear
parse
quadratic
Generated using
TypeDoc