Class SoSFVec3f


  • public class SoSFVec3f
    extends SoSField
    Field containing a three-dimensional vector. Field containing a three-dimensional vector.

    SoSFVec3fs are written to file as three floating point values separated by whitespace.

    See Also:
    SoField, SoSField, SoMFVec3f
    • Method Detail

      • setValue

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

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

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

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

        public void setValue​(SbVec3d vec3d)
        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[] xyz)
        Sets the field to the given value.