DoubleQuad

DoubleQuad

A rectangular, two dimensional shape. The local height of the
DoubleQuad defines it's size about the y-axis, while the width defines
the x-axis. The z-axis will always be 0.

Constructor

new DoubleQuad(widthopt, heightopt, tileXopt, tileYopt)

Parameters:
Name Type Attributes Default Description
width number <optional>
1

Total width of quad.

height number <optional>
1

Total height of quad.

tileX number <optional>
1

Number of texture repetitions in the texture's x direction.

tileY number <optional>
1

Number of texture repetitions in the texture's y direction.

Members

tileX :number

Number of texture repetitions in the texture's x direction.

Default Value:
  • 1

tileY :number

Number of texture repetitions in the texture's y direction.

Default Value:
  • 1

xExtent :number

Half-extent along the local x axis.

Default Value:
  • 0.5

yExtent :number

Half-extent along the local y axis.

Default Value:
  • 0.5

Methods

rebuild() → {DoubleQuad}

Builds or rebuilds the mesh data.