Package com.myscript.iink.graphics
Class Rectangle
java.lang.Object
com.myscript.iink.graphics.Rectangle
Represents an axis aligned rectangle on the 2D plane.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
x
public float xThe x position of the left edge of the rectangle. -
y
public float yThe y position of the top edge of the rectangle. -
width
public float widthThe width of the rectangle. -
height
public float heightThe height of the rectangle.
-
-
Constructor Details
-
Rectangle
public Rectangle(float x, float y, float width, float height) Constructor.- Parameters:
x
- the x position of the left edge of the rectangle.y
- the y position of the top edge of the rectangle.width
- the width of the rectangle.height
- the height of the rectangle.
-
Rectangle
Copy constructor.- Parameters:
other
- copied object.
-
Rectangle
public Rectangle()Default constructor. Builds an empty Rectangle at the coordinate (0 ; 0)
-
-
Method Details