You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, Linear.V2 is not an instance of UniformRange. It implements Random, which only exists for backwards compatibility reasons:
Random exists primarily for backwards compatibility with version 1.1 of this library. In new code, use the better specified Uniform and UniformRange instead.
I can add Uniform and UniformRange instances for V2 and the other vector types myself if you would like.
It is done. I added instances to all instances of Random in the project. The default implementations use Generic to fill out the definition automatically.
I am trying to generate a random point in a rectangle. I would like to write the the following code:
However,
Linear.V2
is not an instance ofUniformRange
. It implementsRandom
, which only exists for backwards compatibility reasons:I can add
Uniform
andUniformRange
instances forV2
and the other vector types myself if you would like.Links:
Random
Uniform
UniformRange
The text was updated successfully, but these errors were encountered: