Point2D.distanceTo Method

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

Description

Returns the distance from this point to another point.

Syntax

"point2D_var" is a variable referencing a Point2D object.
returnValue = point2D_var.distanceTo(point)
"point2D_var" is a variable referencing a Point2D object.

#include <Core/Geometry/Point2D.h>

returnValue = point2D_var->distanceTo(point);

Return Value

Type Description
double Returns the distance to the point.

Parameters

Name Type Description
point Point2D The point to measure the distance to

Version

Introduced in version August 2014