Platforms to show: All Mac Windows Linux Cross-Platform

Back to SCNMatrix4MBS class.

SCNMatrix4MBS.Identity as SCNMatrix4MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
The 4 x 4 identity matrix.

Elements on the diagonal of this matrix are 1.0; all other elements are 0.0. Multiplying another matrix by the identity matrix or multiplying the identity matrix by another matrix yields the other matrix.

SCNMatrix4MBS.Null as SCNMatrix4MBS

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

All values are zero.

SCNMatrix4MBS.Rotation(angle as double, x as double, y as double, z as double) as SCNMatrix4MBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns a matrix describing a rotation transformation.

angle: The amount of rotation, in radians, measured counterclockwise around the rotation axis.
x: The x-component of the rotation axis.
y: The y-component of the rotation axis.
z: The z-component of the rotation axis.

Returns a new rotation matrix.

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns a matrix describing a scale transformation.
Example
Var m As SCNMatrix4MBS = SCNMatrix4MBS.Scaling(1.0, 2.0, 3.0)
Break

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 scale matrix.

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

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method SceneKit MBS Mac64bit Plugin 19.1 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns a matrix describing a translation transformation.

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 translation matrix.

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


The biggest plugin in space...