<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Actually in this case I need a new name
for invert<br>
opposite would be the replacement for inverse()<br>
<br>
Suggestions ?<br>
Greetings<br>
Janosch<br>
<br>
+ inline Angle inverse() const<br>
+ {<br>
+ return Angle(rad).invert();<br>
+ }<br>
+ <br>
+ /**<br>
+ * Inverts the current angle<br>
+ * */<br>
+ inline Angle &invert()<br>
+ {<br>
+ if(rad < 0)<br>
+ rad += M_PI;<br>
+ else<br>
+ rad -=M_PI;<br>
+ return *this;<br>
+ }<br>
+<br>
<br>
<br>
On 12.04.2013 12:02, Jakob Schwendner wrote:<br>
</div>
<blockquote
cite="mid:686670220.37708.1365760977939.JavaMail.open-xchange@ox6.dfki.de"
type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div> opposite() I also like better than invert(). </div>
<div> </div>
<div> cheers, </div>
<div> </div>
<div> Jakob </div>
<div> <br>
On April 12, 2013 at 11:58 AM Felix Rehrmann
<a class="moz-txt-link-rfc2396E" href="mailto:felix.rehrmann@dfki.de"><felix.rehrmann@dfki.de></a> wrote: <br>
> Hi, <br>
> <br>
> if I understand the invert function correctly I would
prefer to call it <br>
> opposite or oppositeDirection (inversion sounds somehow
strange with <br>
> regard to angles). <br>
> <br>
> Felix <br>
> <br>
> Am 12.04.2013 11:48, schrieb Janosch Machowinski: <br>
> > Hey, <br>
> > I want to extend base::Angle by two methods but I am
not <br>
> > sure about the naming of the methods. <br>
> > <br>
> > One would be : <br>
> > /** <br>
> > * Inverts the current angle <br>
> > * */ <br>
> > inline Angle &invert() <br>
> > { <br>
> > if(rad < 0) <br>
> > rad += M_PI; <br>
> > else <br>
> > rad -=M_PI; <br>
> > return *this; <br>
> > } <br>
> > <br>
> > <br>
> > The other would be : <br>
> > Angle operator-() <br>
> > { <br>
> > rad = -rad; <br>
> > } <br>
> > <br>
> > Is this an correct intuitive naming scheme ? <br>
> > Better ideas ? <br>
> > Greetings <br>
> > Janosch <br>
> > <br>
> > <br>
> > _______________________________________________ <br>
> > Rock-dev mailing list <br>
> > <a class="moz-txt-link-abbreviated" href="mailto:Rock-dev@dfki.de">Rock-dev@dfki.de</a> <br>
> > <a class="moz-txt-link-freetext" href="http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev">http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev</a> <br>
<br>
</div>
<div id="ox-signature"> </div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Rock-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Rock-dev@dfki.de">Rock-dev@dfki.de</a>
<a class="moz-txt-link-freetext" href="http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev">http://www.dfki.de/mailman/cgi-bin/listinfo/rock-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>