Home > @magiclane/maps-sdk > XyType

XyType class

A generic type consisting of x and y coordinates.

Signature:

export declare class XyType<T extends number> 

Constructors

Constructor

Modifiers

Description

(constructor)({ x, y }, input)

Constructs a new instance of the XyType class

Properties

Property

Modifiers

Type

Description

x

T

y

T

Methods

Method

Modifiers

Description

equals(other)

fromJson(json)

static

fromPoint(point)

static

hashCode()

toJson()

toPoint()