Polar to Cartesian - 2D Coordinates

22 views
Skip to first unread message

Bert Mariani

unread,
Jul 6, 2024, 1:17:44 PMJul 6
to The Ring Programming Language
Hello Mahmoud et ALL

Attached:
  - AA-Draw-Polar-Cartesian-1.ring

Click the button "Polar-Cartesian" to start

Cartesian rectangle is on the Left
You grab the dot,  move it around
It will draw X,Y Lines
It will show the X,Y Values in the text box above it

It will covert the X,Y Values to  Polar coordinates  R, θ 
Draws the Radius and Angle θ
It will show the R, θ in the text box above it

The range is from  -5  to  +5  in the Rectangle 
The Polar Circle is  Radius 0 to +5
The Polar rectangle corners - radius is -7 to +7

It works the other way around also.


Polar-Cart-1.png
AA-Draw-Polar-Cartesian-1.ring

Mahmoud Fayed

unread,
Jul 6, 2024, 9:02:19 PMJul 6
to The Ring Programming Language
Hello Bert

Very nice sample, Thanks for sharing :D


Keep up the GREAT WORK :D

Greetings,
Mahmoud
Reply all
Reply to author
Forward
0 new messages