kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #20407
Re: BOX2<T>::SetMaximum()
Hi,
On 14.09.2015 19:10, Mark Roszko wrote:
> Weird, its supposed to be 0 for ints.
> http://en.cppreference.com/w/cpp/types/numeric_limits/epsilon
I was referring to the bit where it says "It is only meaningful if
std::numeric_limits<T>::is_integer == false". I think it's not a big
problem for int, as the known compilers behave the same way.
What's more interesting is that for int, the "top left" corner of the
box is at negative coordinates, and the center of the box is on the
origin, while for double, the box starts slightly to the right and
bottom of the origin.
That is certainly not intuitive.
Simon
Attachment:
signature.asc
Description: OpenPGP digital signature
References