ドキュメント

Unity Engine

Unity Engine

Normalize

Converts this quaternion to a quaternion with the same orientation but with a magnitude of 1.0.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule

Normalize(Quaternion)

Converts this quaternion to a quaternion with the same orientation but with a magnitude of 1.0.
public static Quaternion Normalize(Quaternion q)

Parameters

Returns

Type

Description

Quaternion

Remarks

Note that this method changes the current quaternion. If you want to keep the current quaternion unchanged, use the Quaternion.normalized property instead.
If this quaternion is too small to be normalized it will be set to Quaternion.identity.
Additional Resources: Quaternion.normalized variable.

Normalize()

Converts this quaternion to a quaternion with the same orientation but with a magnitude of 1.0.
public void Normalize()

Remarks

Note that this method changes the current quaternion. If you want to keep the current quaternion unchanged, use the Quaternion.normalized property instead.
If this quaternion is too small to be normalized it will be set to Quaternion.identity.
Additional Resources: Quaternion.normalized variable.