Matrix44
@Serializable
A 4x4 matrix with double precision
Constructors
Link copied to clipboard
constructor(c0r0: Double = 0.0, c1r0: Double = 0.0, c2r0: Double = 0.0, c3r0: Double = 0.0, c0r1: Double = 0.0, c1r1: Double = 0.0, c2r1: Double = 0.0, c3r1: Double = 0.0, c0r2: Double = 0.0, c1r2: Double = 0.0, c2r2: Double = 0.0, c3r2: Double = 0.0, c0r3: Double = 0.0, c1r3: Double = 0.0, c2r3: Double = 0.0, c3r3: Double = 0.0)
Properties
Functions
Link copied to clipboard
Multiplies all the elements in the 4x4 matrix with a scalar
Multiplies this 4x4 matrix with another 4x4 matrix. With fused multiply-adds: the products are bound by the number of instructions, fused multiply-adds halve them.
Multiplies the 4x4 matrix with a vector 4. Plain multiplications and additions, which are as precise here as fused multiply-adds and have shorter dependency chains.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Convert matrix to a DoubleArray in row-major order