Vector3.OrthoNormalize Manual     Reference     Scripting  
Scripting > Runtime Classes > Vector3
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).

See Also: Normalize function.

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.

See Also: Normalize function.