public class BufferUtils extends Object
| Constructor and Description |
|---|
BufferUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T[] |
reallocateBuffer(Class<T> klass,
T[] oldBuffer,
int oldCapacity,
int newCapacity)
Reallocate a buffer.
|
static <T> T[] |
reallocateBuffer(Class<T> klass,
T[] buffer,
int userSuppliedCapacity,
int oldCapacity,
int newCapacity,
boolean deferred)
Reallocate a buffer.
|
static float[] |
reallocateBuffer(float[] oldBuffer,
int oldCapacity,
int newCapacity)
Reallocate a buffer.
|
static float[] |
reallocateBuffer(float[] buffer,
int userSuppliedCapacity,
int oldCapacity,
int newCapacity,
boolean deferred)
Reallocate a float buffer.
|
static int[] |
reallocateBuffer(int[] oldBuffer,
int oldCapacity,
int newCapacity)
Reallocate a buffer.
|
static int[] |
reallocateBuffer(int[] buffer,
int userSuppliedCapacity,
int oldCapacity,
int newCapacity,
boolean deferred)
Reallocate an int buffer.
|
static void |
rotate(float[] ray,
int first,
int new_first,
int last)
Rotate an array, see std::rotate
|
static void |
rotate(int[] ray,
int first,
int new_first,
int last)
Rotate an array, see std::rotate
|
static <T> void |
rotate(T[] ray,
int first,
int new_first,
int last)
Rotate an array, see std::rotate
|
public static <T> T[] reallocateBuffer(Class<T> klass, T[] oldBuffer, int oldCapacity, int newCapacity)
public static int[] reallocateBuffer(int[] oldBuffer,
int oldCapacity,
int newCapacity)
public static float[] reallocateBuffer(float[] oldBuffer,
int oldCapacity,
int newCapacity)
public static <T> T[] reallocateBuffer(Class<T> klass, T[] buffer, int userSuppliedCapacity, int oldCapacity, int newCapacity, boolean deferred)
public static int[] reallocateBuffer(int[] buffer,
int userSuppliedCapacity,
int oldCapacity,
int newCapacity,
boolean deferred)
public static float[] reallocateBuffer(float[] buffer,
int userSuppliedCapacity,
int oldCapacity,
int newCapacity,
boolean deferred)
public static <T> void rotate(T[] ray,
int first,
int new_first,
int last)
public static void rotate(int[] ray,
int first,
int new_first,
int last)
public static void rotate(float[] ray,
int first,
int new_first,
int last)
Copyright © 2018. All rights reserved.