struct property

StructType<RayD> struct
final

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

Implementation

static final StructType<RayD> struct = .new(
  factory: RayD.new,
  layout: .aligned<RayField>({
    .position:  RStruct(Vector3D.struct), // Ray position (origin)
    .direction: RStruct(Vector3D.struct), // Ray direction (normalized)
  }),
);