/** * Returns true if the BoundingBox contains the Segment. * * @param a * @param b * @return */ public static boolean contains(BoundingBox a, Segment b) { return a.containsPoint(b.origin) && a.containsPoint(b.endpoint); }