Class: VORuby::STC::V1_10::Coords::Vector2Coordinate
- Inherits:
-
CoordinateType
- Object
- CoordinateType
- VORuby::STC::V1_10::Coords::Vector2Coordinate
- Defined in:
- lib/voruby/stc/1.10/coords.rb
Overview
Generic 2-D coordinate type. Single CError2, CResolution2, CSize2, CPixSize2 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 = {}) ⇒ Vector2Coordinate
constructor
A new instance of Vector2Coordinate.
Methods included from SerializableToXml
Constructor Details
#initialize(options = {}) ⇒ Vector2Coordinate
Returns a new instance of Vector2Coordinate.
993 994 995 |
# File 'lib/voruby/stc/1.10/coords.rb', line 993 def initialize(={}) .each { |key, value| send("#{key}=", value) } end |
Instance Attribute Details
#error ⇒ Object
Returns the value of attribute error.
991 992 993 |
# File 'lib/voruby/stc/1.10/coords.rb', line 991 def error @error end |
#pix_size ⇒ Object
Returns the value of attribute pix_size.
991 992 993 |
# File 'lib/voruby/stc/1.10/coords.rb', line 991 def pix_size @pix_size end |
#resolution ⇒ Object
Returns the value of attribute resolution.
991 992 993 |
# File 'lib/voruby/stc/1.10/coords.rb', line 991 def resolution @resolution end |
#size ⇒ Object
Returns the value of attribute size.
991 992 993 |
# File 'lib/voruby/stc/1.10/coords.rb', line 991 def size @size end |
#value ⇒ Object
Returns the value of attribute value.
991 992 993 |
# File 'lib/voruby/stc/1.10/coords.rb', line 991 def value @value end |
Instance Method Details
#==(sc) ⇒ Object
1050 1051 1052 1053 1054 1055 1056 1057 |
# File 'lib/voruby/stc/1.10/coords.rb', line 1050 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 |