Matrix Struct

Definition

A transformation matrix [a b c d e f]: the 3-by-3 matrix [a b 0; c d 0; e f 1] that maps a point of one coordinate space to another, applied to row vectors.

public readonly struct Matrix : IEquatable<Matrix>

Remarks

ISO 32000-2 §8.3.3 and §8.3.4. A point (x, y) maps to (a·x + c·y + e, b·x + d·y + f). A transformation applied after an existing one is premultiplied: M′ = Mₜ × M, which is how cm changes the current transformation matrix (Table 56). Coordinates and elements are doubles so that large offsets with small scales keep their precision.

Any six numbers make a matrix, including singular ones (scaling by zero): they are legal operands and map everything to a line or a point. TryInvert(out Matrix) reports whether an inverse exists.

Tip: use kind:method, kind:property, kind:ctor. Press Esc to clear.

Constructors (1)

Properties (9)

Methods (11)

Operators (3)