DoubleDimension

constructor()(source)

Initializes a new DoubleDimension instance with both width and height set to zero.


constructor(d: Dimension2D)(source)

Initializes a new DoubleDimension instance using another Dimension2D object's data. No side effects.

Parameters

d

is the objects used to get the data


constructor(w: Double, h: Double)(source)

Initializes a new DoubleDimension using raw data.

Parameters

w

is the double containing the width

h

is the double containing the height


constructor(d: Array<Double>)(source)

Initializes a new DoubleDimension through an array of numbers. d[0] is width, d[1] is height, other elements will be ignored.

Parameters

d

is a mono-dimensional array of Number.