CLASSES
TagsA - Z

Size

Description

class Size

Constructor

new Size(width, height)

Parameters

Name Type Description
width number
height number

Members

width : number

height : number

surface : number

Methods

toString() → string

getClassName() → string

getHashCode() → number

copyFrom(src) → void

Parameters

Name Type Description
src Size

copyFromFloats(width, height) → void

Parameters

Name Type Description
width number
height number

multiplyByFloats(w, h) → Size

Parameters

Name Type Description
w number
h number

clone() → Size

equals(other) → boolean

Parameters

Name Type Description
other Size

static Zero() → Size

add(otherSize) → Size

Parameters

Name Type Description
otherSize Size

substract(otherSize) → Size

Parameters

Name Type Description
otherSize Size

static Lerp(start, end, amount) → Size

Parameters

Name Type Description
start Size
end Size
amount number