why we r using different variable lik cx cy fr circle.. x y fr rect and x1 y1 fr line??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

why we r using different variable lik cx cy fr circle.. x y fr rect and x1 y1 fr line???

8th Jun 2016, 3:21 AM
Govindhrazz Allu
Govindhrazz Allu - avatar
3 Answers
+ 1
Circle- Cx points the distance from center for x axis and Cy points the distance from center along y axis.. R is the radius of circle Rectangle - x and y points to the starting position on the screen. Top left corner of rectangle is the starting point. Line - x1,y1 is the first point on the screen and x2,y2 is the second point. The shortest distance is the line
6th Oct 2016, 6:04 PM
Ravi Kumar
Ravi Kumar - avatar
0
The rect needs the top left corner, while the circle needs the center point, and the line needs 2 points. These are meant to convey their meaning, so that you will easily know whuch value to enter.
9th Jun 2016, 2:00 PM
Eric Shtivelberg
Eric Shtivelberg - avatar
0
leboncoin..fr
20th Nov 2016, 10:31 AM
Robert Euskadi
Robert Euskadi - avatar