georegression.struct.shapes
Class RectangleLength2D_F64
- java.lang.Object
-
- georegression.struct.shapes.RectangleLength2D_F64
-
- All Implemented Interfaces:
- java.io.Serializable
public class RectangleLength2D_F64 extends java.lang.Object implements java.io.SerializableAn axis aligned rectangle in 2D that is specified by its lower extent (x0,y0), width, and height. The three other corners are (x0 + width,y0), (x0,y0 + height), (x0 + width,y0 + height).
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description doubleheightRectangle's heightdoublewidthRectangle's widthdoublex0Lower extent x-axisdoubley0Lower extent y-axis
-
Constructor Summary
Constructors Constructor and Description RectangleLength2D_F64()RectangleLength2D_F64(double x0, double y0, double width, double height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublegetHeight()doublegetWidth()doublegetX()doublegetY()voidset(RectangleLength2D_I32 r)Sets this rectangle to be equal to the passed in rectangle.voidsetHeight(double height)voidsetLowerExtent(double x, double y)Sets lower extentvoidsetWidth(double width)voidsetX(double x)Sets the lower-extent x-coordinatevoidsetY(double y)Sets the lower-extent y-coordinatejava.lang.StringtoString()
-
-
-
Field Detail
-
x0
public double x0
Lower extent x-axis
-
y0
public double y0
Lower extent y-axis
-
width
public double width
Rectangle's width
-
height
public double height
Rectangle's height
-
-
Constructor Detail
-
RectangleLength2D_F64
public RectangleLength2D_F64()
-
RectangleLength2D_F64
public RectangleLength2D_F64(double x0, double y0, double width, double height)
-
-
Method Detail
-
setLowerExtent
public void setLowerExtent(double x, double y)Sets lower extent- Parameters:
x- x-coordinatey- y-coordinate
-
getWidth
public double getWidth()
-
setWidth
public void setWidth(double width)
-
getHeight
public double getHeight()
-
setHeight
public void setHeight(double height)
-
getX
public double getX()
- Returns:
- Lower-extent x-coordinate
-
setX
public void setX(double x)
Sets the lower-extent x-coordinate- Parameters:
x- Lower-extent x-coordinate
-
getY
public double getY()
- Returns:
- Lower-extent y-coordinate
-
setY
public void setY(double y)
Sets the lower-extent y-coordinate- Parameters:
y- Lower-extent y-coordinate
-
set
public void set(RectangleLength2D_I32 r)
Sets this rectangle to be equal to the passed in rectangle.- Parameters:
r- Rectangle which this is to be set equal to
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG