PointOnLineParameter(Vector3, Vector3, Vector3)
Returns the parameter for the projection of the point on the given line.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor.CoreModule
public static float PointOnLineParameter(Vector3 point, Vector3 linePoint, Vector3 lineDirection)
Parameters
Returns
Type | Description |
|---|---|
| float |
Remarks
The return value can be negative if the projected point is in negative relative to the linePoint Additional Resources: HandleUtility.ProjectPointLine.
lineDirection