/**
  * Get the vec value at the given position and copy it into the user provided field.
  *
  * @param index The position of the vec to copy
  * @param vec The field to copy data to
  */
 public void get1Value(int index, SFRotation vec) {
   int offset = index * 4;
   vec.setValue(data[offset], data[offset + 1], data[offset + 2], data[offset + 3]);
 }
Esempio n. 2
0
 /**
  * Set the value of an SFRotation.
  *
  * @param rotation SFRotation to take values from
  */
 public void setValue(SFRotation rotation) {
   float[] r = {0, 0, 1, 0};
   rotation.getValue(r);
   this.setValue(r);
 }