me.Matrix3d(mat3dopt)

new Matrix3d(mat3dopt)

a 4x4 Matrix3d Object

Parameters:
Name Type Attributes Description
mat3d me.Matrix3d <optional>

An instance of me.Matrix3d to copy from

arguments... Array.<Number> <optional>

Matrix elements. See me.Matrix3d.setTransform

Extends

Members

static, readonly tx :Number

tx component of the matrix

static, readonly ty :Number

ty component of the matrix

static, readonly tz :Number

ty component of the matrix

Methods

static apply(vector) → {me.Vector3d}

apply the current transform to the given 3d vector

Parameters:
Name Type Description
vector me.Vector3d

the vector object to be transformed

Returns:
me.Vector3d -

result vector object.

static applyInverse(vector) → {me.Vector3d}

apply the inverted current transform to the given 3d vector

Parameters:
Name Type Description
vector me.Vector3d

the vector object to be transformed

Returns:
me.Vector3d -

result vector object.

static clone() → {me.Matrix3d}

Clone the Matrix

Returns:
me.Matrix3d

static copy(m) → {me.Matrix3d}

Copies over the values from another me.Matrix3d.

Parameters:
Name Type Description
m me.Matrix3d

the matrix object to copy from

Returns:
me.Matrix3d -

Reference to this object for method chaining

static equals(b) → {Boolean}

return true if the two matrices are identical

Parameters:
Name Type Description
b me.Matrix3d

the other matrix

Returns:
Boolean -

true if both are equals

static identity() → {me.Matrix3d}

reset the transformation matrix to the identity matrix (no transformation).
the identity matrix and parameters position :

Returns:
me.Matrix3d -

Reference to this object for method chaining

static invert() → {me.Matrix3d}

invert this matrix, causing it to apply the opposite transformation.

Returns:
me.Matrix3d -

Reference to this object for method chaining

static isIdentity() → {Boolean}

returns true if the matrix is an identity matrix.

Returns:
Boolean

static multiply(b) → {me.Matrix3d}

multiply both matrix

Parameters:
Name Type Description
b me.Matrix3d

Other matrix

Returns:
me.Matrix3d -

Reference to this object for method chaining

static ortho(left, right, bottom, top, near, far) → {me.Matrix3d}

generate an orthogonal projection matrix, with the result replacing the current matrix

Parameters:
Name Type Description
left Number

farthest left on the x-axis

right Number

farthest right on the x-axis

bottom Number

farthest down on the y-axis

top Number

farthest up on the y-axis

near Number

distance to the near clipping plane along the -Z axis

far Number

distance to the far clipping plane along the -Z axis

Returns:
me.Matrix3d -

Reference to this object for method chaining

static rotate(angle, axis) → {me.Matrix3d}

rotate this matrix (counter-clockwise) by the specified angle (in radians).

Parameters:
Name Type Description
angle Number

Rotation angle in radians.

axis me.Vector3d

the axis to rotate around

Returns:
me.Matrix3d -

Reference to this object for method chaining

static scale(x, yopt, zopt) → {me.Matrix3d}

scale the matrix

Parameters:
Name Type Attributes Default Description
x Number

a number representing the abscissa of the scaling vector.

y Number <optional>
x

a number representing the ordinate of the scaling vector.

z Number <optional>
0

a number representing the depth vector

Returns:
me.Matrix3d -

Reference to this object for method chaining

static scaleV(vector) → {me.Matrix3d}

adds a 2D scaling transformation.

Parameters:
Name Type Description
vector me.Vector2d | me.Vector3d

scaling vector

Returns:
me.Matrix3d -

Reference to this object for method chaining

static scaleX(x) → {me.Matrix3d}

specifies a 2D scale operation using the [sx, 1] scaling vector

Parameters:
Name Type Description
x Number

x scaling vector

Returns:
me.Matrix3d -

Reference to this object for method chaining

static scaleY(y) → {me.Matrix3d}

specifies a 2D scale operation using the [1,sy] scaling vector

Parameters:
Name Type Description
y Number

y scaling vector

Returns:
me.Matrix3d -

Reference to this object for method chaining

static setTransform(m00, m01, m02, m03, m10, m11, m12, m13, m20, m21, m22, m23, m30, m31, m32, m33) → {me.Matrix3d}

set the matrix to the specified value

Parameters:
Name Type Description
m00 Number
m01 Number
m02 Number
m03 Number
m10 Number
m11 Number
m12 Number
m13 Number
m20 Number
m21 Number
m22 Number
m23 Number
m30 Number
m31 Number
m32 Number
m33 Number
Returns:
me.Matrix3d -

Reference to this object for method chaining

static toArray() → {Float32Array}

return an array representation of this Matrix

Returns:
Float32Array

static toString() → {String}

convert the object to a string representation

Returns:
String

static translate(x, yopt, zopt) → {me.Matrix3d}

translate the matrix position using the given vector

Parameters:
Name Type Attributes Default Description
x Number

a number representing the abscissa of the vector.

y Number <optional>
x

a number representing the ordinate of the vector.

z Number <optional>
0

a number representing the depth of the vector

Returns:
me.Matrix3d -

Reference to this object for method chaining

static translateV(v) → {me.Matrix3d}

translate the matrix by a vector on the horizontal and vertical axis

Parameters:
Name Type Description
v me.Vector2d | me.Vector3d

the vector to translate the matrix by

Returns:
me.Matrix3d -

Reference to this object for method chaining

static transpose() → {me.Matrix3d}

Transpose the value of this matrix.

Returns:
me.Matrix3d -

Reference to this object for method chaining