Module: CVFFI::CvSizeCastMethods
- Included in:
- CvSizeBase, Size
- Defined in:
- lib/opencv-ffi-wrappers/core/size.rb
Instance Method Summary collapse
Instance Method Details
#to_CvSize ⇒ Object
31 32 33 |
# File 'lib/opencv-ffi-wrappers/core/size.rb', line 31 def to_CvSize CvSize.new( :width => x.to_i, :height => y.to_i ) end |
#to_CvSize2D32f ⇒ Object
27 28 29 |
# File 'lib/opencv-ffi-wrappers/core/size.rb', line 27 def to_CvSize2D32f CvSize2D32f.new( :width => x, :height => y ) end |
#to_CvSize2D64f ⇒ Object
23 24 25 |
# File 'lib/opencv-ffi-wrappers/core/size.rb', line 23 def to_CvSize2D64f CvSize2D64f.new( :width => x, :height => y ) end |