Login  Register

RS_MAXDOUBLE

Posted by ravas on Jan 18, 2016; 7:13pm
URL: https://forum.librecad.org/RS-MAXDOUBLE-tp5712826.html

In rs.h:
#define RS_MAXDOUBLE 1.0E+10

What is the significance of this number?
---

In RS_Snapper::snapPoint:
double ds2Min=RS_MAXDOUBLE*RS_MAXDOUBLE;

What is the significance of this number?
It seems like we can just hardcode the product,
instead of squaring RS_MAXDOUBLE with every snap.