Sha256: 3ba752cadad862c2d114118f6d7d7e6906cc0c0d510da15657099a6ba14ff7de
Contents?: true
Size: 696 Bytes
Versions: 2
Compression:
Stored size: 696 Bytes
Contents
# -*- coding: utf-8 -*- require "minitest/autorun" require "simplecov" SimpleCov.start require "sixarm_ruby_geometry/indexable/yaw" require "sixarm_ruby_geometry_test/fake" module Indexable class YawTest < Minitest::Test def test_0 assert(::Indexable::Yaw) end require "matrix" class C < Vector include ::Indexable::Yaw end DELTA = 0.00001 def test_yaw assert_in_delta(Math::PI * 0.0, C[ 1, 0, fake_f].yaw, DELTA) assert_in_delta(Math::PI * -0.5, C[ 0, 1, fake_f].yaw, DELTA) assert_in_delta(Math::PI * 1.0, C[-1, 0, fake_f].yaw, DELTA) assert_in_delta(Math::PI * 0.5, C[ 0, -1, fake_f].yaw, DELTA) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_geometry-3.1.1 | test/sixarm_ruby_geometry_test/indexable/yaw_test.rb |
sixarm_ruby_geometry-3.0.0 | test/sixarm_ruby_geometry_test/indexable/yaw_test.rb |