Node: Querying Circles, Next: , Previous: Circle Operators, Up: Circle Reference


bool is_circular (void) const function
Returns true if the Circle is circular, otherwise false.

Certain transformations, such as shearing and scaling, can cause Circles to become non-circular.

          Circle c(origin, 3, 90);
          cout << c.is_circular();
          -| 1
          Circle d = c;
          d.scale(2, 3);
          cout << d.is_circular();
          -| 0

[Figure 176. Not displayed.]

Fig. 176.

real get_radius (void) Inline function
Returns radius.

real get_diameter (void) Inline function
Returns 2 * radius.