| Package | Description |
|---|---|
| com.io7m.jtensors |
Core vector and matrix types.
|
| com.io7m.jtensors.bytebuffered |
ByteBuffer backed tensors. |
| com.io7m.jtensors.bytebuffered.parameterized |
ByteBuffer backed parameterized tensors. |
| com.io7m.jtensors.parameterized |
Parameterized vector and matrix types.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Quaternion4DType
The type of mutable quaternions with
double elements. |
interface |
QuaternionWritable4DType
'Write' interface to four-dimensional quaternions with
double
elements. |
interface |
Vector3DType
The type of three-element vectors that are both readable and writable, and
have
double elements |
interface |
Vector4DType
The type of four-element vectors that are both readable and writable, and
have
double elements |
interface |
VectorWritable4DType
'Write' interface to four-dimensional vectors with
double
elements. |
| Modifier and Type | Class and Description |
|---|---|
class |
QuaternionM4D
A four-dimensional mutable quaternion type with
double
elements. |
class |
VectorM3D
A three-dimensional mutable vector type with
double elements. |
class |
VectorM4D
A four-dimensional mutable vector type with
double elements. |
| Modifier and Type | Method and Description |
|---|---|
static <V extends VectorWritable3DType> |
VectorM3D.absolute(VectorReadable3DType v,
V out)
Calculate the absolute values of the elements in vector
v, saving
the result to out. |
static <V extends VectorWritable3DType & VectorReadable3DType> |
VectorM3D.absoluteInPlace(V v)
Calculate the absolute values of the elements in vector
v,
modifying the vector in-place. |
static <V extends VectorWritable3DType> |
VectorM3D.add(VectorReadable3DType v0,
VectorReadable3DType v1,
V out)
Calculate the element-wise sum of the vectors
v0 and v1,
saving the result to out. |
static <V extends VectorWritable3DType & VectorReadable3DType> |
VectorM3D.addInPlace(V v0,
VectorReadable3DType v1)
Calculate the element-wise sum of the vectors
v0 and v1,
saving the result to v0. |
static <V extends VectorWritable3DType> |
VectorM3D.addScaled(VectorReadable3DType v0,
VectorReadable3DType v1,
double r,
V 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 <V extends VectorWritable3DType & VectorReadable3DType> |
VectorM3D.addScaledInPlace(V v0,
VectorReadable3DType 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 <V extends VectorWritable3DType> |
VectorM3D.clamp(VectorReadable3DType v,
double minimum,
double maximum,
V out)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <V extends VectorWritable3DType> |
VectorM3D.clampByVector(VectorReadable3DType v,
VectorReadable3DType minimum,
VectorReadable3DType maximum,
V 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 <V extends VectorWritable3DType & VectorReadable3DType> |
VectorM3D.clampByVectorInPlace(V v,
VectorReadable3DType minimum,
VectorReadable3DType 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 <V extends VectorWritable3DType & VectorReadable3DType> |
VectorM3D.clampInPlace(V v,
double minimum,
double maximum)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <V extends VectorWritable3DType> |
VectorM3D.clampMaximum(VectorReadable3DType v,
double maximum,
V out)
Clamp the elements of the vector
v to the range {@code [-Infinity
.. |
static <V extends VectorWritable3DType> |
VectorM3D.clampMaximumByVector(VectorReadable3DType v,
VectorReadable3DType maximum,
V 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 <V extends VectorWritable3DType & VectorReadable3DType> |
VectorM3D.clampMaximumByVectorInPlace(V v,
VectorReadable3DType 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 <V extends VectorWritable3DType & VectorReadable3DType> |
VectorM3D.clampMaximumInPlace(V v,
double maximum)
Clamp the elements of the vector
v to the range {@code [-Infinity
.. |
static <V extends VectorWritable3DType> |
VectorM3D.clampMinimum(VectorReadable3DType v,
double minimum,
V out)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <V extends VectorWritable3DType> |
VectorM3D.clampMinimumByVector(VectorReadable3DType v,
VectorReadable3DType minimum,
V 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 <V extends VectorWritable3DType & VectorReadable3DType> |
VectorM3D.clampMinimumByVectorInPlace(V v,
VectorReadable3DType 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 <V extends VectorWritable3DType & VectorReadable3DType> |
VectorM3D.clampMinimumInPlace(V v,
double minimum)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <V extends VectorWritable3DType> |
VectorM3D.copy(VectorReadable3DType input,
V output)
Copy all elements of the vector
input to the vector output. |
static <V extends VectorWritable3DType> |
VectorM3D.crossProduct(VectorReadable3DType v0,
VectorReadable3DType v1,
V out)
Return a vector perpendicular to both
v0 and v1 , saving
the result in out. |
<V extends VectorWritable3DType> |
MatrixReadable3x3DType.getRow3D(int row,
V out)
Retrieve row
row, saving the result to out. |
<V extends VectorWritable3DType> |
MatrixI4x4D.getRow3D(int row,
V out) |
<V extends VectorWritable3DType> |
MatrixI3x3D.getRow3D(int row,
V out) |
<V extends VectorWritable3DType> |
MatrixHeapArrayM4x4D.getRow3D(int row,
V out) |
<V extends VectorWritable3DType> |
MatrixHeapArrayM3x3D.getRow3D(int row,
V out) |
<V extends VectorWritable3DType> |
MatrixDirectM4x4D.getRow3D(int row,
V out) |
<V extends VectorWritable3DType> |
MatrixDirectM3x3D.getRow3D(int row,
V out) |
<V extends VectorWritable3DType> |
MatrixReadable3x3DType.getRow3DUnsafe(int row,
V out)
Retrieve row
row, saving the result to out. |
<V extends VectorWritable3DType> |
MatrixI4x4D.getRow3DUnsafe(int row,
V out) |
<V extends VectorWritable3DType> |
MatrixI3x3D.getRow3DUnsafe(int row,
V out) |
<V extends VectorWritable3DType> |
MatrixHeapArrayM4x4D.getRow3DUnsafe(int row,
V out) |
<V extends VectorWritable3DType> |
MatrixHeapArrayM3x3D.getRow3DUnsafe(int row,
V out) |
<V extends VectorWritable3DType> |
MatrixDirectM4x4D.getRow3DUnsafe(int row,
V out) |
<V extends VectorWritable3DType> |
MatrixDirectM3x3D.getRow3DUnsafe(int row,
V out) |
static <V extends VectorWritable3DType> |
VectorM3D.interpolateLinear(VectorM3D.ContextVM3D c,
VectorReadable3DType v0,
VectorReadable3DType v1,
double alpha,
V r)
Linearly interpolate between
v0 and v1 by the amount alpha, saving the result to r. |
static <M extends MatrixWritable3x3DType,V extends VectorWritable3DType> |
MatrixM3x3D.lookAt(MatrixM3x3D.ContextMM3D context,
VectorReadable3DType origin,
VectorReadable3DType target,
VectorReadable3DType up,
M out_matrix,
V out_translation)
Calculate a rotation and translation representing a "camera" looking
from the point
origin to the point target. |
static <V extends VectorWritable3DType> |
MatrixM3x3D.multiplyVector3D(MatrixM3x3D.ContextMM3D c,
MatrixReadable3x3DType m,
VectorReadable3DType v,
V out)
Multiply the matrix
m with the vector v, writing the
resulting vector to out. |
static <V extends VectorWritable3DType> |
VectorM3D.normalize(VectorReadable3DType v,
V out)
Returns a vector with the same orientation as
v but with magnitude
equal to 1.0 in out. |
static <V extends VectorWritable3DType & VectorReadable3DType> |
VectorM3D.normalizeInPlace(V v)
Returns a vector with the same orientation as
v but with magnitude
equal to 1.0 in v. |
static <V extends VectorReadable3DType,U extends VectorWritable3DType> |
VectorM3D.orthoNormalize(VectorM3D.ContextVM3D c,
VectorReadable3DType v0,
U v0_out,
VectorReadable3DType v1,
U v1_out)
Orthonormalize and return the vectors
v0 and v1 . |
static <V extends VectorWritable3DType & VectorReadable3DType,W extends VectorWritable3DType & VectorReadable3DType> |
VectorM3D.orthoNormalizeInPlace(VectorM3D.ContextVM3D c,
V v0,
W v1)
Orthonormalize and the vectors
v0 and v1. |
static <V extends VectorWritable3DType & VectorReadable3DType,W extends VectorWritable3DType & VectorReadable3DType> |
VectorM3D.orthoNormalizeInPlace(VectorM3D.ContextVM3D c,
V v0,
W v1)
Orthonormalize and the vectors
v0 and v1. |
static <V extends VectorWritable3DType> |
VectorM3D.projection(VectorReadable3DType p,
VectorReadable3DType q,
V r)
Calculate the projection of the vector
p onto the vector q,
saving the result in r. |
static <V extends VectorWritable3DType> |
VectorM3D.scale(VectorReadable3DType v,
double r,
V out)
Scale the vector
v by the scalar r, saving the result to
out. |
static <V extends VectorWritable3DType & VectorReadable3DType> |
VectorM3D.scaleInPlace(V v,
double r)
Scale the vector
v by the scalar r, saving the result to
v. |
static <V extends VectorWritable3DType> |
VectorM3D.subtract(VectorReadable3DType v0,
VectorReadable3DType v1,
V out)
Subtract the vector
v1 from the vector v0, saving the
result to out. |
static <V extends VectorWritable3DType & VectorReadable3DType> |
VectorM3D.subtractInPlace(V v0,
VectorReadable3DType v1)
Subtract the vector
v1 from the vector v0, saving the
result to v0. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
QuaternionByteBuffered4DType
The type of
Quaternion4DType values that are also byte buffered. |
interface |
VectorByteBuffered3DType
The type of
Vector3DType values that are also byte buffered. |
interface |
VectorByteBuffered4DType
The type of
Vector4DType values that are also byte buffered. |
| Modifier and Type | Class and Description |
|---|---|
class |
QuaternionByteBufferedM4D
A quaternion type with
double elements, packed into a ByteBuffer. |
class |
VectorByteBufferedM3D
A three-element vector type with
double elements, packed into a
ByteBuffer. |
class |
VectorByteBufferedM4D
A four-element vector type with
double elements, packed into a
ByteBuffer. |
| Modifier and Type | Method and Description |
|---|---|
<V extends VectorWritable3DType> |
MatrixByteBufferedM4x4D.getRow3D(int row,
V out) |
<V extends VectorWritable3DType> |
MatrixByteBufferedM3x3D.getRow3D(int row,
V out) |
<V extends VectorWritable3DType> |
MatrixByteBufferedM4x4D.getRow3DUnsafe(int row,
V out) |
<V extends VectorWritable3DType> |
MatrixByteBufferedM3x3D.getRow3DUnsafe(int row,
V out) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PVectorByteBuffered3DType<T>
The type of
PVector3DType values that are also byte buffered. |
interface |
PVectorByteBuffered4DType<T>
The type of
PVector4DType values that are also byte buffered. |
| Modifier and Type | Class and Description |
|---|---|
class |
PVectorByteBufferedM3D<T>
A three-element vector type with
double elements, packed into a
ByteBuffer. |
class |
PVectorByteBufferedM4D<T>
A four-element vector type with
double elements, packed into a
ByteBuffer. |
| Modifier and Type | Method and Description |
|---|---|
<V extends VectorWritable3DType> |
PMatrixByteBufferedM4x4D.getRow3D(int row,
V out) |
<V extends VectorWritable3DType> |
PMatrixByteBufferedM3x3D.getRow3D(int row,
V out) |
<V extends VectorWritable3DType> |
PMatrixByteBufferedM4x4D.getRow3DUnsafe(int row,
V out) |
<V extends VectorWritable3DType> |
PMatrixByteBufferedM3x3D.getRow3DUnsafe(int row,
V out) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PVector3DType<T>
The type of three-element vectors that are both readable and writable, and
have
double elements |
interface |
PVector4DType<T>
The type of four-element vectors that are both readable and writable, and
have
double elements |
interface |
PVectorWritable3DType<T>
'Write' interface to three-dimensional vectors with
double
elements. |
interface |
PVectorWritable4DType<T>
'Write' interface to four-dimensional vectors with
double
elements. |
| Modifier and Type | Class and Description |
|---|---|
class |
PVectorM3D<T>
A three-dimensional mutable vector type with
double elements. |
class |
PVectorM4D<T>
A four-dimensional mutable vector type with
double elements. |
| Modifier and Type | Method and Description |
|---|---|
<V extends VectorWritable3DType> |
PMatrixI4x4D.getRow3D(int row,
V out) |
<V extends VectorWritable3DType> |
PMatrixI3x3D.getRow3D(int row,
V out) |
<V extends VectorWritable3DType> |
PMatrixHeapArrayM4x4D.getRow3D(int row,
V out) |
<V extends VectorWritable3DType> |
PMatrixHeapArrayM3x3D.getRow3D(int row,
V out) |
<V extends VectorWritable3DType> |
PMatrixDirectM4x4D.getRow3D(int row,
V out) |
<V extends VectorWritable3DType> |
PMatrixDirectM3x3D.getRow3D(int row,
V out) |
<V extends VectorWritable3DType> |
PMatrixI4x4D.getRow3DUnsafe(int row,
V out) |
<V extends VectorWritable3DType> |
PMatrixI3x3D.getRow3DUnsafe(int row,
V out) |
<V extends VectorWritable3DType> |
PMatrixHeapArrayM4x4D.getRow3DUnsafe(int row,
V out) |
<V extends VectorWritable3DType> |
PMatrixHeapArrayM3x3D.getRow3DUnsafe(int row,
V out) |
<V extends VectorWritable3DType> |
PMatrixDirectM4x4D.getRow3DUnsafe(int row,
V out) |
<V extends VectorWritable3DType> |
PMatrixDirectM3x3D.getRow3DUnsafe(int row,
V out) |
Copyright © 2015 <code@io7m.com> http://io7m.com