HandleUtility.DistanceToArc 到弧距离

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


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


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.

Page last updated: 2011-7-10