struct property

StructType<QuaternionD> struct
final

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

Implementation

static final StructType<QuaternionD> struct = .new(
  factory: QuaternionD.new,
  layout: .aligned<QuaternionField>({
    .x: RFloat(), // Imaginary i component
    .y: RFloat(), // Imaginary j component
    .z: RFloat(), // Imaginary k component
    .w: RFloat(), // Real (scalar) component
  }),
);