Skip to main content

window.PhysicalPosition

A position represented in physical pixels.

Constructors#

constructor#

new PhysicalPosition(x, y)

Parameters#

NameType
xnumber
ynumber

Defined in#

window.ts:150

Properties#

type#

type: string = 'Physical'

Defined in#

window.ts:146


x#

x: number

Defined in#

window.ts:147


y#

y: number

Defined in#

window.ts:148

Methods#

toLogical#

toLogical(scaleFactor): LogicalPosition

Converts the physical position to a logical one.

Parameters#

NameType
scaleFactornumber

Returns#

LogicalPosition

Defined in#

window.ts:156