Vector2D.normalize Method

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

Description

Normalizes the vector. Normalization makes the vector length equal to one. The vector should not be zero length.

Syntax

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

#include <Core/Geometry/Vector2D.h>

returnValue = vector2D_var->normalize();

Return Value

Type Description
boolean Returns true if successful.

Version

Introduced in version August 2014