Closed Osspial closed 7 years ago
Cool, thanks! Let's export Bounded
as well. Out of curiosity, what was your use case?
I was using it to set initial integer values for points in a GUI layout engine, but looking at that code now it looks like it should have been initialized to zero instead! Still, it makes sense for these traits to be implemented.
Implements
Bounded
for all Points, Vectors, and Angles whereS
also implementsBounded
, givingmin_value
andmax_value
functions.Should
Bounded
be re-exported from the crate root? This PR currently doesn't, but othernum_traits
traits are exported fromcgmath
's root