Skip to main content

window.PhysicalPosition

A position represented in physical pixels.

Constructors#

constructor#

+ new PhysicalPosition(x: number, y: number): PhysicalPosition

Parameters:#

NameType
xnumber
ynumber

Returns: PhysicalPosition

Defined in: window.ts:71

Properties#

type#

type: string= 'Physical'

Defined in: window.ts:69


x#

x: number

Defined in: window.ts:70


y#

y: number

Defined in: window.ts:71

Methods#

toLogical#

toLogical(scaleFactor: number): LogicalPosition

Converts the physical position to a logical one.

Parameters:#

NameType
scaleFactornumber

Returns: LogicalPosition

Defined in: window.ts:79