Set this
vector's components to their respective absolute values.
Compute the absolute of each of this vector's components
and store the result into dest
.
Vector2i.add(int x,
int y)
Increment the components of this vector by the given values.
Increment the components of this vector by the given values and store the
result in dest
.
Add the supplied vector to this one and store the result in
dest
.
Vector2i.div(float scalar)
Divide all components of this
Vector2i
by the given scalar value.
Divide all components of this
Vector2i
by the given scalar value.
Divide all components of this
Vector2i
by the given scalar value
and store the result in
dest
.
Divide all components of this
Vector2i
by the given scalar value
and store the result in
dest
.
Set the components of the given vector
dest
to those of
this
vector
using the given
RoundingMode
.
Set the components of the given vector
dest
to those of
this
vector
using the given
RoundingMode
.
Set the components of this vector to be the component-wise maximum of this and the other vector.
Set the components of dest
to be the component-wise maximum of this and the other vector.
Set the components of this vector to be the component-wise minimum of this and the other vector.
Set the components of dest
to be the component-wise minimum of this and the other vector.
Multiply all components of this
Vector2i
by the given scalar
value.
Vector2i.mul(int x,
int y)
Multiply the components of this vector by the given values.
Add the supplied vector by this one.
Multiply the components of this vector by the given values and store the
result in dest
.
Multiply all components of this
Vector2ic
by the given scalar
value and store the result in
dest
.
Multiply the supplied vector by this one and store the result in
dest
.
Negate this vector and store the result in dest
.
Set the x and y components to the supplied value.
Set the two components of this vector to the first two elements of the given array.
Vector2i.set(int x,
int y)
Set the x and y components to the supplied values.
Read this vector from the supplied
ByteBuffer
starting at the
specified absolute buffer position/index.
Read this vector from the supplied
IntBuffer
starting at the
specified absolute buffer position/index.
Set the value of the specified component of this vector.
Set the values of this vector by reading 2 integer values from off-heap memory,
starting at the given address.
Vector2i.sub(int x,
int y)
Decrement the components of this vector by the given values.
Subtract the supplied vector from this one and store the result in
this
.
Decrement the components of this vector by the given values and store the
result in dest
.
Subtract the supplied vector from this one and store the result in
dest
.
Set all components to zero.
Compute the absolute of each of this vector's components
and store the result into dest
.
Increment the components of this vector by the given values and store the
result in dest
.
Add the supplied vector to this one and store the result in
dest
.
Divide all components of this
Vector2i
by the given scalar value
and store the result in
dest
.
Divide all components of this
Vector2i
by the given scalar value
and store the result in
dest
.
Set the components of the given vector
dest
to those of
this
vector
using the given
RoundingMode
.
Set the components of the given vector
dest
to those of
this
vector
using the given
RoundingMode
.
Set the components of dest
to be the component-wise maximum of this and the other vector.
Set the components of dest
to be the component-wise minimum of this and the other vector.
Multiply the components of this vector by the given values and store the
result in dest
.
Multiply all components of this
Vector2ic
by the given scalar
value and store the result in
dest
.
Multiply the supplied vector by this one and store the result in
dest
.
Negate this vector and store the result in dest
.
Decrement the components of this vector by the given values and store the
result in dest
.
Subtract the supplied vector from this one and store the result in
dest
.