Home > @magiclane/maps-sdk > RectType

RectType class

A generic type consisting of x, y, width and height coordinates.

Signature:

export declare class RectType<T extends number> 

Constructors

Constructor

Modifiers

Description

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

Constructs a new instance of the RectType class

Properties

Property

Modifiers

Type

Description

height

T

toRectangle

readonly

{ x: T; y: T; width: T; height: T; }

width

T

x

T

y

T

Methods

Method

Modifiers

Description

equals(other)

fromJson(json)

static

fromRectangle(rectangle)

static

hashCode()

toJson()