public class Rectangle
extends java.lang.Object
Constructor and Description |
---|
Rectangle(Point center,
Vector[] bases) |
Modifier and Type | Method and Description |
---|---|
static Point |
closestSegmentPoint(Point p11,
Point p12,
Point p2) |
static Point[] |
closestSegmentPoint(Point p1,
Point p2,
Point q1,
Point q2)
28HOps at most.
|
double |
distance_Gottschalk(Rectangle b) |
double |
distance_nonoptimized(Rectangle rect)
670HOps
|
double |
distance_optimized(Rectangle rect) |
double |
distance(Rectangle rect) |
Point[] |
getCorners()
Return corners of rectangle in counter-clockwise order.
|
Plane |
getPlane() |
public double distance(Rectangle rect)
public double distance_optimized(Rectangle rect)
public double distance_nonoptimized(Rectangle rect)
public static Point[] closestSegmentPoint(Point p1, Point p2, Point q1, Point q2)
public Point[] getCorners()
public Plane getPlane()
public double distance_Gottschalk(Rectangle b)