Class: Mat3

OpenSeadragon.Mat3

A left-to-right matrix representation, useful for affine transforms for positioning tiles for drawing

Constructor

new Mat3(valuesopt)

Parameters:
Name Type Attributes Description
values Array <optional>
Initial values for the matrix
Source:

Methods

multiply(other) → {OpenSeadragon.Mat3}

Parameters:
Name Type Description
other OpenSeadragon.Mat3 the matrix to multiply with
Source:
Returns:
The result of matrix multiplication
Type
OpenSeadragon.Mat3

(static) makeIdentity() → {OpenSeadragon.Mat3}

Source:
Returns:
an identity matrix
Type
OpenSeadragon.Mat3

(static) makeRotation(angleInRadians) → {OpenSeadragon.Mat3}

Parameters:
Name Type Description
angleInRadians Number The desired rotation angle, in radians
Source:
Returns:
A rotation matrix
Type
OpenSeadragon.Mat3

(static) makeScaling(sx, sy) → {OpenSeadragon.Mat3}

Parameters:
Name Type Description
sx Number The x value of the scaling
sy Number The y value of the scaling
Source:
Returns:
A scaling matrix
Type
OpenSeadragon.Mat3

(static) makeTranslation(tx, ty) → {OpenSeadragon.Mat3}

Parameters:
Name Type Description
tx Number The x value of the translation
ty Number The y value of the translation
Source:
Returns:
A translation matrix
Type
OpenSeadragon.Mat3