https://redmine.ruby-lang.org/https://redmine.ruby-lang.org/favicon.ico?17113305112011-06-16T21:39:01ZRuby Issue Tracking SystemRuby master - Feature #4891: Vector#normalizehttps://redmine.ruby-lang.org/issues/4891?journal_id=180062011-06-16T21:39:01Zmrkn (Kenta Murata)muraken@gmail.com
<ul></ul><p>Bug じゃなくて Feature にするつもりでした。<br>
Bug から Feature へ後から変更することはできないんでしょうか?</p> Ruby master - Feature #4891: Vector#normalizehttps://redmine.ruby-lang.org/issues/4891?journal_id=180082011-06-16T21:47:54Zsorah (Sorah Fukumori)her@sorah.jp
<ul><li><strong>Tracker</strong> changed from <i>Bug</i> to <i>Feature</i></li></ul> Ruby master - Feature #4891: Vector#normalizehttps://redmine.ruby-lang.org/issues/4891?journal_id=181132011-06-21T05:39:30Zmarcandre (Marc-Andre Lafortune)marcandre-ruby-core@marc-andre.ca
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li><li><strong>Assignee</strong> changed from <i>keiju (Keiju Ishitsuka)</i> to <i>marcandre (Marc-Andre Lafortune)</i></li><li><strong>Target version</strong> changed from <i>2.0.0</i> to <i>1.9.3</i></li></ul><p>Sure.</p>
<p>I have to merge in my announced changes to Matrix & Vector in 1.9.3 as soon as I get the time, so I could include this too. Are we after the official feature freeze yet (I don't see the 1.9.3 branch)?</p> Ruby master - Feature #4891: Vector#normalizehttps://redmine.ruby-lang.org/issues/4891?journal_id=185422011-06-27T10:48:06Zsakuro (Sakuro OZAWA)
<ul></ul><p>=begin<br>
Just for curiosity's sake, what is expected from Vector[0,0,0].normalize ?</p>
<ul>
<li>((<WolframAlpha|URL:<a href="http://www.wolframalpha.com/input/?i=normalize+%280%2C0%2C0%29%3E" class="external">http://www.wolframalpha.com/input/?i=normalize+%280%2C0%2C0%29></a>)) says: the zero vector cannot be normalized.</li>
<li>The patch gives Vector[NaN, NaN, NaN].</li>
<li>returns (dup of) self?</li>
<li>domain error?<br>
=end</li>
</ul> Ruby master - Feature #4891: Vector#normalizehttps://redmine.ruby-lang.org/issues/4891?journal_id=189702011-07-09T14:41:05Zmarcandre (Marc-Andre Lafortune)marcandre-ruby-core@marc-andre.ca
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied as r32467, thank you!</p>