struct property

StructType<MatrixD> struct
final

Describes the raw memory layout, construction, and pointer representation of this struct type.

Implementation

static final StructType<MatrixD> struct = .new(
  factory: MatrixD.new,
  layout: .aligned<MatrixField>({
    .m0: RFloat(), .m4: RFloat(), .m8: RFloat(), .m12: RFloat(), // Matrix first row (4 components)
    .m1: RFloat(), .m5: RFloat(), .m9: RFloat(), .m13: RFloat(), // Matrix second row (4 components)
    .m2: RFloat(), .m6: RFloat(), .m10: RFloat(), .m14: RFloat(), // Matrix third row (4 components)
    .m3: RFloat(), .m7: RFloat(), .m11: RFloat(), .m15: RFloat(), // Matrix fourth row (4 components)
  }),
);