← Standard library

float3x3

struct float3x3

Available without an import.

A column-major matrix with three float3 columns. Matrix multiplication follows linear algebra conventions. Rotation APIs accept angle values.

Matrices.wax:40

Members

c0field

public float3 c0

Column 0 in column-major storage.

Matrices.wax:44

c1field

public float3 c1

Column 1 in column-major storage.

Matrices.wax:48

c2field

public float3 c2

Column 2 in column-major storage.

Matrices.wax:52

constructorconstructor

public constructor (float3 c0, float3 c1, float3 c2)

Stores the supplied columns in order.

Matrices.wax:57

Identitygetter

public static get Identity() : float3x3

The identity transform, with ones on the diagonal and zeros elsewhere.

Matrices.wax:66

From4x4constructor

public constructor From4x4 (float4x4 m)

Copies the upper-left 3-by-3 block, discarding translation and the last row/column.

Matrices.wax:77

transposedgetter

public get transposed() : float3x3

Returns a matrix with rows and columns exchanged.

Matrices.wax:87

determinantgetter

public get determinant() : float

Returns the matrix determinant.

Matrices.wax:98

isIdentitygetter

public get isIdentity() : bool

Tests every component against the identity matrix exactly, with no tolerance.

Matrices.wax:107

Inversemethod

public static fn Inverse(float3x3 m) : float3x3

Returns the inverse matrix, or an all-zero matrix when the determinant is exactly zero. Near-singular matrices are not rejected.

Matrices.wax:118

Scalemethod

public static fn Scale(float2 s) : float3x3

Creates a diagonal scale transform with the supplied spatial scale factors.

Matrices.wax:150

Rotationmethod

public static fn Rotation(angle a) : float3x3

Creates a counterclockwise 2D rotation from an angle.

Matrices.wax:161

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.