@magiclane/maps-sdk
Preparing search index...
XyType
Class XyType<T>
A generic type consisting of x and y coordinates.
Type Parameters
T
extends
number
Index
Constructors
constructor
Properties
x
y
Methods
equals
hash
Code
to
Json
to
Point
from
Json
from
Point
Constructors
constructor
new
XyType
<
T
extends
number
>
(
__namedParameters
:
{
x
:
T
;
y
:
T
}
)
:
XyType
<
T
>
Type Parameters
T
extends
number
Parameters
__namedParameters
:
{
x
:
T
;
y
:
T
}
Returns
XyType
<
T
>
Properties
x
x
:
T
y
y
:
T
Methods
equals
equals
(
other
:
XyType
<
T
>
)
:
boolean
Parameters
other
:
XyType
<
T
>
Returns
boolean
hash
Code
hashCode
()
:
number
Returns
number
to
Json
toJson
()
:
{
x
:
T
;
y
:
T
}
Returns
{
x
:
T
;
y
:
T
}
to
Point
toPoint
()
:
{
x
:
T
;
y
:
T
}
Returns
{
x
:
T
;
y
:
T
}
Static
from
Json
fromJson
<
T
extends
number
>
(
json
:
{
x
?:
T
;
y
?:
T
}
)
:
XyType
<
T
>
Type Parameters
T
extends
number
Parameters
json
:
{
x
?:
T
;
y
?:
T
}
Returns
XyType
<
T
>
Static
from
Point
fromPoint
<
T
extends
number
>
(
point
:
{
x
:
T
;
y
:
T
}
)
:
XyType
<
T
>
Type Parameters
T
extends
number
Parameters
point
:
{
x
:
T
;
y
:
T
}
Returns
XyType
<
T
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
x
y
Methods
equals
hash
Code
to
Json
to
Point
from
Json
from
Point
@magiclane/maps-sdk
Loading...
A generic type consisting of x and y coordinates.