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


32.3 Operators

— Assignment operator: Circle& operator= (const Circle& c)

Makes the Circle a copy of c.

— Assignment operator: Circle& operator= (const Ellipse& e)

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.