| Package | Description |
|---|---|
| org.joml |
Contains all classes of JOML.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Vector2i
Represents a 2D vector with single-precision.
|
| Modifier and Type | Method and Description |
|---|---|
Vector2i |
Vector2i.add(Vector2ic v)
Add
v to this vector. |
Vector2i |
Vector2i.add(Vector2ic v,
Vector2i dest) |
Vector2i |
Vector2ic.add(Vector2ic v,
Vector2i dest)
Add the supplied vector to this one and store the result in
dest. |
double |
Vector2i.distance(Vector2ic v) |
double |
Vector2ic.distance(Vector2ic v)
Return the distance between this Vector and
v. |
long |
Vector2i.distanceSquared(Vector2ic v) |
long |
Vector2ic.distanceSquared(Vector2ic v)
Return the square of the distance between this vector and
v. |
long |
Vector2i.gridDistance(Vector2ic v)
(non-Javadoc)
|
long |
Vector2ic.gridDistance(Vector2ic v)
Return the grid distance in between (aka 1-Norm, Minkowski or Manhattan distance)
(x, y). |
Vector2i |
Vector2i.max(Vector2ic v)
Set the components of this vector to be the component-wise maximum of this and the other vector.
|
Vector2i |
Vector2i.max(Vector2ic v,
Vector2i dest) |
Vector2i |
Vector2ic.max(Vector2ic v,
Vector2i dest)
Set the components of
dest to be the component-wise maximum of this and the other vector. |
Vector2i |
Vector2i.min(Vector2ic v)
Set the components of this vector to be the component-wise minimum of this and the other vector.
|
Vector2i |
Vector2i.min(Vector2ic v,
Vector2i dest) |
Vector2i |
Vector2ic.min(Vector2ic v,
Vector2i dest)
Set the components of
dest to be the component-wise minimum of this and the other vector. |
Vector2i |
Vector2i.mul(Vector2ic v)
Add the supplied vector by this one.
|
Vector2i |
Vector2i.mul(Vector2ic v,
Vector2i dest) |
Vector2i |
Vector2ic.mul(Vector2ic v,
Vector2i dest)
Multiply the supplied vector by this one and store the result in
dest. |
Vector2f |
Vector2f.set(Vector2ic v)
Set this
Vector2f to the values of v. |
Vector2d |
Vector2d.set(Vector2ic v)
Set this
Vector2d to be a clone of v. |
Vector2i |
Vector2i.set(Vector2ic v)
Set this
Vector2i to the values of v. |
Vector3d |
Vector3d.set(Vector2ic v,
double z)
Set the first two components from the given
v
and the z component from the given z |
Vector4d |
Vector4d.set(Vector2ic v,
double z,
double w)
Set the x and y components from the given
v
and the z and w components to the given z and w. |
Vector3f |
Vector3f.set(Vector2ic v,
float z)
Set the first two components from the given
v
and the z component from the given z |
Vector4f |
Vector4f.set(Vector2ic v,
float z,
float w)
Sets the first two components of this to the components of given
v
and last two components to the given z, and w. |
Vector3i |
Vector3i.set(Vector2ic v,
int z)
Set the first two components from the given
v and the z
component from the given z |
Vector4i |
Vector4i.set(Vector2ic v,
int z,
int w)
Sets the first two components of this to the components of given
v and last two components to the given z, and
w. |
Vector2i |
Vector2i.sub(Vector2ic v)
Subtract the supplied vector from this one and store the result in
this. |
Vector2i |
Vector2i.sub(Vector2ic v,
Vector2i dest) |
Vector2i |
Vector2ic.sub(Vector2ic v,
Vector2i dest)
Subtract the supplied vector from this one and store the result in
dest. |
| Constructor and Description |
|---|
Vector2d(Vector2ic v)
Create a new
Vector2d and initialize its components to the one of the given vector. |
Vector2f(Vector2ic v)
Create a new
Vector2f and initialize its components to the one of the given vector. |
Vector2i(Vector2ic v)
Create a new
Vector2i and initialize its components to the one of
the given vector. |
Vector3d(Vector2ic v,
double z)
|
Vector3f(Vector2ic v,
float z)
|
Vector3i(Vector2ic v,
int z)
|
Vector4d(Vector2ic v,
double z,
double w)
|
Vector4f(Vector2ic v,
float z,
float w)
|
Vector4i(Vector2ic v,
int z,
int w)
|
Copyright © 2015–2019 JOML. All rights reserved.