Class SoSFVec2s

  • public class SoSFVec2s
    extends SoSField
    Field containing a two-dimensional vector. SoSFVec2ss are written to file as a pair of short values separated by whitespace.

    See Also:
    SoField, SoSField, SoMFVec2f
    • Method Detail

      • setValue

        public void setValue​(short x,
                             short y)
        Sets the field to the given value.
      • getValue

        public SbVec2s getValue()
        Returns this field's value.
      • setValue

        public void setValue​(SbVec2s newValue)
        Sets this field to newValue.
      • equals

        public boolean equals​(java.lang.Object obj)
        equals in class SoField
      • setValue

        public void setValue​(SbVec2f vec2f)
        Convenience method that allows you to specify a field value using a float variable. The specified value is converted short precision, then stored.
      • setValue

        public void setValue​(short[] xy)
        Sets the field to the given value.