Dmitry. A. Ashkadov wrote:
> I found out that class Rectangle contains two different finctions
> getWidth() and GetWidth(). The first returns wrong value.
> 
Hi Dmitry - yes, the two different methods are surely confusing. As
for the "wrong value", that very much depends on the mental model of
rectangles you're using. In a discrete geometry world (aka "pixel"),
the GetWidth() is correct. In a continuous geometry world (aka
"euclidean plane"), getWidth() is right.

This fundamental, conceptual difference is the historical reason for
the two methods (admittedly, not a very clean solution to the
problem).

Cheers,

-- Thorsten

Attachment: pgpZXYiPbdbPu.pgp
Description: PGP signature

_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice

Reply via email to