Skip to content

Commit

Permalink
MaudUtil: delete the put() method for Vector4f
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Feb 13, 2024
1 parent 06c6a21 commit 8bd6049
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/main/java/maud/MaudUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -1101,29 +1101,6 @@ public static Object newTrack(
return result;
}

/**
* Write a Vector4f starting at the specified position. Does not alter the
* buffer's position. TODO use MyBuffer
*
* @param buffer the buffer to write to (not null, modified)
* @param startPosition the position at which to start writing (≥0)
* @param vector the input vector (not null, unaffected)
*
* @see com.jme3.util.BufferUtils#setInBuffer(com.jme3.math.Vector4f,
* java.nio.FloatBuffer, int)
*/
public static void put(
FloatBuffer buffer, int startPosition, Vector4f vector) {
Validate.nonNull(buffer, "buffer");
Validate.nonNegative(startPosition, "start position");
Validate.nonNull(vector, "vector");

buffer.put(startPosition, vector.x);
buffer.put(startPosition + 1, vector.y);
buffer.put(startPosition + 2, vector.z);
buffer.put(startPosition + 3, vector.w);
}

/**
* Convert a JME image to an AWT image.
*
Expand Down

0 comments on commit 8bd6049

Please sign in to comment.