GDDM V3R2 Base Application Programming Reference
|
Previous topic |
Next topic |
Contents |
Index |
Contact z/OS |
Library |
PDF |
BOOK
Arc parameters GDDM V3R2 Base Application Programming Reference SC33-0868-02 |
||||||||||||||||||||||||||||
This order determines the shape of subsequent arcs. The full parameters give a transformation that maps the unit circle to an ellipse of the required shape:
x' = Px + Ry
y' = Sx + Qy
A circle results if P=Q and R=S=0.
If P=a, Q=b, an ellipse results. The axis parallel to the x axis has a length proportional to "a"; the axis parallel to the y axis has a length proportional to "b." If R and S are nonzero, the ellipse is tilted. Usually, for an ellipse with major and minor axes proportional to "a" and "b", tilted at angle "theta" to the x axis:
P = a.cos(theta)
Q = b.cos(theta)
R = -b.sin(theta)
S = a.sin(theta)
|
Copyright IBM Corporation 1990, 2012 |