Api - Circle Class
Hierarchy
- Circle
Implements
Index
Constructors
Properties
Constructors
constructor
-
Class for circle path, created from radius. Origin will be [0, 0].
Example:
var c = new makerjs.paths.Circle(7);
Parameters
-
radius: number
The radius of the circle.
Returns Circle
-
-
Class for circle path, created from origin point and radius.
Example:
var c = new makerjs.paths.Circle([10, 10], 7);
Parameters
-
origin: IPoint
The center point of the circle.
-
radius: number
The radius of the circle.
Returns Circle
-
-
Class for circle path, created from 2 points.
Example:
var c = new makerjs.paths.Circle([5, 15], [25, 15]);
Parameters
Returns Circle
-
Class for circle path, created from 3 points.
Example:
var c = new makerjs.paths.Circle([0, 0], [0, 10], [20, 0]);
Parameters
-
pointA: IPoint
First point on the circle.
-
pointB: IPoint
Second point on the circle.
-
pointC: IPoint
Third point on the circle.
Returns Circle
-
Properties
origin
radius
type
Generated using TypeDoc
Class for circle path.