Home
last modified time | relevance | path

Searched refs:angle_with (Results 1 – 8 of 8) sorted by relevance

/dports/lang/ruby26/ruby-2.6.9/test/matrix/
H A Dtest_vector.rb324 assert_in_epsilon(Math::PI, Vector[1, 0].angle_with(Vector[-1, 0]))
325 assert_in_epsilon(Math::PI/2, Vector[1, 0].angle_with(Vector[0, -1]))
326 assert_in_epsilon(Math::PI/4, Vector[2, 2].angle_with(Vector[0, 1]))
327 assert_in_delta(0.0, Vector[1, 1].angle_with(Vector[1, 1]), 0.00001)
328 assert_equal(Vector[6, 6].angle_with(Vector[7, 7]), 0.0)
329 assert_equal(Vector[6, 6].angle_with(Vector[-7, -7]), Math::PI)
331 assert_raise(Vector::ZeroVectorError) { Vector[1, 1].angle_with(Vector[0, 0]) }
332 assert_raise(Vector::ZeroVectorError) { Vector[0, 0].angle_with(Vector[1, 1]) }
333 assert_raise(Matrix::ErrDimensionMismatch) { Vector[1, 2, 3].angle_with(Vector[0, 1]) }
/dports/games/xconq/xconq-7.5.0-0pre.0.20050612/kernel/
H A Ddir.h96 #define angle_with(d1, d2) \ macro
H A Dmove.c636 angle1 = angle_with(dir, wind_dir_at(x, y)); in unit_speed()
639 angle2 = angle_with(dir, wind_dir_at(nx, ny)); in unit_speed()
/dports/lang/ruby26/ruby-2.6.9/doc/
H A DNEWS-2.2.0183 * Vector#angle_with returns the angle with its argument
H A DChangeLog-2.2.01124 * lib/matrix.rb: Add Vector#angle_with
/dports/lang/ruby26/ruby-2.6.9/lib/
H A Dmatrix.rb2288 def angle_with(v) method in Vector
/dports/games/xconq/xconq-7.5.0-0pre.0.20050612/changelogs/
H A DChangeLog-19962239 * dir.h (angle_with): Move to here from actions.c.
/dports/lang/ruby26/ruby-2.6.9/
H A DChangeLog15460 lib/matrix: Fix potential bug of Vector#angle_with