meta data for this page
This is an old revision of the document!
Ellipse
A two dimensional shape that surrounds two focal points, such that for all points on the curve, the sum of the two distances to the focal points is a constant.
The 'radius'
Defaults:
- radius : [1, 1]
- center : [0, 0]
- startAngle : 0
- endAngle : PI * 2
- segments: 32
Circle
A two dimensional shape made by drawing a curve that is always the same distance from a center. All points are the same distance from the center.
Learn about circles at MathIsFun.com
The radius specifies the size. The resolution option determines the number of segments to create in 360 degrees of rotation.
Defaults:
- radius : 1
- center : [0, 0]
- segments: 32
let c1 = circle(1) let c2 = circle({r: 2, fn:5}) // fn = number of segments to approximate the circle let c3 = circle({r: 3, center: true})