HandleUtility
- acceleration
- AddControl
- AddDefaultControl
- CalcLineTranslation
- ClosestPointToArc
- ClosestPointToDisc
- ClosestPointToPolyLine
- DistancePointBezier
- DistancePointLine
- DistanceToArc
- DistanceToCircle
- DistanceToDisc
- DistanceToLine
- DistanceToPolyLine
- GetHandleSize
- GUIPointToWorldRay
- niceMouseDeltaZoom
- niceMouseDelta
- PickGameObject
- PickRectObjects
- PointOnLineParameter
- PopCamera
- ProjectPointLine
- PushCamera
- RaySnap
- Repaint
- WorldPointToSizedRect
- WorldToGUIPoint
HandleUtility.DistanceToLine 到线距离
static function DistanceToLine (p1 : Vector3, p2 : Vector3) : float
Description描述
Pixel distance from mouse pointer to line.
从鼠标指针到线的像素距离。
Calculates the screen space distance from the mouse pointer to the line between p1 and p2 world space points.
计算屏幕空间从鼠标指针到线p1和p2之间的世界距离。
Uses the current camera to determine the distance.
使用当前相机来确定距离。
最后修改:2011年7月10日 Sunday 13:06