纳金网

标题: Vector2.normalized 规范化 [打印本页]

作者: 烟雨    时间: 2019-8-22 09:42
标题: Vector2.normalized 规范化
来自:煮粥侠

Description描述

Returns this vector with
a magnitude of 1 (Read Only).
返回向量的长度为1(只读)。

When normalized, a vector keeps the same direction but its length is 1.0.
当规格化后,向量保持同样的方向,但是长度变为1.0。
Note that the current vector is unchanged and a new normalized vector is returned. If you want to normalize the current vector, use Normalize function.

注意,当前向量是不改变的,并且返回一个新的规范化的向量。如果你想规范当前的向量,使用Normalize函数。
If the vector is too small to be normalized a zero vector will be returned.

如果这个向量太小而不能被规范化,一个零向量将会被返回。






欢迎光临 纳金网 (http://go.narkii.com/club/) Powered by Discuz! X2.5