Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

HandleUtility.DistancePointToLine

public static function DistancePointToLine(p: Vector2, a: Vector2, b: Vector2): float;

Description

Distance from a point p in 2d to a line defined by two points a and b.