Vector3
- Angle
- ClampMagnitude
- Cross
- Distance
- Dot
- forward
- Lerp
- magnitude
- Max
- Min
- MoveTowards
- normalized
- Normalize
- one
- operator !=
- operator *
- operator +
- operator -
- operator /
- operator ==
- OrthoNormalize
- Project
- Reflect
- right
- RotateTowards
- Scale
- Slerp
- SmoothDamp
- sqrMagnitude
- this [int index]
- ToString
- up
- Vector3
- x
- y
- zero
- z
Vector3.magnitude 长度
var magnitude : float
Description描述
Returns the length of this vector (Read Only).
返回向量的长度(只读)。
The length of the vector is square root of (x*x+y*y+z*z).
向量的长度是(x*x+y*y+z*z)的平方根。
If you only need to compare magnitudes of some vectors, you can compare squared magnitudes of them using sqrMagnitude (computing squared magnitudes is faster).
如果你需要比较一些向量的长度,你可以比较它们长度的平方,使用sqrMagnitude(计算平方很快)。
参见: sqrMagnitude.
最后修改:2011年1月4日 Tuesday 21:16