CurveEvaluator2D.getLengthAtParameter Method

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

Description

Get the length of the curve between two parameter positions on the curve.

Syntax

"curveEvaluator2D_var" is a variable referencing a CurveEvaluator2D object.

(returnValue, length) = curveEvaluator2D_var.getLengthAtParameter(fromParameter, toParameter)

#include <Core/Geometry/CurveEvaluator2D.h

// Declare the output arguments.
double fromParameter;
double toParameter;
double length;
boolean returnValue = curveEvaluator2D_var->getLengthAtParameter(fromParameter, toParameter, length);

Return Value

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

Parameters

Name Type Description
fromParameter double The parameter position to measure the curve length from. This value must be within the range of the parameter extents as provided by getParameterExtents.
toParameter double The parameter position to measure the curve length to. This value must be within the range of the parameter extents as provided by getParameterExtents.
length double The output curve length between the from and to parameter positions on the curve.

Version

Introduced in version August 2014