Interface SFVec2d

All Superinterfaces:
X3DField
All Known Implementing Classes:
SFVec2d

public interface SFVec2d extends X3DField
SFVec2d is a 2-tuple pair of SFDouble values. Hint: SFVec2d can be used to specify a 2D double-precision coordinate. Warning: comma characters within singleton values do not pass strict XML validation.

Warning: this is an abstract interface that cannot be instantiated as a concrete object. Java programmers typically only need to use concrete objects provided by the org.web3d.x3d.jsail classes.
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    getValue(double[] valueDestination)
    Write out the current value of this field into the external valueDestination array.
    void
    setValue(double[] newValue)
    Assign a new value to this field.
  • Method Details

    • getValue

      void getValue(double[] 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:
      ArrayIndexOutOfBoundsException - The provided valueDestination array was too small.
    • setValue

      void setValue(double[] newValue)
      Assign a new value to this field.
      Parameters:
      newValue - is replacement value array to assign