Package curve.fig
Class Oval
java.lang.Object
curve.fig.F
curve.fig.Oval
To angle an eclipse. Could this be applied to any figure?
https://stackoverflow.com/questions/3025519/how-do-i-draw-an-ellipse-with-arbitrary-orientation-pixel-by-pixel
x = X cos(a) - Y sin(a)
y = Y cos(a) + X sin(a)
Where a is the angle of anticlockwise rotation,
(x, y) are the new coordinates,
and (X, Y) are the old.
- Author:
- eddie
-
Field Summary
Modifier and TypeFieldDescriptionprivate int
working valuesprivate int
working values(package private) String
for debug -
Constructor Summary
-
Method Summary
Methods inherited from class curve.fig.F
clearSelected, flipSelected, getColourIndex, getDirty, getID, isSelected, setColourIndex, setDirty, setSelected
-
Field Details
-
zz
String zzfor debug -
rx
private int rxworking values -
ry
private int ryworking values
-
-
Constructor Details
-
Oval
-
Oval
-
-
Method Details
-
draw
-
plot
private void plot(double x, double y) plot- Parameters:
x
- -y
- -
-
generate
void generate(double rx, double ry, double xc, double yc) generate- Parameters:
rx
- -ry
- -xc
- -yc
- -
-
toString
-
out
-