public static Quaternion Normalize (Quaternion q);

Description

Converts this quaternion to one with the same orientation but with a magnitude of 1.

When normalized, a quaternion keeps the same orientation but its magnitude is 1.0.

Note that this method will change the current quaternion. If you want to keep the current quaternion unchanged, use the normalized property instead.

If this quaternion is too small to be normalized it will be set to Quaternion.identity.

See Also: sqrMagnitude.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961