Module: CVFFI::CvPoint3DCastMethods

Included in:
CvPoint3DBase, Point3D
Defined in:
lib/opencv-ffi-wrappers/core/point.rb

Instance Method Summary collapse

Instance Method Details

#to_a(homogeneous = true) ⇒ Object



231
232
233
234
235
236
237
# File 'lib/opencv-ffi-wrappers/core/point.rb', line 231

def to_a( homogeneous = true )
  if homogeneous
    [x,y,z,1]
  else
    [x,y,z]
  end
end

#to_CvPoint3D32fObject



227
228
229
# File 'lib/opencv-ffi-wrappers/core/point.rb', line 227

def to_CvPoint3D32f
  CvPoint3D32f.new( :x => x, :y => y, :z => z )
end

#to_CvPoint3D64fObject



223
224
225
# File 'lib/opencv-ffi-wrappers/core/point.rb', line 223

def to_CvPoint3D64f
  CvPoint3D64f.new( :x => x, :y => y, :z => z )
end