georegression.struct.shapes
Class Rectangle2D_F64
- java.lang.Object
-
- georegression.struct.shapes.Rectangle2D_F64
-
- All Implemented Interfaces:
- java.io.Serializable
public class Rectangle2D_F64 extends java.lang.Object implements java.io.SerializableAn axis aligned rectangle in 2D that is specified by its lower-extent p0, and upper-extent p1.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description Point2D_F64p0Lower extentPoint2D_F64p1Upper extent
-
Constructor Summary
Constructors Constructor and Description Rectangle2D_F64()Rectangle2D_F64(double x0, double y0, double x1, double y1)Rectangle2D_F64(Rectangle2D_F64 orig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doublearea()voidenforceExtents()Makes sure x0,y0 is the lower extent and x1,y1 is the upper extentdoublegetHeight()Point2D_F64getP0()Point2D_F64getP1()doublegetWidth()voidset(double x0, double y0, double x1, double y1)voidset(Rectangle2D_F64 orig)voidsetP0(Point2D_F64 p0)voidsetP1(Point2D_F64 p1)java.lang.StringtoString()
-
-
-
Field Detail
-
p0
public Point2D_F64 p0
Lower extent
-
p1
public Point2D_F64 p1
Upper extent
-
-
Constructor Detail
-
Rectangle2D_F64
public Rectangle2D_F64(double x0, double y0, double x1, double y1)
-
Rectangle2D_F64
public Rectangle2D_F64(Rectangle2D_F64 orig)
-
Rectangle2D_F64
public Rectangle2D_F64()
-
-
Method Detail
-
set
public void set(Rectangle2D_F64 orig)
-
set
public void set(double x0, double y0, double x1, double y1)
-
enforceExtents
public void enforceExtents()
Makes sure x0,y0 is the lower extent and x1,y1 is the upper extent
-
getWidth
public double getWidth()
-
getHeight
public double getHeight()
-
area
public double area()
-
getP0
public Point2D_F64 getP0()
-
setP0
public void setP0(Point2D_F64 p0)
-
getP1
public Point2D_F64 getP1()
-
setP1
public void setP1(Point2D_F64 p1)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-
DataMelt 3.0 © DataMelt by jWork.ORG