| Modifier and Type | Field and Description |
|---|---|
org.apache.commons.math3.geometry.euclidean.twod.Vector2D |
max |
org.apache.commons.math3.geometry.euclidean.twod.Vector2D |
min |
| Constructor and Description |
|---|
Rectangle(org.apache.commons.math3.geometry.euclidean.twod.Vector2D min,
org.apache.commons.math3.geometry.euclidean.twod.Vector2D max) |
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
add(double other) |
Rectangle |
add(Rectangle other) |
boolean |
contains(double x,
double y)
Checks if the point is contained in the Rectangle
|
boolean |
contains(org.apache.commons.math3.geometry.euclidean.twod.Vector2D point)
Checks if the point is contained in the Rectangle
|
org.apache.commons.math3.geometry.euclidean.twod.Vector2D |
getMax()
Get the max vector
|
org.apache.commons.math3.geometry.euclidean.twod.Vector2D |
getMin()
Get the min coords vector
|
double |
maxXd() |
int |
maxXi() |
double |
maxYd() |
int |
maxYi() |
double |
minXd() |
int |
minXi() |
double |
minYd() |
int |
minYi() |
Rectangle |
multiply(double other) |
Rectangle |
reciprocal()
Gets the reciprocal of this vector.
|
Rectangle |
setMax(org.apache.commons.math3.geometry.euclidean.twod.Vector2D max)
Sets the max vector
|
Rectangle |
setMin(org.apache.commons.math3.geometry.euclidean.twod.Vector2D min)
Sets the min vector
|
java.lang.String |
toString() |
public final org.apache.commons.math3.geometry.euclidean.twod.Vector2D min
public final org.apache.commons.math3.geometry.euclidean.twod.Vector2D max
public Rectangle(org.apache.commons.math3.geometry.euclidean.twod.Vector2D min,
org.apache.commons.math3.geometry.euclidean.twod.Vector2D max)
public org.apache.commons.math3.geometry.euclidean.twod.Vector2D getMin()
public Rectangle setMin(org.apache.commons.math3.geometry.euclidean.twod.Vector2D min)
min - The new min vectorpublic org.apache.commons.math3.geometry.euclidean.twod.Vector2D getMax()
public Rectangle setMax(org.apache.commons.math3.geometry.euclidean.twod.Vector2D max)
max - The new max vectorpublic int minXi()
public int maxXi()
public int minYi()
public int maxYi()
public double minXd()
public double maxXd()
public double minYd()
public double maxYd()
public boolean contains(org.apache.commons.math3.geometry.euclidean.twod.Vector2D point)
point - The point to checkpublic boolean contains(double x,
double y)
x - x coord of the pointy - y coord of the pointpublic Rectangle multiply(double other)
public Rectangle reciprocal()
Operatorreciprocal in class Operator<Rectangle,Rectangle>public java.lang.String toString()
toString in class java.lang.Object