V3Dotproduct

From GECK
Jump to: navigation, search


A function added by the AnhNVSE Plugin.

Description

Calculates the dot product of two vector3s.

Syntax

[help]
(Vector3:array) V3Dotproduct inVectorA:array inVectorB:array 

Example

array_var inVectorA
array_var inVectorB
array_var aResult

aResult = V3Dotproduct inVectorA inVectorB 

; aResult will be the dot product of vectorA and vectorB. ([vX, vY, vZ])