Home
Manual
Reference
Scripting
Scripting Reference
Vector2
.ClampMagnitude
Menu
Overview
Runtime Classes
Attributes
Enumerations
Editor Classes
Attributes
Enumerations
History
Index
Vector2
All Members
Variables
magnitude
normalized
sqrMagnitude
this [int index]
x
y
Constructors
Vector2
Functions
Normalize
Scale
Set
ToString
Class Variables
one
right
up
zero
Class Functions
Angle
ClampMagnitude
Distance
Dot
Lerp
Max
Min
MoveTowards
operator !=
operator *
operator +
operator -
operator /
operator ==
operator Vector2
operator Vector3
Scale
static
function
ClampMagnitude (vector : Vector2, maxLength :
float
) : Vector2
Description
Returns a copy of
vector
with its magnitude clamped to
maxLength
.