Constructor and Description |
---|
Vector4List()
Construct a new
Vector4List |
Vector4List(int capacity)
Construct a new
Vector4List with specified capacity |
Vector4List(java.util.List<Vector4> vectors)
Construct a new
Vector4List with default elements |
Modifier and Type | Method and Description |
---|---|
boolean |
add(double x,
double y,
double z)
Adds a new vector to the
Vector4List . |
void |
add(int index,
Vector4 item) |
boolean |
add(Vector3 item)
Adds an item to the
Vector4List . |
boolean |
add(Vector4 item)
Adds an item to the
Vector4List . |
void |
addRange(java.util.List<Vector4> vectors)
Add a range of vectors into current list
|
void |
addRange(Vector4List vectors)
Add a range of vectors into current list
|
void |
clear()
Removes all items from the
Vector4List . |
Vector4List |
clone()
Clone the current list
|
boolean |
contains(java.lang.Object item)
Determines whether the
Vector4List contains a specific value. |
void |
copyTo(Vector4[] array,
int arrayIndex)
Copies the elements of the
Vector4List to an array, starting at a particular array index. |
Vector4 |
get(int index)
Gets the element at the specified index.
|
int |
indexOf(java.lang.Object item)
Determines the index of a specific item in the
Vector4List . |
boolean |
isReadOnly()
Gets a value indicating whether the
Vector4List is read-only. |
java.util.Iterator<Vector4> |
iterator() |
Vector4 |
remove(int index) |
boolean |
remove(java.lang.Object item)
Removes the first occurrence of a specific object from the
Vector4List . |
Vector4 |
set(int index,
Vector4 value)
Sets the element at the specified index.
|
void |
setCount(int value)
Gets the number of elements contained in the
Vector4List . |
int |
size()
Gets the number of elements contained in the
Vector4List . |
Vector4[] |
toNativeArray() |
Vector3 |
vector3At(int idx) |
addAll, equals, hashCode, lastIndexOf, listIterator, listIterator, removeRange, subList
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
public Vector4List()
Vector4List
public Vector4List(int capacity)
Vector4List
with specified capacitypublic Vector4List(java.util.List<Vector4> vectors)
Vector4List
with default elementspublic int indexOf(java.lang.Object item)
Vector4List
.indexOf
in interface java.util.List<Vector4>
indexOf
in class java.util.AbstractList<Vector4>
item
- The object to locate in the Vector4List
.item
if found in the list; otherwise, -1.public Vector4 get(int index)
public void addRange(java.util.List<Vector4> vectors)
vectors
- public void addRange(Vector4List vectors)
vectors
- public boolean add(Vector4 item)
Vector4List
.add
in interface java.util.Collection<Vector4>
add
in interface java.util.List<Vector4>
add
in class java.util.AbstractList<Vector4>
item
- The object to add to the Vector4List
.public boolean add(double x, double y, double z)
Vector4List
.x
- the x component of the vectory
- the y component of the vectorz
- the z component of the vectorpublic boolean add(Vector3 item)
Vector4List
.item
- The object to add to the Vector4List
.public void clear()
Vector4List
.public boolean contains(java.lang.Object item)
Vector4List
contains a specific value.contains
in interface java.util.Collection<Vector4>
contains
in interface java.util.List<Vector4>
contains
in class java.util.AbstractCollection<Vector4>
item
- The object to locate in the Vector4List
.item
is found in the Vector4List
; otherwise, false.public void copyTo(Vector4[] array, int arrayIndex)
Vector4List
to an array, starting at a particular array index.array
- The one-dimensional array that is the destination of the elements copied from Vector4List
. The array must have zero-based indexing.arrayIndex
- The zero-based index in array
at which copying begins.public boolean remove(java.lang.Object item)
Vector4List
.remove
in interface java.util.Collection<Vector4>
remove
in interface java.util.List<Vector4>
remove
in class java.util.AbstractCollection<Vector4>
item
was successfully removed from the Vector4List
; otherwise, false. This method also returns false if item
is not found in the original Vector4List
.public void setCount(int value)
Vector4List
.value
- New valuepublic boolean isReadOnly()
Vector4List
is read-only.Vector4List
is read-only; otherwise, false.public Vector4List clone()
clone
in class java.lang.Object
public void add(int index, Vector4 item)
public Vector4 remove(int index)
public Vector4[] toNativeArray()
public int size()
Vector4List
.size
in interface java.util.Collection<Vector4>
size
in interface java.util.List<Vector4>
size
in class java.util.AbstractCollection<Vector4>
Vector4List
.public java.util.Iterator<Vector4> iterator()
public Vector3 vector3At(int idx)