Class: VORuby::STC::V1_10::Coords::Vector3Coordinate
- Inherits:
-
CoordinateType
- Object
- CoordinateType
- VORuby::STC::V1_10::Coords::Vector3Coordinate
- 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
Instance Attribute Summary collapse
-
#error ⇒ Object
Returns the value of attribute error.
-
#pix_size ⇒ Object
Returns the value of attribute pix_size.
-
#resolution ⇒ Object
Returns the value of attribute resolution.
-
#size ⇒ Object
Returns the value of attribute size.
-
#value ⇒ Object
Returns the value of attribute value.
Attributes inherited from CoordinateType
Instance Method Summary collapse
- #==(sc) ⇒ Object
-
#initialize(options = {}) ⇒ Vector3Coordinate
constructor
A new instance of Vector3Coordinate.
Methods included from SerializableToXml
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(={}) .each { |key, value| send("#{key}=", value) } end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
1148 1149 1150 |
# File 'lib/voruby/stc/1.10/coords.rb', line 1148 def error @error end |
#pix_size ⇒ Object
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 |
#resolution ⇒ Object
Returns the value of attribute resolution.
1148 1149 1150 |
# File 'lib/voruby/stc/1.10/coords.rb', line 1148 def resolution @resolution end |
#size ⇒ Object
Returns the value of attribute size.
1148 1149 1150 |
# File 'lib/voruby/stc/1.10/coords.rb', line 1148 def size @size end |
#value ⇒ Object
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 |