public class Rectangled extends Object
| Modifier and Type | Field and Description |
|---|---|
double |
maxX |
double |
maxY |
double |
minX |
double |
minY |
| Constructor and Description |
|---|
Rectangled()
Create a new
Rectangled with a minimum and maximum corner of (0, 0). |
Rectangled(double minX,
double minY,
double maxX,
double maxY)
Create a new
Rectangled with the given minimum and maximum corner coordinates. |
Rectangled(Rectangled source)
Create a new
Rectangled as a copy of the given source. |
Rectangled(Vector2dc min,
Vector2dc max)
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString()
Return a string representation of this rectangle.
|
String |
toString(NumberFormat formatter)
Return a string representation of this rectangle by formatting the vector components with the given
NumberFormat. |
public double minX
public double minY
public double maxX
public double maxY
public Rectangled()
Rectangled with a minimum and maximum corner of (0, 0).public Rectangled(Rectangled source)
Rectangled as a copy of the given source.source - the Rectangled to copy frompublic Rectangled(Vector2dc min, Vector2dc max)
min - the minimum coordinatesmax - the maximum coordinatespublic Rectangled(double minX,
double minY,
double maxX,
double maxY)
Rectangled with the given minimum and maximum corner coordinates.minX - the x coordinate of the minimum cornerminY - the y coordinate of the minimum cornermaxX - the x coordinate of the maximum cornermaxY - the y coordinate of the maximum cornerpublic String toString()
This method creates a new DecimalFormat on every invocation with the format string "0.000E0;-".
public String toString(NumberFormat formatter)
NumberFormat.formatter - the NumberFormat used to format the vector components withCopyright © 2015–2019 JOML. All rights reserved.