public class Rectangle
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
Point |
bottomLeft
Bottom-left corner of the rectangle.
|
Point |
bottomRight
Bottom-right corner of the rectangle.
|
Point |
topLeft
Top-left corner of the rectangle.
|
Point |
topRight
Top-right corner of the rectangle.
|
| Constructor and Description |
|---|
Rectangle()
Initializes an empty instance of the Rectangle class.
|
Rectangle(Point bottomLeft,
Point bottomRight,
Point topLeft,
Point topRight)
Initializes a new instance of the Rectangle class from its members.
|
Rectangle(Rectangle rectangle)
Initializes a new instance of the Rectangle class by copying another Rectangle.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
public Point bottomLeft
public Point bottomRight
public Point topLeft
public Point topRight
public Rectangle()
public Rectangle(Point bottomLeft, Point bottomRight, Point topLeft, Point topRight)
bottomLeft - Bottom-left corner of the rectangle.bottomRight - Bottom-right corner of the rectangle.topLeft - Top-left corner of the rectangle.topRight - Top-right corner of the rectangle.public Rectangle(Rectangle rectangle)
rectangle - The Rectangle to copy.Copyright © id3 Technologies. All rights reserved. eu.id3.face