Point2D.vectorTo Method

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

Description

Returns a vector from this point to another point.

Syntax

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

#include <Core/Geometry/Point2D.h>

returnValue = point2D_var->vectorTo(point);

Return Value

Type Description
Vector2D Returns a Vector2D object

Parameters

Name Type Description
point Point2D The other point to use to create the vector

Version

Introduced in version August 2014