Package com.aspose.threed
Class Vector4List
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<Vector4>
-
- com.aspose.threed.Vector4List
-
-
Constructor Summary
Constructors Constructor Description Vector4List()
Construct a newVector4List
Vector4List(int capacity)
Construct a newVector4List
with specified capacityVector4List(java.util.List<Vector4> vectors)
Construct a newVector4List
with default elements
-
Method Summary
Modifier and Type Method Description boolean
add(double x, double y, double z)
Adds a new vector to theVector4List
.void
add(int index, Vector4 item)
boolean
add(Vector3 item)
Adds an item to theVector4List
.boolean
add(Vector4 item)
Adds an item to theVector4List
.void
addRange(Vector4List vectors)
Add a range of vectors into current listvoid
addRange(java.util.List<Vector4> vectors)
Add a range of vectors into current listvoid
clear()
Removes all items from theVector4List
.Vector4List
clone()
Clone the current listboolean
contains(java.lang.Object item)
Determines whether theVector4List
contains a specific value.void
copyTo(Vector4[] array, int arrayIndex)
Copies the elements of theVector4List
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 theVector4List
.boolean
isReadOnly()
Gets a value indicating whether theVector4List
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 theVector4List
.Vector4
set(int index, Vector4 value)
Sets the element at the specified index.void
setCount(int value)
Gets the number of elements contained in theVector4List
.int
size()
Gets the number of elements contained in theVector4List
.Vector4[]
toNativeArray()
-
Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, lastIndexOf, listIterator, listIterator, removeRange, subList
-
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString
-
-
-
-
Constructor Detail
-
Vector4List
public Vector4List()
Construct a newVector4List
-
Vector4List
public Vector4List(int capacity)
Construct a newVector4List
with specified capacity
-
Vector4List
public Vector4List(java.util.List<Vector4> vectors)
Construct a newVector4List
with default elements
-
-
Method Detail
-
indexOf
public int indexOf(java.lang.Object item)
Determines the index of a specific item in theVector4List
.- Specified by:
indexOf
in interfacejava.util.List<Vector4>
- Overrides:
indexOf
in classjava.util.AbstractList<Vector4>
- Parameters:
item
- The object to locate in theVector4List
.- Returns:
- The index of
item
if found in the list; otherwise, -1.
-
get
public Vector4 get(int index)
Gets the element at the specified index.
-
addRange
public void addRange(java.util.List<Vector4> vectors)
Add a range of vectors into current list- Parameters:
vectors
-
-
addRange
public void addRange(Vector4List vectors)
Add a range of vectors into current list- Parameters:
vectors
-
-
add
public boolean add(Vector4 item)
Adds an item to theVector4List
.- Specified by:
add
in interfacejava.util.Collection<Vector4>
- Specified by:
add
in interfacejava.util.List<Vector4>
- Overrides:
add
in classjava.util.AbstractList<Vector4>
- Parameters:
item
- The object to add to theVector4List
.
-
add
public boolean add(double x, double y, double z)
Adds a new vector to theVector4List
.- Parameters:
x
- the x component of the vectory
- the y component of the vectorz
- the z component of the vector
-
add
public boolean add(Vector3 item)
Adds an item to theVector4List
.- Parameters:
item
- The object to add to theVector4List
.
-
clear
public void clear()
Removes all items from theVector4List
.
-
contains
public boolean contains(java.lang.Object item)
Determines whether theVector4List
contains a specific value.- Specified by:
contains
in interfacejava.util.Collection<Vector4>
- Specified by:
contains
in interfacejava.util.List<Vector4>
- Overrides:
contains
in classjava.util.AbstractCollection<Vector4>
- Parameters:
item
- The object to locate in theVector4List
.- Returns:
- true if
item
is found in theVector4List
; otherwise, false.
-
copyTo
public void copyTo(Vector4[] array, int arrayIndex)
Copies the elements of theVector4List
to an array, starting at a particular array index.- Parameters:
array
- The one-dimensional array that is the destination of the elements copied fromVector4List
. The array must have zero-based indexing.arrayIndex
- The zero-based index inarray
at which copying begins.
-
remove
public boolean remove(java.lang.Object item)
Removes the first occurrence of a specific object from theVector4List
.- Specified by:
remove
in interfacejava.util.Collection<Vector4>
- Specified by:
remove
in interfacejava.util.List<Vector4>
- Overrides:
remove
in classjava.util.AbstractCollection<Vector4>
- Returns:
- true if
item
was successfully removed from theVector4List
; otherwise, false. This method also returns false ifitem
is not found in the originalVector4List
.
-
setCount
public void setCount(int value)
Gets the number of elements contained in theVector4List
.- Parameters:
value
- New value
-
isReadOnly
public boolean isReadOnly()
Gets a value indicating whether theVector4List
is read-only.- Returns:
- true if the
Vector4List
is read-only; otherwise, false.
-
clone
public Vector4List clone()
Clone the current list- Overrides:
clone
in classjava.lang.Object
-
add
public void add(int index, Vector4 item)
-
remove
public Vector4 remove(int index)
-
toNativeArray
public Vector4[] toNativeArray()
-
size
public int size()
Gets the number of elements contained in theVector4List
.- Specified by:
size
in interfacejava.util.Collection<Vector4>
- Specified by:
size
in interfacejava.util.List<Vector4>
- Specified by:
size
in classjava.util.AbstractCollection<Vector4>
- Returns:
- The number of elements contained in the
Vector4List
.
-
iterator
public java.util.Iterator<Vector4> iterator()
-
-