Search
Preparing search index...
The search index is not available
Swim Toolkit
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
Swim Toolkit
@swim/geo
GeoPath
Class GeoPath
Hierarchy
GeoShape
GeoPath
Implements
Equals
Equivalent
Debug
Index
Constructors
constructor
Properties
bounding
Box
splines
Accessors
bounds
lat
Max
lat
Min
lng
Max
lng
Min
Methods
centroid
contains
debug
equals
equivalent
To
for
Each
Coord
interpolate
interpolate
Lat
interpolate
Lng
intersects
is
Defined
project
split
subdivide
to
String
union
builder
closed
empty
from
Any
from
Points
from
Splines
is
Any
is
Any
Path
is
Splines
of
open
Constructors
constructor
new
Geo
Path
(
splines
:
readonly
GeoSpline
[]
)
:
GeoPath
Parameters
splines:
readonly
GeoSpline
[]
Returns
GeoPath
Properties
Readonly
bounding
Box
bounding
Box
:
null
|
GeoBox
Readonly
splines
splines
:
readonly
GeoSpline
[]
Accessors
bounds
get
bounds
(
)
:
GeoBox
Returns
GeoBox
lat
Max
get
latMax
(
)
:
number
Returns
number
lat
Min
get
latMin
(
)
:
number
Returns
number
lng
Max
get
lngMax
(
)
:
number
Returns
number
lng
Min
get
lngMin
(
)
:
number
Returns
number
Methods
centroid
centroid
(
)
:
GeoPoint
Returns
GeoPoint
contains
contains
(
that
:
AnyGeoShape
)
:
boolean
contains
(
x
:
number
, y
:
number
)
:
boolean
Parameters
that:
AnyGeoShape
Returns
boolean
Parameters
x:
number
y:
number
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
for
Each
Coord
for
Each
Coord<R>
(
callback
:
(
lng
:
number
, lat
:
number
)
=>
void
|
R
)
:
undefined
|
R
for
Each
Coord<R, S>
(
callback
:
(
lng
:
number
, lat
:
number
)
=>
void
|
R
, thisArg
:
S
)
:
undefined
|
R
Type parameters
R
Parameters
callback:
(
lng
:
number
, lat
:
number
)
=>
void
|
R
(
lng
:
number
, lat
:
number
)
:
void
|
R
Parameters
lng:
number
lat:
number
Returns
void
|
R
Returns
undefined
|
R
Type parameters
R
S
Parameters
callback:
(
lng
:
number
, lat
:
number
)
=>
void
|
R
(
lng
:
number
, lat
:
number
)
:
void
|
R
Parameters
lng:
number
lat:
number
Returns
void
|
R
thisArg:
S
Returns
undefined
|
R
interpolate
interpolate
(
u
:
number
)
:
GeoPoint
Parameters
u:
number
Returns
GeoPoint
interpolate
Lat
interpolate
Lat
(
u
:
number
)
:
number
Parameters
u:
number
Returns
number
interpolate
Lng
interpolate
Lng
(
u
:
number
)
:
number
Parameters
u:
number
Returns
number
intersects
intersects
(
that
:
AnyGeoShape
)
:
boolean
Parameters
that:
AnyGeoShape
Returns
boolean
is
Defined
is
Defined
(
)
:
boolean
Returns
boolean
project
project
(
f
:
GeoProjection
)
:
R2Path
Parameters
f:
GeoProjection
Returns
R2Path
split
split
(
u
:
number
)
:
[
GeoPath
,
GeoPath
]
Parameters
u:
number
Returns
[
GeoPath
,
GeoPath
]
subdivide
subdivide
(
u
:
number
)
:
GeoPath
Parameters
u:
number
Returns
GeoPath
to
String
to
String
(
)
:
string
Returns
string
union
union
(
that
:
AnyGeoShape
)
:
GeoShape
Parameters
that:
AnyGeoShape
Returns
GeoShape
Static
builder
builder
(
)
:
GeoPathBuilder
Returns
GeoPathBuilder
Static
closed
closed
(
...
curves
:
GeoCurve
[]
)
:
GeoPath
Parameters
Rest
...
curves:
GeoCurve
[]
Returns
GeoPath
Static
empty
empty
(
)
:
GeoPath
Returns
GeoPath
Static
from
Any
from
Any
(
value
:
AnyGeoPath
)
:
GeoPath
from
Any
(
value
:
AnyGeoShape
)
:
GeoShape
Parameters
value:
AnyGeoPath
Returns
GeoPath
Parameters
value:
AnyGeoShape
Returns
GeoShape
Static
from
Points
from
Points
(
points
:
GeoSplinePoints
)
:
GeoPath
Parameters
points:
GeoSplinePoints
Returns
GeoPath
Static
from
Splines
from
Splines
(
values
:
GeoPathSplines
)
:
GeoPath
Parameters
values:
GeoPathSplines
Returns
GeoPath
Static
is
Any
is
Any
(
value
:
unknown
)
:
value
is
AnyGeoShape
Parameters
value:
unknown
Returns
value
is
AnyGeoShape
Static
is
Any
Path
is
Any
Path
(
value
:
unknown
)
:
value
is
AnyGeoPath
Parameters
value:
unknown
Returns
value
is
AnyGeoPath
Static
is
Splines
is
Splines
(
value
:
unknown
)
:
value
is
GeoPathSplines
Parameters
value:
unknown
Returns
value
is
GeoPathSplines
Static
of
of
(
...
splines
:
GeoSpline
[]
)
:
GeoPath
Parameters
Rest
...
splines:
GeoSpline
[]
Returns
GeoPath
Static
open
open
(
...
curves
:
GeoCurve
[]
)
:
GeoPath
Parameters
Rest
...
curves:
GeoCurve
[]
Returns
GeoPath
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
Geo
Path
constructor
bounding
Box
splines
bounds
lat
Max
lat
Min
lng
Max
lng
Min
centroid
contains
debug
equals
equivalent
To
for
Each
Coord
interpolate
interpolate
Lat
interpolate
Lng
intersects
is
Defined
project
split
subdivide
to
String
union
builder
closed
empty
from
Any
from
Points
from
Splines
is
Any
is
Any
Path
is
Splines
of
open
Generated using
TypeDoc