Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

normalize()

Purpose

Normalize a vector

Description

Gets the normalized vector of a specified vector which is a vector in the same direction but with length 1 (also called the unit vector)

Syntax

result = normalize( vector )

Arguments

result length of the specified vector

vector normalized vector

Example

result = normalize( { 3, 4, 5 } )
print( "{ ", result.x, ",", result.y, ",", result.z, " }")
print( length( result ) ) // prints 1.000000
update()
sleep( 3 )

Associated Commands

cross(), dot(), length(), reflect(), refract()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.