EuclideanWrap Method
Wraps a value to a range of values defined
by the given minimum value and range.
Namespace: Gemstone.Numeric.AnalysisAssembly: Gemstone.Numeric (in Gemstone.Numeric.dll) Version: 1.0.172 -- Release Build+a1df2e6c05369850bd6adda4f66e605f51f93037
Gemstone.Numeric.Analysis.Euclidean.Wrap = function(value, minimum, range);
- value Double
- The value to be wrapped.
- minimum Double
- The minimum value of the range.
- range Double
- The size of the range.
DoubleThe given value wrapped to the given range.
This method wraps the given value based on the assumption that
for every pair of values x and y where x-y=range, the values are
equivalent. This is probably most widely understood in terms of
angles, where 0, 360, 720, etc. are all equivalent angles. If
you wanted to wrap an angle such that it is between 120 and 480,
for instance, you could call Euclidean.Wrap(angle, 120, 360).