add axis to angle function

This commit is contained in:
Jack 2024-07-16 14:12:29 -05:00 committed by GitHub
parent f6b24eb5ba
commit f4e728494f
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -32,11 +32,11 @@ Calculates the magnitude of a given vector.
Returns the normalized version (aka unit 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(vec1: vector, vec2: vector): vector`
Returns the cross product of two vectors. If 4-wide vectors are enabled, this function will ignore the fourth component, and return the 3-dimensional cross product. Returns the cross product of two vectors. If 4-wide vectors are enabled, this function will ignore the fourth component, and return the 3-dimensional cross product.
`vector.dot(vecA: vector, vecB: vector): number` `vector.dot(vec1: vector, vec2: vector): number`
Returns the dot product of two vectors. Returns the dot product of two vectors.
@ -48,9 +48,9 @@ Equivalent of `math.floor` for vectors.
Equivalent of `math.ceil` for vectors. Equivalent of `math.ceil` for vectors.
`vector.angle(vecA: vector, vecB: vector): number` `vector.angle(vec1: vector, vec2: vector, axis: vector?): number`
Returns the angle between two vectors in radians. Returns the angle between two vectors in radians. The axis, if specified, is used to determine the sign of the angle.
`vector.abs(vec: vector): vector` `vector.abs(vec: vector): vector`