Legacy Documentation: Version 4.6.2
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Vector4.Distance

public static function Distance(a: Vector4, b: Vector4): float;

Description

Returns the distance between a and b.

Vector4.Distance(a,b) is the same as (a-b).magnitude.