BoundingBox

lumin.glyph.Metrics. BoundingBox

Describes the bounding-box of a glyph within its tile.

Constructor

new BoundingBox(xminopt, xmaxopt, yminopt, ymaxopt)

Preconditions: 0 <= xmin <= xmax and 0 <= ymin <= ymax.

Parameters:
Name Type Attributes Default Description
xmin number <optional>
0
xmax number <optional>
1
ymin number <optional>
0
ymax number <optional>
1

Members

horizMax :number

Type:
  • number

horizMin :number

Type:
  • number

vertMax :number

Type:
  • number

vertMin :number

Type:
  • number

Methods

getAspectRatio() → {number}

Returns:
Type
number

getHeight() → {number}

Returns:
Type
number

getWidth() → {number}

Returns:
Type
number

toString() → {string}

Returns:
Type
string