Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

length()

Purpose

Find the length of a vector

Description

Calulates the length of a vector in 1,2,3 or 4 dimensions

Syntax

result = length( vector )

Arguments

result length of the specified vector

vector vector to find the length of

Example

print( length( { 3 } ) )             // prints 3
print( length( { 3, 4 } ) )          // prints 5
print( length( { 3, 4, 5 } ) )       // prints 7.071068
print( length( { 3, 4, 5, 6 } ) )    // prints 9.273619
update()
sleep( 3 )

Associated Commands

cross(), dot(), normalize(), 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.