Vector2D.dotProduct Method

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

Description

Calculates the Dot Product of this vector and an input vector.

Syntax

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

#include <Core/Geometry/Vector2D.h>

returnValue = vector2D_var->dotProduct(vector);

Return Value

Type Description
Double Returns the dot product of the two vectors.

Parameters

Name Type Description
vector Vector2D The vector to use in the dot product calculation.

Version

Introduced in version August 2014