struct property

StructType<Ray> struct
final

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

Implementation

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