Vector2D.asArray Method

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

Description

Returns the vector values as an array [x, y].

Syntax

"vector2D_var" is a variable referencing a Vector2D object.
returnValue = vector2D_var.asArray()
"vector2D_var" is a variable referencing a Vector2D object.

#include <Core/Geometry/Vector2D.h>

returnValue = vector2D_var->asArray();

Return Value

Type Description
double[] Returns an array of the vector's values [x, y].

Version

Introduced in version August 2014