Vector3.OrthoNormalize 直角规范化

static function OrthoNormalize (ref normal : Vector3, ref tangent : Vector3) : void

Description描述

Makes vectors normalized and orthogonal to each other.

使向量规范化并且彼此相互垂直。

Normalizes normal. Normalizes tangent and makes sure it is orthogonal to normal (that is, angle between them is 90 degrees).

规范化normal,规范化tangent并且确保它垂直于normal(就是两者之间的角度为90度)。

参见: Normalize 函数

• static function OrthoNormalize (ref normal : Vector3, ref tangent : Vector3, ref binormal : Vector3) : void

Description描述

Makes vectors normalized and orthogonal to each other.

使向量规范化并且彼此相互垂直。

Normalizes normal. Normalizes tangent and makes sure it is orthogonal to normal. Normalizes binormal and makes sure it is orthogonal to both normal and tangent.

规范化normal,规范化tangent并且确保它垂直于normal。规范化binormal并确保它到normal和tangent两者之间相互垂直。

参见: Normalize 函数

最后修改:2010年12月19日 Sunday 23:53

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。