1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

implemented to_a to CvCircle32f, CvPoint, CvPoint2D32f, CvPoint3D32f, CvScalar, CvSize, CvSize2D32f, CvTermCriteria, CvTwoPoints, CvVector, and added tests for them

This commit is contained in:
ser1zw 2011-01-10 01:18:11 +09:00
parent c98f5efbc9
commit 9791dae3bd
16 changed files with 41 additions and 2 deletions

View file

@ -78,6 +78,12 @@ class TestCvPoint3D32f < OpenCVTestCase
assert_in_delta(1.1, a[0], 0.001)
assert_in_delta(2.2, a[1], 0.001)
assert_in_delta(3.3, a[2], 0.001)
# Alias
a = CvPoint3D32f.new(1.1, 2.2, 3.3).to_a
assert_in_delta(1.1, a[0], 0.001)
assert_in_delta(2.2, a[1], 0.001)
assert_in_delta(3.3, a[2], 0.001)
end
end