Interface SFVec2f

All Superinterfaces:
X3DField
All Known Implementing Classes:
SFVec2fObject

public interface SFVec2f
extends X3DField
SFVec2f is a 2-tuple pair of SFFloat values. Hint: SFVec2f can be used to specify a 2D single-precision coordinate. Warning: comma characters in attribute values do not pass strict XML validation.


Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
See Also:
SAI Java Specification: B.4.39, SAI Abstract Specification: 5.2.15 SAIFieldType, X3D Abstract Specification: 5.3.17 SFVec2f and MFVec2f, X3D Tooltips, X3D Tooltips: field, X3D Tooltips: fieldValue, X3D Scene Authoring Hints
  • Method Details

    • getValue

      void getValue​(float[] valueDestination)
      Write out the current value of this field into the external valueDestination array.
      Parameters:
      valueDestination - The array to be filled in with current field values.
      Throws:
      java.lang.ArrayIndexOutOfBoundsException - The provided valueDestination array was too small.
    • setValue

      void setValue​(float[] newValue)
      Assign a new value to this field. Warning: newValue array length must correspond to tuple size for base type SFVec2f tuple size of 2.
      Parameters:
      newValue - is replacement value array to assign