Class SoSFVec2f


  • public class SoSFVec2f
    extends SoSField
    Field containing a two-dimensional vector. SoSFVec2fs are written to file as a pair of floating point values separated by whitespace.

    See Also:
    SoField, SoSField, SoMFVec2f
    • Method Detail

      • setValue

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

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

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

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

        public void setValue​(SbVec2d vec2d)
        Convenience method that allows you to specify a field value using a double precision variable. Note that Open Inventor fields still store only single precision values, not double precision values. The specified value is converted to single precision, then stored.
      • setValue

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