Matrix

Palette

DotNet Matrix

This module would not be possible without the .NET framework.

.NET makes matrix math easy.

Let's learn a bit about the dotnet matrix

The DotNet Matrix

.NET provides three built-in types we can use to construct matrices:

Two of these map directly to CSS:

A Quaternion can be converted to a Matrix4x4, and thus can become a matrix3d

The DotNet Matrix is Open Source

The DotNet core framework is open source, and so are the Matrix classes we use in this module.

They are well documented and fairly complete:

Class Source
[Numerics.Matrix3x2] [Numerics.Matrix3x2] source
[Numerics.Matrix4x4] [Numerics.Matrix4x4] source
[Numerics.Quaternion] [Numerics.Quaternion] source

We can add, subtract, multiply and divide our matrices. We can also use them to transform any Vector2, Vector3, or Vector4.

The Matrix module allows us to apply these transformations to an object pipeline of points in PowerShell, using css compatible transforms.