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