float3x3
struct float3x3Available without an import.
A column-major matrix with three float3 columns. Matrix multiplication follows linear algebra conventions. Rotation APIs accept angle values.
Members
c0field
public float3 c0Column 0 in column-major storage.
c1field
public float3 c1Column 1 in column-major storage.
c2field
public float3 c2Column 2 in column-major storage.
constructorconstructor
public constructor (float3 c0, float3 c1, float3 c2)Stores the supplied columns in order.
Identitygetter
public static get Identity() : float3x3The identity transform, with ones on the diagonal and zeros elsewhere.
From4x4constructor
public constructor From4x4 (float4x4 m)Copies the upper-left 3-by-3 block, discarding translation and the last row/column.
transposedgetter
public get transposed() : float3x3Returns a matrix with rows and columns exchanged.
determinantgetter
public get determinant() : floatReturns the matrix determinant.
isIdentitygetter
public get isIdentity() : boolTests every component against the identity matrix exactly, with no tolerance.
Inversemethod
public static fn Inverse(float3x3 m) : float3x3Returns the inverse matrix, or an all-zero matrix when the determinant is exactly zero. Near-singular matrices are not rejected.
Scalemethod
public static fn Scale(float2 s) : float3x3Creates a diagonal scale transform with the supplied spatial scale factors.
Rotationmethod
public static fn Rotation(angle a) : float3x3Creates a counterclockwise 2D rotation from an angle.
ToStringmethod
public fn ToString() : stringProvided by the compiler.
ToStringBuffermethod
public fn ToStringBuffer(StringBuilder builder) : int32Provided by the compiler.