Platforms to show: All Mac Windows Linux Cross-Platform

Back to SCNMatrix4MBS class.

SCNMatrix4MBS.Constructor

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The constructor.

Initializes all values with zero.

SCNMatrix4MBS.copy as SCNMatrix4MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Creates a copy of the matrix.

SCNMatrix4MBS.equals(other as SCNMatrix4MBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns a Boolean value that indicates whether the corresponding elements of two matrices are equal.

self: The first matrix to be compared.
other: The first matrix to be compared.

Returns true if each element in self is exactly equal to the corresponding element in other.

This function performs a numeric (not bitwise) comparison of each pair of elements.

SCNMatrix4MBS.Invert as SCNMatrix4MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns the inverse of the specified matrix.

The inverse matrix of the specified matrix, or the original matrix if it is not invertible.

SCNMatrix4MBS.Multiply(other as SCNMatrix4MBS) as SCNMatrix4MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns the product of two matrices.

self: The multiplicand, or left operand of matrix multiplication.
other: The multiplier, or right operand of matrix multiplication.

Returns the matrix product of the self and other parameters.

Matrix multiplication is not commutative. As a transformation, the result of multiplying a matrix A by a matrix B is the transformation represented by B followed by the transformation represented by A.

SCNMatrix4MBS.Rotate(angle as double, sx as double, sy as double, sz as double) as SCNMatrix4MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns a new matrix created by concatenating the specified matrix with a rotation transformation.

mat: The matrix to be combined with a rotation.
angle: The amount of rotation, in radians, measured counterclockwise around the rotation axis.
sx: The x-component of the rotation axis.
sy: The y-component of the rotation axis.
sz: The z-component of the rotation axis.

Returns a new matrix.

The resulting transformation consists of the specified rotation followed by the transformation represented by the mat parameter.

SCNMatrix4MBS.Scale(sx as double, sy as double, sz as double) as SCNMatrix4MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns a new matrix created by concatenating the specified matrix with a scale transformation.
Example
Var i As SCNMatrix4MBS = SCNMatrix4MBS.Identity
Var m As SCNMatrix4MBS = i.Scale(1.0, 2.0, 3.0)
Break

self: The matrix to be combined with a translation.
sx: The scale factor in the x-axis direction.
sy: The scale factor in the y-axis direction.
sz: The scale factor in the z-axis direction.

Returns a new matrix.

The resulting transformation consists of the specified scale followed by the transformation represented by the mat parameter.

SCNMatrix4MBS.Translate(tx as double, ty as double, tz as double) as SCNMatrix4MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns a new matrix created by concatenating the specified matrix with a translation transformation.

self: The matrix to be combined with a translation.
tx: The translation distance in the x-axis direction.
ty: The translation distance in the y-axis direction.
tz: The translation distance in the z-axis direction.

Returns a new matrix.

The resulting transformation consists of the specified translation followed by the transformation represented by the mat parameter.

The items on this page are in the following plugins: MBS Mac64bit Plugin.


The biggest plugin in space...