Usage (signatures)
board.create('semicircle', [p1, p2]);
A circle arc drawn clockwise from p1 to p2. Its center is the midpoint of p1 to p2.
Parameters
| Name | Type | Description |
|---|---|---|
p1 |
PointLike | |
p2 |
PointLike |
Example
// Create an arc out of three free points
var p1 = board.create('point', [4.5, 2.0]);
var p2 = board.create('point', [1.0, 0.5]);
var a = board.create('semicircle', [p1, p2]);
Attributes
Own
center
- Description
Attributes for center point of the semicircle.
- Type
- Point
- Source
- options.js, line 8797
Inherited
none
Members
Own
midpoint : Midpoint
- Description
The midpoint of the two defining points.
- Type
- Midpoint
- Source
- element/arc.js, line 544
Inherited
none
Throws
-
If the element cannot be constructed with the given parent objects an exception is thrown.
- Type
- Error
Details
- Type
- Arc
- Source
- element/arc.js, line 482