Class: VORuby::STC::V1_10::Coords::Vector3Coordinate

Inherits:
CoordinateType show all
Defined in:
lib/voruby/stc/1.10/coords.rb

Overview

Generic 3-D coordinate type. Single CError3, CResolution3, CSize3, CPixSize3 elements indicate definite values; pairs indicate ranges

Direct Known Subclasses

Position3D, Velocity3D

Instance Attribute Summary collapse

Attributes inherited from CoordinateType

#name

Instance Method Summary collapse

Methods included from SerializableToXml

#element

Constructor Details

#initialize(options = {}) ⇒ Vector3Coordinate

Returns a new instance of Vector3Coordinate.



1150
1151
1152
# File 'lib/voruby/stc/1.10/coords.rb', line 1150

def initialize(options={})
  options.each { |key, value| send("#{key}=", value) }
end

Instance Attribute Details

#errorObject

Returns the value of attribute error.



1148
1149
1150
# File 'lib/voruby/stc/1.10/coords.rb', line 1148

def error
  @error
end

#pix_sizeObject

Returns the value of attribute pix_size.



1148
1149
1150
# File 'lib/voruby/stc/1.10/coords.rb', line 1148

def pix_size
  @pix_size
end

#resolutionObject

Returns the value of attribute resolution.



1148
1149
1150
# File 'lib/voruby/stc/1.10/coords.rb', line 1148

def resolution
  @resolution
end

#sizeObject

Returns the value of attribute size.



1148
1149
1150
# File 'lib/voruby/stc/1.10/coords.rb', line 1148

def size
  @size
end

#valueObject

Returns the value of attribute value.



1148
1149
1150
# File 'lib/voruby/stc/1.10/coords.rb', line 1148

def value
  @value
end

Instance Method Details

#==(sc) ⇒ Object



1207
1208
1209
1210
1211
1212
1213
1214
# File 'lib/voruby/stc/1.10/coords.rb', line 1207

def ==(sc)
  super(sc) and
  self.value == sc.value and
  self.error == sc.error and
  self.resolution == sc.resolution and
  self.size == sc.size and
  self.pix_size == sc.pix_size
end