[squeak-dev] The Trunk: Kernel-mtf.553.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Mar 16 23:04:30 UTC 2011
Matthew Fulmer uploaded a new version of Kernel to project The Trunk:
http://source.squeak.org/trunk/Kernel-mtf.553.mcz
==================== Summary ====================
Name: Kernel-mtf.553
Author: mtf
Time: 16 March 2011, 7:02:49.782 pm
UUID: b8e42373-42ef-440e-a253-508b7661cd5f
Ancestors: Kernel-ul.552
Imported changes from cobalt
- added Magnitude >> clampLow:high:
- exposed the Float constants ln2 and ln10
=============== Diff against Kernel-ul.552 ===============
Item was added:
+ ----- Method: Float class>>ln10 (in category 'constants') -----
+ ln10
+ ^ Ln10!
Item was added:
+ ----- Method: Float class>>ln2 (in category 'constants') -----
+ ln2
+ ^ Ln2!
Item was added:
+ ----- Method: Magnitude>>clampHigh: (in category 'testing') -----
+ clampHigh: highMagnitude
+ "Answer my value, but keep it less than highMagnitude"
+
+ ^ self min: highMagnitude!
Item was added:
+ ----- Method: Magnitude>>clampLow: (in category 'testing') -----
+ clampLow: lowMagnitude
+ "Answer my value, but keep it greater than lowMagnitude"
+
+ ^ self max: lowMagnitude!
Item was added:
+ ----- Method: Magnitude>>clampLow:high: (in category 'testing') -----
+ clampLow: lowMagnitude high: highMagnitude
+ "Answer my value, but keep it between lowMagnitude and highMagnitude"
+
+ ^ self min: highMagnitude max: lowMagnitude!
More information about the Squeak-dev
mailing list
|