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
GeoSegment
Class GeoSegment
Hierarchy
GeoCurve
GeoSegment
Implements
Interpolate
<
GeoSegment
>
HashCode
Debug
Index
Constructors
constructor
Properties
lat0
lat1
lng0
lng1
Accessors
bounds
lat
Max
lat
Min
lng
Max
lng
Min
Methods
contains
contains
Point
contains
Segment
debug
equals
equivalent
To
for
Each
Coord
for
Each
Coord
Rest
hash
Code
interpolate
interpolate
Lat
interpolate
Lng
interpolate
To
intersects
intersects
Point
intersects
Segment
is
Defined
project
split
to
Any
to
String
union
from
Any
from
Init
is
Any
is
Init
of
Constructors
constructor
new
Geo
Segment
(
lng0
:
number
, lat0
:
number
, lng1
:
number
, lat1
:
number
)
:
GeoSegment
Parameters
lng0:
number
lat0:
number
lng1:
number
lat1:
number
Returns
GeoSegment
Properties
Readonly
lat0
lat0
:
number
Readonly
lat1
lat1
:
number
Readonly
lng0
lng0
:
number
Readonly
lng1
lng1
:
number
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
contains
contains
(
that
:
AnyGeoShape
)
:
boolean
contains
(
lng
:
number
, lat
:
number
)
:
boolean
Parameters
that:
AnyGeoShape
Returns
boolean
Parameters
lng:
number
lat:
number
Returns
boolean
contains
Point
contains
Point
(
that
:
GeoPoint
)
:
boolean
Parameters
that:
GeoPoint
Returns
boolean
contains
Segment
contains
Segment
(
that
:
GeoSegment
)
:
boolean
Parameters
that:
GeoSegment
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
for
Each
Coord
Rest
for
Each
Coord
Rest<R>
(
callback
:
(
lng
:
number
, lat
:
number
)
=>
void
|
R
)
:
undefined
|
R
for
Each
Coord
Rest<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
hash
Code
hash
Code
(
)
:
number
Returns
number
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
interpolate
To
interpolate
To
(
that
:
GeoSegment
)
:
Interpolator
<
GeoSegment
>
interpolate
To
(
that
:
unknown
)
:
null
|
Interpolator
<
GeoSegment
>
Parameters
that:
GeoSegment
Returns
Interpolator
<
GeoSegment
>
Parameters
that:
unknown
Returns
null
|
Interpolator
<
GeoSegment
>
intersects
intersects
(
that
:
AnyGeoShape
)
:
boolean
Parameters
that:
AnyGeoShape
Returns
boolean
intersects
Point
intersects
Point
(
that
:
GeoPoint
)
:
boolean
Parameters
that:
GeoPoint
Returns
boolean
intersects
Segment
intersects
Segment
(
that
:
GeoSegment
)
:
boolean
Parameters
that:
GeoSegment
Returns
boolean
is
Defined
is
Defined
(
)
:
boolean
Returns
boolean
project
project
(
f
:
GeoProjection
)
:
R2Segment
Parameters
f:
GeoProjection
Returns
R2Segment
split
split
(
u
:
number
)
:
[
GeoSegment
,
GeoSegment
]
Parameters
u:
number
Returns
[
GeoSegment
,
GeoSegment
]
to
Any
to
Any
(
)
:
GeoSegmentInit
Returns
GeoSegmentInit
to
String
to
String
(
)
:
string
Returns
string
union
union
(
that
:
AnyGeoShape
)
:
GeoShape
Parameters
that:
AnyGeoShape
Returns
GeoShape
Static
from
Any
from
Any
(
value
:
AnyGeoSegment
)
:
GeoSegment
Parameters
value:
AnyGeoSegment
Returns
GeoSegment
Static
from
Init
from
Init
(
value
:
GeoSegmentInit
)
:
GeoSegment
Parameters
value:
GeoSegmentInit
Returns
GeoSegment
Static
is
Any
is
Any
(
value
:
unknown
)
:
value
is
AnyGeoSegment
Parameters
value:
unknown
Returns
value
is
AnyGeoSegment
Static
is
Init
is
Init
(
value
:
unknown
)
:
value
is
GeoSegmentInit
Parameters
value:
unknown
Returns
value
is
GeoSegmentInit
Static
of
of
(
lng0
:
number
, lat0
:
number
, lng1
:
number
, lat1
:
number
)
:
GeoSegment
Parameters
lng0:
number
lat0:
number
lng1:
number
lat1:
number
Returns
GeoSegment
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
Segment
constructor
lat0
lat1
lng0
lng1
bounds
lat
Max
lat
Min
lng
Max
lng
Min
contains
contains
Point
contains
Segment
debug
equals
equivalent
To
for
Each
Coord
for
Each
Coord
Rest
hash
Code
interpolate
interpolate
Lat
interpolate
Lng
interpolate
To
intersects
intersects
Point
intersects
Segment
is
Defined
project
split
to
Any
to
String
union
from
Any
from
Init
is
Any
is
Init
of
Generated using
TypeDoc