Version: 2023.2
言語: 日本語
public float sqrMagnitude ;

説明

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

Calculating the squared magnitude instead of the magnitude is much faster. Often if you are comparing magnitudes of two vectors you can just compare their squared magnitudes.

Additional resources: magnitude.