You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Manoylov Andriy eb8d3c5f80 add ukrainian translation 10 months ago
..
README-ua.md add ukrainian translation 10 months ago
README-vi.md Translate the glossary section 4 years ago
README.md Update documentation for normalize function 7 years ago

README.md

Normalize

Calculate the unit vector in the same direction as the input vector

Declaration

float normalize(float x)  
vec2 normalize(vec2 x)  
vec3 normalize(vec3 x)  
vec4 normalize(vec4 x)

Parameters

x specifies the vector to normalize.

Description

normalize() returns a vector with the same direction as its parameter, x, but with length 1.

See Also

length()