お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Closeベクトルの長さを返します (Read Only)
ベクトルの (x*x+y*y+z*z+w*w)
の平方根の長さを返します
いくつかのベクトルの大きさを比較する必要がある場合は、 sqrMagnitude を使用して2乗の大きさを比較することが出来ます。
(2乗の計算は高速です)
See Also: sqrMagnitude.