Page 27 | Table of Contents | Index | Page 29 |
Chapters | |||
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30 A, B, C, D, E |
The Ellipse and Elliptical Arc Protocol
The following functions apply to both ellipses and elliptical arcs. In all cases, the name elliptical-
object means that the argument may be an ellipse or an elliptical arc. These generic functions
comprise the ellipse protocol. All classes that are subclasses of either ellipse or elliptical-
arc must implement methods for these functions.
=> ellipse-center-point* elliptical-object [Generic Function]
Returns the center point of elliptical-object as two values representing the coordinate pair.
=> ellipse-center-point elliptical-object [Generic Function]
Returns the center point of elliptical-object.
ellipse-center-point is part of the ellipse API, but not part of the ellipse protocol. CLIM
will supply default methods for ellipse-center-point on the protocol classes ellipse and
elliptical-arc that are implemented by calling ellipse-center-point*.
=> ellipse-radii elliptical-object [Generic Function]
Returns four values corresponding to the two radius vectors of elliptical-arc. These values may
be canonicalized in some way, and so may not be the same as the values passed to the constructor
function.
=> ellipse-start-angle elliptical-object [Generic Function]
Returns the start angle of elliptical-object. If elliptical-object is a full ellipse or closed path then
ellipse-start-angle will return nil; otherwise the value will be a number greater than or
Page 27 | Table of Contents | Index | Page 29 |
Chapters | |||
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30 A, B, C, D, E |