public static boolean contains(Ray a, Segment b) { return a.contains(a) && a.contains(b); }
public static boolean contains(Ray a, Ray b) { return a.containsPoint(b.origin) && a.containsPoint(b.origin.add(b.direction)); }