method
angle_with
v2_4_6 -
Show latest stable
- Class:
Vector
angle_with(v)public
Returns an angle with another vector. Result is within the [0…Math::PI].
Vector[1,0].angle_with(Vector[0,1]) # => Math::PI / 2
angle_with(v)Returns an angle with another vector. Result is within the [0…Math::PI].
Vector[1,0].angle_with(Vector[0,1]) # => Math::PI / 2