ドキュメント

Unity Engine

Unity Engine

normalized

Creates a normalized copy of a vector based on the current vector.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public readonly Vector4 normalized { get; }

Remarks

The normalized vector has a Vector4.magnitude of 1 and is in the same direction as the current vector. Returns a zero vector if the current vector is too small to be normalized. This property doesn't modify the current vector. To modify and normalize the current vector, use the Vector4.Normalize method.
Additional Resources: Vector4.Normalize method.