Version: 2021.3
言語: 日本語
public int sqrMagnitude ;

説明

ベクトルの 2 乗の長さを返します(読み取り専用)

magnitude よりも 2 乗の大きさの計算のほうがはるかに高速です。

Often if you are comparing magnitudes of two vectors you can just compare their squared magnitudes.

See Also: magnitude.