Class: PhotoscanOutputs::IncrementalTransform
Instance Attribute Summary
Attributes inherited from Transform
#mat
Instance Method Summary
collapse
Methods inherited from Transform
#*, from_xml, #inv, #r_mat, #scale, #sr_mat, #t, #t_mat
Constructor Details
Returns a new instance of IncrementalTransform.
126
127
128
129
130
|
# File 'lib/photoscan_outputs/camera.rb', line 126
def initialize( global, increment )
@global = global
@increment = increment
super (@global * @increment)
end
|
Instance Method Details
#dump(io = STDOUT) ⇒ Object
135
136
137
138
139
140
141
142
143
|
# File 'lib/photoscan_outputs/camera.rb', line 135
def dump( io = STDOUT )
io.puts "Incremental transform:"
io.puts " increment:"
print_mat( @increment )
io.puts " global:"
print_mat( @global )
io.puts " total transform:"
print_mat mat
end
|
#global ⇒ Object
132
|
# File 'lib/photoscan_outputs/camera.rb', line 132
def global; Transform.new @global; end
|
#incremental ⇒ Object
133
|
# File 'lib/photoscan_outputs/camera.rb', line 133
def incremental; Transform.new @increment; end
|