HandleUtility.DistanceToArc 到弧距离

static function DistanceToArc (center : Vector3, normal : Vector3, from : Vector3, angle : float, radius : float) : float

Description描述

Pixel distance from mouse pointer to a 3D section of a disc.

从鼠标指针到一个3D圆的扇形的像素距离。

Calculates the screen space distance from the mouse pointer to the disc section at given world space position with the given radius and normal. The disc section is defined by from vector and the angle in degrees.

计算屏幕空间从鼠标指针到在给定世界空间位置和带有半径和法线的圆扇形的距离。该圆扇形是由向量和角度定义。

Uses the current camera to determine the distance.

使用当前相机来确定距离。

参见: DistanceToDisc, DistanceToCircle.

最后修改:2011年7月10日 Sunday 14:54

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。