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

static function PointOnLineParameter(point: Vector3, linePoint: Vector3, lineDirection: Vector3): float;
static float PointOnLineParameter(Vector3 point, Vector3 linePoint, Vector3 lineDirection);
static def PointOnLineParameter(point as Vector3, linePoint as Vector3, lineDirection as Vector3) as 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.