DoubleDimension

constructor()

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


constructor(d: Dimension2D)

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)

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>)

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.