public class Arch extends Object
| Constructor and Description |
|---|
Arch(int width,
int height)
Creates a new arch.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
getHeight()
Gets the height of the arch.
|
int |
getValue(int x)
Gets the position of the arch at
x. |
int |
getWidth()
Gets the width of the arch.
|
int |
hashCode() |
String |
toString() |
public Arch(int width,
int height)
width - the width of the archheight - the height of the archIllegalArgumentException - if either of width or
height is smaller than 1public int getWidth()
public int getHeight()
public int getValue(int x)
x. x must
be between 0 (incl.) and width (excl.). The result
will be between 0 (incl.) and height (excl.).x - the x componentCopyright © 2017 Docking Frames. All rights reserved.