Vector2D.scaleBy Method

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

Description

Scales the vector by specifying a scaling factor.

Syntax

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

#include <Core/Geometry/Vector2D.h>

returnValue = vector2D_var->scaleBy(scale);

Return Value

Type Description
boolean Returns true if successful.

Parameters

Name Type Description
scale double The scale factor to multiple the vector by (i.e. 1.5).

Version

Introduced in version August 2014