writeInto method
Writes all fields directly into the native struct reference p.
For nested structs, use writeInto as well.
Implementation
@override
void writeInto(RayCollisionC p) {
p.hit = hit;
p.distance = distance;
point.writeInto(p.point);
normal.writeInto(p.normal);
}