method

angle_with

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - 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
Show source
Register or log in to add new notes.