twcrane / aforge

Automatically exported from code.google.com/p/aforge
Other
0 stars 0 forks source link

Conversion operators for IntRange and DoubleRange objects #199

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently there is no way to convert between DoubleRange and IntRange objects. 
I suppose it would be useful to provide a conversion mechanism for those types.

Original issue reported on code.google.com by cesarso...@gmail.com on 16 Apr 2011 at 11:42

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 19 Apr 2011 at 8:55

GoogleCodeExporter commented 9 years ago
1) Added implicit conversion of IntRange to Range;
2) Added Range.ToIntRange( bool provideInnerRange ) method, which allows 
converting single precision range to inner/outer integer range;
3) Also added equality/inequality operators and ToString() for both Range and 
IntRange;
4) Unit tests are added for the above.

Committed in revision 1419. Will be released in version 2.1.6.

Original comment by andrew.k...@gmail.com on 20 Apr 2011 at 9:11

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 28 Jul 2011 at 9:47

GoogleCodeExporter commented 9 years ago

Original comment by andrew.k...@gmail.com on 10 Aug 2011 at 9:35