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

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

Description

Project point onto a line.