CurveEvaluator2D.getTangents Method

Parent Object: CurveEvaluator2D
Defined in namespace "adsk::core" and the header file is <Core/Geometry/CurveEvaluator2D.h>

Description

Get the tangent to the curve at a number of parameter positions on the curve.

Syntax

"curveEvaluator2D_var" is a variable referencing a CurveEvaluator2D object.

(returnValue, tangents) = curveEvaluator2D_var.getTangents(parameters)

#include <Core/Geometry/CurveEvaluator2D.h

// Declare the output arguments.
double[] parameters;
Vector2D[] tangents;
boolean returnValue = curveEvaluator2D_var->getTangents(parameters, tangents);

Return Value

Type Description
boolean Returns true if the tangents were successfully returned.

Parameters

Name Type Description
parameters double[] The array of parameter positions to return the tangent at. Each parameter value must be within the range of the parameter extents as provided by getParameterExtents.
tangents Vector2D[] The output array of tangent vectors for each position on the curve. The length of this array will be the same as the length of the parameters array provided.

Version

Introduced in version August 2014