public class Rectanglef extends Object
| Modifier and Type | Field and Description |
|---|---|
float |
maxX |
float |
maxY |
float |
minX |
float |
minY |
| Constructor and Description |
|---|
Rectanglef()
Create a new
Rectanglef with a minimum and maximum corner of (0, 0). |
Rectanglef(float minX,
float minY,
float maxX,
float maxY)
Create a new
Rectanglef with the given minimum and maximum corner coordinates. |
Rectanglef(Rectanglef source)
Create a new
Rectanglef as a copy of the given source. |
Rectanglef(Vector2fc min,
Vector2fc 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 float minX
public float minY
public float maxX
public float maxY
public Rectanglef()
Rectanglef with a minimum and maximum corner of (0, 0).public Rectanglef(Rectanglef source)
Rectanglef as a copy of the given source.source - the Rectanglef to copy frompublic Rectanglef(Vector2fc min, Vector2fc max)
min - the minimum coordinatesmax - the maximum coordinatespublic Rectanglef(float minX,
float minY,
float maxX,
float maxY)
Rectanglef 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.