| Package | Description |
|---|---|
| com.io7m.jtensors |
| Modifier and Type | Interface and Description |
|---|---|
interface |
VectorReadable3IType
'Read' interface to three-dimensional vectors with integer elements.
|
interface |
VectorReadable4IType
'Read' interface to four-dimensional vectors with integer elements.
|
| Modifier and Type | Class and Description |
|---|---|
class |
VectorI2I
A two-dimensional immutable vector type with integer elements.
|
class |
VectorI3I
A three-dimensional immutable vector type with integer elements.
|
class |
VectorI4I
A four-dimensional immutable vector type with integer elements.
|
class |
VectorM2I
A two-dimensional mutable vector type with integer elements.
|
class |
VectorM3I
A three-dimensional mutable vector type with integer elements.
|
class |
VectorM4I
A four-dimensional mutable vector type with integer elements.
|
| Modifier and Type | Method and Description |
|---|---|
static VectorI2I |
VectorI2I.absolute(VectorReadable2IType v)
Calculate the absolute values of the elements in vector
v. |
static VectorM2I |
VectorM2I.absolute(VectorReadable2IType v,
VectorM2I out)
Calculate the absolute values of the elements in vector
v,
saving the result to out. |
static VectorI2I |
VectorI2I.add(VectorReadable2IType v0,
VectorReadable2IType v1)
Calculate the element-wise sum of the vectors
v0 and
v1. |
static VectorM2I |
VectorM2I.add(VectorReadable2IType v0,
VectorReadable2IType v1,
VectorM2I out)
Calculate the element-wise sum of the vectors
v0 and
v1, saving the result to out. |
static VectorM2I |
VectorM2I.addInPlace(VectorM2I v0,
VectorReadable2IType v1)
Calculate the element-wise sum of the vectors
v0 and
v1, saving the result to v0. |
static VectorI2I |
VectorI2I.addScaled(VectorReadable2IType v0,
VectorReadable2IType v1,
double r)
Calculate the element-wise sum of the vectors
v0 and the
element-wise product of v1 and r. |
static VectorM2I |
VectorM2I.addScaled(VectorReadable2IType v0,
VectorReadable2IType v1,
double r,
VectorM2I out)
Calculate the element-wise sum of the vectors
v0 and the
element-wise product of v1 and r, saving the
result to out. |
static VectorM2I |
VectorM2I.addScaledInPlace(VectorM2I v0,
VectorReadable2IType v1,
double r)
Calculate the element-wise sum of the vectors
v0 and the
element-wise product of v1 and r, saving the
result to v0. |
static double |
VectorM2I.angle(VectorReadable2IType v0,
VectorReadable2IType v1)
Calculate the angle between vectors
v0 and v1,
in radians. |
static double |
VectorI2I.angle(VectorReadable2IType v0,
VectorReadable2IType v1)
Calculate the angle between the vectors
v0 and
v1 in radians. |
static VectorI2I |
VectorI2I.clamp(VectorReadable2IType v,
int minimum,
int maximum)
Clamp the elements of the vector
v to the range
[minimum .. |
static VectorM2I |
VectorM2I.clamp(VectorReadable2IType v,
int minimum,
int maximum,
VectorM2I out)
Clamp the elements of the vector
v to the range
[minimum .. |
static VectorI2I |
VectorI2I.clampByVector(VectorReadable2IType v,
VectorReadable2IType minimum,
VectorReadable2IType maximum)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum and
maximum. |
static VectorM2I |
VectorM2I.clampByVector(VectorReadable2IType v,
VectorReadable2IType minimum,
VectorReadable2IType maximum,
VectorM2I out)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum and
maximum, saving the result to out. |
static VectorM2I |
VectorM2I.clampByVectorInPlace(VectorM2I v,
VectorReadable2IType minimum,
VectorReadable2IType maximum)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum and
maximum, saving the result to v. |
static VectorI2I |
VectorI2I.clampMaximum(VectorReadable2IType v,
int maximum)
Clamp the elements of the vector
v to the range
[-Infinity .. |
static VectorM2I |
VectorM2I.clampMaximum(VectorReadable2IType v,
int maximum,
VectorM2I out)
Clamp the elements of the vector
v to the range
[-Infinity .. |
static VectorI2I |
VectorI2I.clampMaximumByVector(VectorReadable2IType v,
VectorReadable2IType maximum)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in maximum. |
static VectorM2I |
VectorM2I.clampMaximumByVector(VectorReadable2IType v,
VectorReadable2IType maximum,
VectorM2I out)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in maximum, saving the
result to out. |
static VectorM2I |
VectorM2I.clampMaximumByVectorInPlace(VectorM2I v,
VectorReadable2IType maximum)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in maximum, saving the
result to v. |
static VectorI2I |
VectorI2I.clampMinimum(VectorReadable2IType v,
int minimum)
Clamp the elements of the vector
v to the range
[minimum .. |
static VectorM2I |
VectorM2I.clampMinimum(VectorReadable2IType v,
int minimum,
VectorM2I out)
Clamp the elements of the vector
v to the range
[minimum .. |
static VectorI2I |
VectorI2I.clampMinimumByVector(VectorReadable2IType v,
VectorReadable2IType minimum)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum. |
static VectorM2I |
VectorM2I.clampMinimumByVector(VectorReadable2IType v,
VectorReadable2IType minimum,
VectorM2I out)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum, saving the
result to out. |
static VectorM2I |
VectorM2I.clampMinimumByVectorInPlace(VectorM2I v,
VectorReadable2IType minimum)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum, saving the
result to v. |
static <T extends VectorWritable2IType> |
VectorM2I.copy(VectorReadable2IType input,
T output)
Copy all elements of the vector
input to the vector
output. |
void |
VectorWritable2IType.copyFrom2I(VectorReadable2IType in_v)
Set the current vector to the contents of the input vector.
|
void |
VectorM4I.copyFrom2I(VectorReadable2IType in_v) |
void |
VectorM3I.copyFrom2I(VectorReadable2IType in_v) |
void |
VectorM2I.copyFrom2I(VectorReadable2IType in_v) |
static int |
VectorM2I.distance(VectorReadable2IType v0,
VectorReadable2IType v1)
Calculate the distance between the two vectors
v0 and
v1. |
static int |
VectorI2I.distance(VectorReadable2IType v0,
VectorReadable2IType v1)
Calculate the distance between the two vectors
v0 and
v1. |
static int |
VectorM2I.dotProduct(VectorReadable2IType v0,
VectorReadable2IType v1)
Calculate the scalar product of the vectors
v0 and
v1. |
static int |
VectorI2I.dotProduct(VectorReadable2IType v0,
VectorReadable2IType v1)
Calculate the scalar product of the vectors
v0 and
v1. |
static VectorI2I |
VectorI2I.interpolateLinear(VectorReadable2IType v0,
VectorReadable2IType v1,
double alpha)
Linearly interpolate between
v0 and v1 by the
amount alpha. |
static VectorM2I |
VectorM2I.interpolateLinear(VectorReadable2IType v0,
VectorReadable2IType v1,
double alpha,
VectorM2I r)
Linearly interpolate between
v0 and v1 by the
amount alpha, saving the result to r. |
static int |
VectorM2I.magnitude(VectorReadable2IType v)
Calculate the magnitude of the vector
v. |
static int |
VectorI2I.magnitude(VectorReadable2IType v)
Calculate the magnitude of the vector
v. |
static int |
VectorM2I.magnitudeSquared(VectorReadable2IType v)
Calculate the squared magnitude of the vector
v. |
static int |
VectorI2I.magnitudeSquared(VectorReadable2IType v)
Calculate the squared magnitude of the vector
v. |
static MatrixM3x3D |
MatrixM3x3D.makeTranslation2I(VectorReadable2IType v,
MatrixM3x3D out)
Create a translation matrix that represents a translation by the vector
v, writing the resulting matrix to out. |
static MatrixM3x3F |
MatrixM3x3F.makeTranslation2I(VectorReadable2IType v,
MatrixM3x3F out)
Create a translation matrix that represents a translation by the vector
v, writing the resulting matrix to out. |
static VectorI2I |
VectorI2I.projection(VectorReadable2IType p,
VectorReadable2IType q)
Calculate the projection of the vector
p onto the vector
q. |
static VectorM2I |
VectorM2I.projection(VectorReadable2IType p,
VectorReadable2IType q,
VectorM2I r)
Calculate the projection of the vector
p onto the vector
q, saving the result in r. |
static VectorI2I |
VectorI2I.scale(VectorReadable2IType v,
double r)
Scale the vector
v by the scalar r. |
static VectorM2I |
VectorM2I.scale(VectorReadable2IType v,
double r,
VectorM2I out)
Scale the vector
v by the scalar r, saving the
result to out. |
static VectorI2I |
VectorI2I.subtract(VectorReadable2IType v0,
VectorReadable2IType v1)
Subtract the vector
v1 from the vector v0. |
static VectorM2I |
VectorM2I.subtract(VectorReadable2IType v0,
VectorReadable2IType v1,
VectorM2I out)
Subtract the vector
v1 from the vector v0,
saving the result to out. |
static VectorM2I |
VectorM2I.subtractInPlace(VectorM2I v0,
VectorReadable2IType v1)
Subtract the vector
v1 from the vector v0,
saving the result to v0. |
static MatrixM3x3D |
MatrixM3x3D.translateByVector2I(MatrixReadable3x3DType m,
VectorReadable2IType v,
MatrixM3x3D out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM3x3F |
MatrixM3x3F.translateByVector2I(MatrixReadable3x3FType m,
VectorReadable2IType v,
MatrixM3x3F out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM4x4D |
MatrixM4x4D.translateByVector2I(MatrixReadable4x4DType m,
VectorReadable2IType v,
MatrixM4x4D out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector2I(MatrixReadable4x4FType m,
VectorReadable2IType v,
MatrixM4x4F out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM3x3D |
MatrixM3x3D.translateByVector2IInPlace(MatrixM3x3D m,
VectorReadable2IType v)
Translate the matrix
m by the vector v, storing
the resulting matrix in m. |
static MatrixM3x3F |
MatrixM3x3F.translateByVector2IInPlace(MatrixM3x3F m,
VectorReadable2IType v)
Translate the matrix
m by the vector v, storing
the resulting matrix in m. |
static MatrixM4x4D |
MatrixM4x4D.translateByVector2IInPlace(MatrixM4x4D m,
VectorReadable2IType v)
Translate the matrix
m by the vector v, storing
the resulting matrix in m. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector2IInPlace(MatrixM4x4F m,
VectorReadable2IType v)
Translate the matrix
m by the vector v, storing
the resulting matrix in m. |
| Constructor and Description |
|---|
VectorI2I(VectorReadable2IType in_v)
Construct a vector initialized with the values given in the vector
v. |
VectorM2I(VectorReadable2IType in_v)
Construct a vector initialized with the values given in the vector
in_v. |
Copyright © 2014 <code@io7m.com> http://io7m.com