public class Arch extends Object
Constructor and Description |
---|
Arch(int width,
int height)
Creates a new arch.
|
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 component