Closed ArtHome12 closed 1 year ago
Although clamp()
won't work:
the following trait bounds were not satisfied:
f32: Ord
I came to the conclusion that the step from the example in the post should not be T, but already Scale<T...>
And no mod,
div by scalar` is required.
Perhaps for completeness, need to add Scale::transform_length()
(in addition to transform_vector
, transform_point
, transform_size
...), but guided by the rule "less code is better" I think it should not do this. At least until someone needs it.
Scale::clamp()
will made according to the same in crate::point
Is Scale's lack of the ability to multiply and divide by T due to something or is it just unfinished? I have to write code like this
Instead this