module:extras/evaluators.Epitrochoid

Back to documentation index.

new module:extras/evaluators.Epitrochoid(outerRadius, rollerRadius, distFromRollerCenter, [rotationDegrees])

Augments: Curve

A curve evaluator object for a curve drawn by a circle that rolls along the outside of another circle, whose position is fixed, with a center of (0,0). The rolling circle will start at the positive X axis of the fixed circle.

The following curves can be generated with this class (in the following descriptions, O = outerRadius, R means rollerRadius, and D = distFromRollerCenter).

Parameters

Methods

module:extras/evaluators~Epitrochoid#endPoints()

Gets the endpoints of this curve. For this curve evaluator object, the curve starts at 0 and ends at π*2.

Return Value

An array containing the two endpoints of the curve. The first number is the start of the curve, and the second number is the end of the curve. * (Type: Array.<number>)

module:extras/evaluators~Epitrochoid#evaluate(u)

Generates a point on the curve from the given U coordinate.

Parameters

Return Value

A 3-element array specifying a 3D point. Only the X and Y coordinates will be other than 0. (Type: Array.<number>)

module:extras/evaluators~Epitrochoid#scaleTo(radius)

Creates a modified version of this curve so that it fits the given radius.

Parameters

Return Value

Return value. (Type: Epitrochoid)

Back to documentation index.