<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"/>
 </head><body style="">
 
 
  <div>
   opposite() I also like better than invert().
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   cheers,
  </div> 
  <div>
   &#160;
  </div> 
  <div>
   Jakob
  </div> 
  <div>
   <br/>On April 12, 2013 at 11:58 AM Felix Rehrmann &#60;felix.rehrmann@dfki.de&#62; wrote:
   <br/>&#62; Hi,
   <br/>&#62; 
   <br/>&#62; if I understand the invert function correctly I would prefer to call it 
   <br/>&#62; opposite or oppositeDirection (inversion sounds somehow strange with 
   <br/>&#62; regard to angles).
   <br/>&#62; 
   <br/>&#62; Felix
   <br/>&#62; 
   <br/>&#62; Am 12.04.2013 11:48, schrieb Janosch Machowinski:
   <br/>&#62; &#62; Hey,
   <br/>&#62; &#62; I want to extend base::Angle by two methods but I am not
   <br/>&#62; &#62; sure about the naming of the methods.
   <br/>&#62; &#62;
   <br/>&#62; &#62; One would be :
   <br/>&#62; &#62; /**
   <br/>&#62; &#62; * Inverts the current angle
   <br/>&#62; &#62; * */
   <br/>&#62; &#62; inline Angle &#38;invert()
   <br/>&#62; &#62; {
   <br/>&#62; &#62; if(rad &#60; 0)
   <br/>&#62; &#62; rad += M_PI;
   <br/>&#62; &#62; else
   <br/>&#62; &#62; rad -=M_PI;
   <br/>&#62; &#62; return *this;
   <br/>&#62; &#62; }
   <br/>&#62; &#62;
   <br/>&#62; &#62;
   <br/>&#62; &#62; The other would be :
   <br/>&#62; &#62; Angle operator-()
   <br/>&#62; &#62; {
   <br/>&#62; &#62; rad = -rad;
   <br/>&#62; &#62; }
   <br/>&#62; &#62;
   <br/>&#62; &#62; Is this an correct intuitive naming scheme ?
   <br/>&#62; &#62; Better ideas ?
   <br/>&#62; &#62; Greetings
   <br/>&#62; &#62; Janosch
   <br/>&#62; &#62;
   <br/>&#62; &#62;
   <br/>&#62; &#62; _______________________________________________
   <br/>&#62; &#62; Rock-dev mailing list
   <br/>&#62; &#62; Rock-dev@dfki.de
   <br/>&#62; &#62; http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev
   <br/>
   <br/>
  </div> 
  <div id="ox-signature">
   &#160;
  </div>
 
</body></html>