Package com.adobe.fontengine.font
Class Rect
java.lang.Object
com.adobe.fontengine.font.Rect
A bounding box.
AFE's coordinates are in y-positive. Values are: xmin, ymin, xmax, ymax where xmin invalid input: '<'= xmax and ymin invalid input: '<'= ymax.
Synchronization
These objects are immutable.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
xmin
public final double xmin -
ymin
public final double ymin -
xmax
public final double xmax -
ymax
public final double ymax -
emptyRect
A rectangle with xmin = ymin = xmax = ymax = 0.
-
-
Constructor Details
-
Rect
public Rect(double xmin, double ymin, double xmax, double ymax) -
Rect
public Rect(double[] vals) Create a Rect from an array of doubles.- Parameters:
vals- An array of length 4 whose entries are in the order xmin, ymin, xmax, ymax.
-
-
Method Details