Vector2D.setWithArray Method

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

Description

Sets the definition of the vector by specifying an array containing the x and y coordinates.

Syntax

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

#include <Core/Geometry/Vector2D.h>

returnValue = vector2D_var->setWithArray(coordinates);

Return Value

Type Description
boolean Returns true if successful

Parameters

Name Type Description
coordinates double[] An array that specifies the values for the x and y coordinates of the vector.

Version

Introduced in version August 2014