public class Rectangle extends Coordinate
x| Constructor and Description |
|---|
Rectangle(float x,
float y,
float w,
float h) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(float x,
float y)
checks, whether given point is contained in current rectangle
|
float |
h()
h
|
float |
w()
w
|
float |
x()
x
|
float |
y()
y
|
add, checkDimension, checkDimension, clone, dimension, equals, hashCode, scale, scale, set, set, toStringpublic float x()
public float y()
public float w()
public float h()
public boolean contains(float x,
float y)
x - x-coordinatey - y-coordinateCopyright © 2012–2018. All rights reserved.