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.PointOnLineParameter

public static function PointOnLineParameter(point: Vector3, linePoint: Vector3, lineDirection: Vector3): float;

Description

Returns the parameter for the projection of the point on the given line.

The return value can be negative if the projected point is in negative lineDirection relative to the linePoint/ See Also: ProjectPointLine.