Change vector.unit to be vector.normalized

This commit is contained in:
ffrostfall 2024-05-13 18:31:28 -04:00 committed by GitHub
parent 946af7bc12
commit 10925130cb
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -28,9 +28,9 @@ Due to the common usage of vectors, vector creation should be ergonomic. Therefo
Calculates the magnitude of a given vector. Calculates the magnitude of a given vector.
`vector.unit(vec: vector): vector` `vector.normalized(vec: vector): vector`
Returns the unit vector (aka normalized vector) of a given vector. Returns the normalized version (aka unit vector) of a given vector.
`vector.cross(vecA: vector, vecB: vector): vector` `vector.cross(vecA: vector, vecB: vector): vector`