Class SoSFVec4f


public class SoSFVec4f extends SoSField
Field containing a homogeneous three-dimensional vector. Field containing a homogeneous three-dimensional vector.

SoSFVec4fs are written to file as four floating point values separated by whitespace.

See Also:
  • Constructor Details

  • Method Details

    • setValue

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

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

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

      public boolean equals(Object obj)
      Overrides:
      equals in class SoField
    • setValue

      public void setValue(SbVec4d vec4d)
      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[] xyzw)
      Sets the field to the given value.