Пример #1
0
 public static boolean contains(Ray a, Segment b) {
   return a.contains(a) && a.contains(b);
 }
Пример #2
0
 public static boolean contains(Ray a, Ray b) {
   return a.containsPoint(b.origin) && a.containsPoint(b.origin.add(b.direction));
 }