Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

distance()

Purpose

Find the distance between 2 points

Description

Returns the distance between 2 points in a 2 or 3 dimensions

Syntax

result = distance( point1, point2 )

Arguments

point1 Coordinates of first point { x, y, z }

point2 Coordinates of second point { x, y, z }

result Distance between point1 and point2

Example

p1 = { 80, 20, 60 }
p2 = { 30, 50, 70 }
print( distance( p1, p2 ) )
update()
sleep( 3 )

Associated Commands

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.