public static float3 point(ray r, float distance) { return(r.origin + distance * r.direction); }
public static bool equal(ray r0, ray r1) { return(all(equal(r0.origin, r1.origin) & equal(r0.direction, r1.direction))); }
public ray_d(ray r) { origin = r.origin; direction = r.direction; }