CurveEvaluator2D.getTangent 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 parameter position on the curve.

Syntax

"curveEvaluator2D_var" is a variable referencing a CurveEvaluator2D object.

(returnValue, tangent) = curveEvaluator2D_var.getTangent(parameter)

#include <Core/Geometry/CurveEvaluator2D.h

// Declare the output arguments.
double parameter;
Ptr<Vector2D> tangent;
boolean returnValue = curveEvaluator2D_var->getTangent(parameter, tangent);

Return Value

Type Description
boolean Returns true if the tangent was successfully returned.

Parameters

Name Type Description
parameter double The parameter position to return the tangent at. This value must be within the range of the parameter extents as provided by getParameterExtents.
tangent Vector2D The output tangent vector at the curve position.

Version

Introduced in version August 2014