angle



inline fun angle(a: Float2, b: Float2): Float
inline fun angle(a: Float3, b: Float3): Float

Returns the angle in radians between vectors a and b.

Return

the angle between a and b in radians, clamped to 0, π

Parameters

a

the first vector

b

the second vector