-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Corrects the circle() description #7110
Conversation
This clarifies that each point on the edge of the circle is half its diameter
src/core/shape/2d_primitives.js
Outdated
* its position. | ||
* A circle is a round shape defined by the `x`, `y`, and `d` parameters. | ||
* `x` and `y` set the location of its center. `d` sets its width and height (diameter). | ||
* Every point on the circle's edge is half the distance, `d`, from its center (radius = diameter/2). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch @JulioGitLab! What do you think about the following?
Every point on the circle's edge is the same distance,
0.5 * d
, from its center.0.5 * d
(half the diameter) is the circle's radius.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nickmcintyre! I think your way of explaining it is easier to understand. Let's use it!
The description of circle() was updated to one that is easier to understand
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
Thank you both! @JulioGitLab @nickmcintyre |
Changes:
This clarifies that each point on the edge of the circle is half its diameter.
PR Checklist
npm run lint
passes