Class: DefTangentPoints

algeobra~DefTangentPoints()

Definition of the points of tangents touching arcs and ellipses

Constructor

new DefTangentPoints()

Source:

Methods

compute(info) → {Object|Array}

Computes the tangent points
Parameters:
Name Type Description
info CreateInfo The creation info
Source:
Returns:
The tangent points of TYPE_POINT in an array or INVALID, if non exist
Type
Object | Array

(static) fromInnerTangents(arc0, arc1) → {CreateInfo}

Computes the points on 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. Points come in pairs of points on the first and second arc.
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
Source:
Returns:
The creation info
Type
CreateInfo

(static) fromOuterTangents(arc0, arc1) → {CreateInfo}

Computes the points on 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. Points come in pairs of points on the first and second arc.
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
Source:
Returns:
The creation info
Type
CreateInfo

(static) fromPointArc(p, arc) → {CreateInfo}

Computes the points on the tangents 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
Source:
Returns:
The creation info
Type
CreateInfo

(static) fromPointEllipse(p, ellipse) → {CreateInfo}

Computes the points on the tangents 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
Source:
Returns:
The creation info
Type
CreateInfo