The Trunk: Collections-ar.418.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: Collections-ar.418.mcz

commits-2
Andreas Raab uploaded a new version of Collections to project The Trunk:
http://source.squeak.org/trunk/Collections-ar.418.mcz

==================== Summary ====================

Name: Collections-ar.418
Author: ar
Time: 14 December 2010, 8:21:44.816 am
UUID: 86763125-572f-a44b-8b82-ce7de39fb46d
Ancestors: Collections-mtf.417

Adds FloatArray>>normalize from Croquet for in-place normalization.

=============== Diff against Collections-mtf.417 ===============

Item was added:
+ ----- Method: FloatArray>>normalize (in category 'arithmetic') -----
+ normalize
+ "Unsafely normalize the receiver in-place (become a unit vector).
+   Div-by-Zero raised if len 0."
+ <primitive: 'primitiveNormalize' module: 'FloatArrayPlugin'>
+ self /= self length.!