RayD toD([Pointer<RayC>? ptr]) => .new( originalPointer: ptr, position: position.toD(), direction: direction.toD(), );