Since the availability of CCanvas it is time for a Vector library. To do so, I tried to port parts of paperjs.org (The Swiss Army Knife of Vector Graphics Scripting) to MQL.
Help is needed cause I can't fix the remaining issues myself. I guess that there will be an official library provided soon, and there is already the Controlls/Rect.mqh (faar too simple - but a start).
Here is the Coordinate.mqh struct (place it in the Include folder) and a CoordinateTest.mq5 script(place it in Scripts folder)
Run the CoordinateTest on any chart, the script tests all the methods and some results are not as expected (errors with line numbers are printed).
I don't know why it's not working - maybe you can help me.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Since the availability of CCanvas it is time for a Vector library. To do so, I tried to port parts of paperjs.org (The Swiss Army Knife of Vector Graphics Scripting) to MQL.
Help is needed cause I can't fix the remaining issues myself.
I guess that there will be an official library provided soon, and there is already the Controlls/Rect.mqh (faar too simple - but a start).
Here is the Coordinate.mqh struct (place it in the Include folder) and a CoordinateTest.mq5 script(place it in Scripts folder)
Run the CoordinateTest on any chart, the script tests all the methods and some results are not as expected (errors with line numbers are printed).
I don't know why it's not working - maybe you can help me.
regards Daniel