Hi Andrew I can't get this vector compare to return true.
srl
Vector compare ?
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files, scripts and screenshots.
Post one question per topic.
Re: Vector compare ?
To compare two vectors, use:
vector1.equalsFuzzy(vector2)To compare two doubles (real or floating point numeric values):
RMath.fuzzyCompare(value1, value2)The == operator should never be used when dealing with floating point values since floating point arithmetic is not always 100% accurate:
0.1+0.2==0.3 falseWith vectors and other objects, == does not work even if two vector are exactly identical since == compares the objects for identity, not the values inside:
var a = new RVector(0,0); var b = new RVector(0,0); a==b false a==a true
Re: Vector compare ?
Thanks Andrew.
As you can see I'm been on the LinuxCNC simulator. P2 makes the full arc circle work with offset.
Still more testing to be done.
srl
As you can see I'm been on the LinuxCNC simulator. P2 makes the full arc circle work with offset.
Still more testing to be done.
srl