<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">What is about flip?<br>
<br>
Felix<br>
<br>
Am 12.04.2013 12:07, schrieb Janosch Machowinski:<br>
</div>
<blockquote cite="mid:5167DCFA.4010101@dfki.de" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<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>
</div>
</blockquote>
<blockquote cite="mid:5167DCFA.4010101@dfki.de" type="cite">
<div class="moz-cite-prefix"> 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
moz-do-not-send="true" 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 moz-do-not-send="true"
class="moz-txt-link-abbreviated"
href="mailto:Rock-dev@dfki.de">Rock-dev@dfki.de</a> <br>
> > <a moz-do-not-send="true"
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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Rock-dev@dfki.de">Rock-dev@dfki.de</a>
<a moz-do-not-send="true" 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>
<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>
<br>
<pre class="moz-signature" cols="72">--
Felix Rehrmann
Researcher
DFKI Bremen
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany
Phone: +49 (0)421 178 45-4129
Fax: +49 (0)421 218-64150
E-Mail: <a class="moz-txt-link-abbreviated" href="mailto:felix.rehrmann@dfki.de">felix.rehrmann@dfki.de</a>
Weitere Informationen: <a class="moz-txt-link-freetext" href="http://www.dfki.de/robotik">http://www.dfki.de/robotik</a>
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
(Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.: DE 148646973
Steuernummer: 19/673/0060/3
-----------------------------------------------------------------------
</pre>
</body>
</html>