public class OrientedBox2D extends Object
| Constructor and Description | 
|---|
OrientedBox2D(double xc,
             double yc,
             double length,
             double width,
             double orientation)
Default constructor for OrientedBox2D, that specifies center as two
 coordinates. 
 | 
OrientedBox2D(Point2D center,
             double length,
             double width,
             double orientation)
Default constructor for OrientedBox2D. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
double | 
area()
Computes the area of this  box. 
 | 
Point2D | 
center()  | 
double | 
length()  | 
double | 
orientation()  | 
double | 
width()  | 
public OrientedBox2D(Point2D center, double length, double width, double orientation)
center - the center of the boxlength - the box lengthwidth - the box widthorientation - the orientation of the box, in degrees counter-clockwisepublic OrientedBox2D(double xc,
                     double yc,
                     double length,
                     double width,
                     double orientation)
xc - the x-coordinate of the box centeryc - the y-coordinate of the box centerlength - the box lengthwidth - the box widthorientation - the orientation of the box, in degrees counter-clockwisepublic double area()
public Point2D center()
public double length()
public double width()
public double orientation()
Copyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.