Node: Circle Operators, Next: , Previous: Circle Constructors and Setting Functions, Up: Circle Reference



Operators

Circle& operator= (const Circle& c) Assignment operator
Makes the Circle a copy of c.

Circle& operator= (const Ellipse& e) Assignment operator
Makes the Circle a copy of e, if e is circular. radius is set to e.axis_v / 2 and *this is returned.

If e is not circular, this function issues an error message and returns *this.