/** * Copies a Vector3f from one position in the buffer to another. The index * values are in terms of vector number (eg, vector number 0 is positions * 0-2 in the FloatBuffer.) * * @param buf * the buffer to copy from/to * @param fromPos * the index of the vector to copy * @param toPos * the index to copy the vector to */ public static void copyInternalVector3(FloatBuffer buf, int fromPos, int toPos) { copyInternal(buf, fromPos * 3, toPos * 3, 3); }
/** * Copies a Vector2f from one position in the buffer to another. The index * values are in terms of vector number (eg, vector number 0 is positions * 0-1 in the FloatBuffer.) * * @param buf * the buffer to copy from/to * @param fromPos * the index of the vector to copy * @param toPos * the index to copy the vector to */ public static void copyInternalVector2(FloatBuffer buf, int fromPos, int toPos) { copyInternal(buf, fromPos * 2, toPos * 2, 2); }
/** * Copies a Vector3f from one position in the buffer to another. The index * values are in terms of vector number (eg, vector number 0 is postions 0-2 * in the FloatBuffer.) * * @param buf * the buffer to copy from/to * @param fromPos * the index of the vector to copy * @param toPos * the index to copy the vector to */ public static void copyInternalVector3(FloatBuffer buf, int fromPos, int toPos) { copyInternal(buf, fromPos * 3, toPos * 3, 3); }
/** * Copies a Vector2f from one position in the buffer to another. The index * values are in terms of vector number (eg, vector number 0 is postions 0-1 * in the FloatBuffer.) * * @param buf * the buffer to copy from/to * @param fromPos * the index of the vector to copy * @param toPos * the index to copy the vector to */ public static void copyInternalVector2(FloatBuffer buf, int fromPos, int toPos) { copyInternal(buf, fromPos * 2, toPos * 2, 2); }
/** * Copies a Vector2f from one position in the buffer to another. The index * values are in terms of vector number (eg, vector number 0 is positions * 0-1 in the FloatBuffer.) * * @param buf * the buffer to copy from/to * @param fromPos * the index of the vector to copy * @param toPos * the index to copy the vector to */ public static void copyInternalVector2(FloatBuffer buf, int fromPos, int toPos) { copyInternal(buf, fromPos * 2, toPos * 2, 2); }
/** * Copies a Vector3f from one position in the buffer to another. The index * values are in terms of vector number (eg, vector number 0 is positions * 0-2 in the FloatBuffer.) * * @param buf * the buffer to copy from/to * @param fromPos * the index of the vector to copy * @param toPos * the index to copy the vector to */ public static void copyInternalVector3(FloatBuffer buf, int fromPos, int toPos) { copyInternal(buf, fromPos * 3, toPos * 3, 3); }