A
A
A person from Kazakhstan2019-07-16 11:39:34
JavaScript
A person from Kazakhstan, 2019-07-16 11:39:34

How to get svg.points on algorithms?

I want to learn this, I can draw SVG by any coordinates but in manual mode.
But now I'm interested in how to calculate these points in js :
5d2d8c0fd6dd7105087062.png
As you can see in the sandbox , how I transferred the sector from one SVG to another ... for this I drew two circles and set up guides and moved the points (also circle only small ones) and of course it turned out but I want to learn how to do it programmatically but js
How is it done ? I expect to see a detailed answer on how this is done ..
Not interested in graphic editors and plugins like SVG.js and the like
Only geometry and javascript
For an example, I wanted to see getting points next to a sector

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-07-16
@LenovoId

Sines, cosines, conversion from degrees to radians. For example .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question