Methods
compute(info) → {Object|Array}
Computes the tangent points
Parameters:
Name | Type | Description |
---|---|---|
info |
CreateInfo | The creation info |
- Source:
Returns:
The tangents of TYPE_LINE in an array or INVALID, if non exist
- Type
- Object | Array
(static) fromInnerTangents(arc0, arc1, params) → {CreateInfo}
Computes the inner tangents of two arcs.
Due to the start and end angles of the arcs, they may not exist even for valid points on the corresponding circles.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arc0 |
Number | Object | Either the index or value of a TYPE_ARC. The first arc | ||||||||||||
arc1 |
Number | Object | Either the index or value of a TYPE_ARC. The second arc | ||||||||||||
params |
Object |
Properties
|
- Source:
Returns:
The creation info
- Type
- CreateInfo
(static) fromOuterTangents(arc0, arc1, params) → {CreateInfo}
Computes the outer tangents of two arcs.
Due to the start and end angles of the arcs, they may not exist even for valid points on the corresponding circles.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arc0 |
Number | Object | Either the index or value of a TYPE_ARC. The first arc | ||||||||||||
arc1 |
Number | Object | Either the index or value of a TYPE_ARC. The second arc | ||||||||||||
params |
Object |
Properties
|
- Source:
Returns:
The creation info
- Type
- CreateInfo
(static) fromPointArc(p, arc, params) → {CreateInfo}
Computes the tangent lines on an arc going through the given point.
Due to the start and end angles of the arc, they may not exist even for points outside the arc.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
p |
Number | Object | Either the index or value of a TYPE_POINT. The point | ||||||||||||
arc |
Number | Object | Either the index or value of a TYPE_ARC. The arc | ||||||||||||
params |
Object |
Properties
|
- Source:
Returns:
The creation info
- Type
- CreateInfo
(static) fromPointEllipse(p, ellipse, params) → {CreateInfo}
Computes the tangent lines on an ellipse going through the given point.
Due to the start and end angles of the arc, they may not exist even for points outside the ellipse.
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
p |
Number | Object | Either the index or value of a TYPE_POINT. The point | ||||||||||||
ellipse |
Number | Object | Either the index or value of a TYPE_ELLIPSE. The ellipse | ||||||||||||
params |
Object |
Properties
|
- Source:
Returns:
The creation info
- Type
- CreateInfo