Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

HandleUtility.DistancePointLine

static function DistancePointLine(point: Vector3, lineStart: Vector3, lineEnd: Vector3): float;
static float DistancePointLine(Vector3 point, Vector3 lineStart, Vector3 lineEnd);
static def DistancePointLine(point as Vector3, lineStart as Vector3, lineEnd as Vector3) as float

Description

Calculate distance between a point and a line.

See Also: ProjectPointLine.