Vector2.ClampMagnitude 限制长度

static function ClampMagnitude (vector : Vector2, maxLength : float) : Vector2

Description描述

Returns a copy of vector with its magnitude clamped to maxLength.

返回向量的长度,最大不超过maxLength所指示的长度。

Page last updated: 2011-1-4