Class SoSFVec2i32


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

    See Also:
    SoField, SoSField, SoMFVec2f
    • Method Detail

      • getValue

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

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

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

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

        public void setValue​(SbVec2d vec2d)
        Convenience method that allows you to specify a field value using a double precision variable. The specified value is converted to int value, then stored.
      • setValue

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

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