V3Normalize

From GECK
Jump to: navigation, search


A function added by the New Vegas Script Extender.

Description

Calculates a normalized vector3.

Syntax

[help]
(none) V3Normalize Out_X:string Out_Y:string Out_Z:string Vector_X:float Vector_Y:float Vector_Z:float 

Or:

(none) V3Norm Out_X:string Out_Y:string Out_Z:string Vector_X:float Vector_Y:float Vector_Z:float 

Example

float vX
float vY
float vZ

V3Normalize "vX" "vY" "vZ" vX vY vZ

; The result will be the normalized (vX; vY; vZ) vector.