| 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 |
Quaternion4FType
The type of mutable quaternions with
float elements. |
interface |
QuaternionWritable4FType
'Write' interface to four-dimensional quaternions with
float
elements. |
interface |
Vector3FType
The type of three-element vectors that are both readable and writable, and
have
float elements |
interface |
Vector4FType
The type of four-element vectors that are both readable and writable, and
have
float elements |
interface |
VectorWritable4FType
'Write' interface to four-dimensional vectors with
float
elements. |
| Modifier and Type | Class and Description |
|---|---|
class |
QuaternionM4F
A four-dimensional mutable quaternion type with
float elements. |
class |
VectorM3F
A three-dimensional mutable vector type with
float elements. |
class |
VectorM4F
A four-dimensional mutable vector type with
float elements. |
| Modifier and Type | Method and Description |
|---|---|
static <V extends VectorWritable3FType> |
VectorM3F.absolute(VectorReadable3FType v,
V out)
Calculate the absolute values of the elements in vector
v, saving
the result to out. |
static <V extends VectorWritable3FType & VectorReadable3FType> |
VectorM3F.absoluteInPlace(V v)
Calculate the absolute values of the elements in vector
v,
modifying the vector in-place. |
static <V extends VectorWritable3FType> |
VectorM3F.add(VectorReadable3FType v0,
VectorReadable3FType v1,
V out)
Calculate the element-wise sum of the vectors
v0 and v1,
saving the result to out. |
static <V extends VectorWritable3FType & VectorReadable3FType> |
VectorM3F.addInPlace(V v0,
VectorReadable3FType v1)
Calculate the element-wise sum of the vectors
v0 and v1,
saving the result to v0. |
static <V extends VectorWritable3FType> |
VectorM3F.addScaled(VectorReadable3FType v0,
VectorReadable3FType 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 VectorWritable3FType & VectorReadable3FType> |
VectorM3F.addScaledInPlace(V v0,
VectorReadable3FType 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 VectorWritable3FType> |
VectorM3F.clamp(VectorReadable3FType v,
float minimum,
float maximum,
V out)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <V extends VectorWritable3FType> |
VectorM3F.clampByVector(VectorReadable3FType v,
VectorReadable3FType minimum,
VectorReadable3FType 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 VectorWritable3FType & VectorReadable3FType> |
VectorM3F.clampByVectorInPlace(V v,
VectorReadable3FType minimum,
VectorReadable3FType 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 VectorWritable3FType & VectorReadable3FType> |
VectorM3F.clampInPlace(V v,
float minimum,
float maximum)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <V extends VectorWritable3FType> |
VectorM3F.clampMaximum(VectorReadable3FType v,
float maximum,
V out)
Clamp the elements of the vector
v to the range {@code [-Infinity
.. |
static <V extends VectorWritable3FType> |
VectorM3F.clampMaximumByVector(VectorReadable3FType v,
VectorReadable3FType 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 VectorWritable3FType & VectorReadable3FType> |
VectorM3F.clampMaximumByVectorInPlace(V v,
VectorReadable3FType 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 VectorWritable3FType & VectorReadable3FType> |
VectorM3F.clampMaximumInPlace(V v,
float maximum)
Clamp the elements of the vector
v to the range {@code [-Infinity
.. |
static <V extends VectorWritable3FType> |
VectorM3F.clampMinimum(VectorReadable3FType v,
float minimum,
V out)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <V extends VectorWritable3FType> |
VectorM3F.clampMinimumByVector(VectorReadable3FType v,
VectorReadable3FType 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 VectorWritable3FType & VectorReadable3FType> |
VectorM3F.clampMinimumByVectorInPlace(V v,
VectorReadable3FType 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 VectorWritable3FType & VectorReadable3FType> |
VectorM3F.clampMinimumInPlace(V v,
float minimum)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <V extends VectorWritable3FType> |
VectorM3F.copy(VectorReadable3FType input,
V output)
Copy all elements of the vector
input to the vector output. |
static <V extends VectorWritable3FType> |
VectorM3F.crossProduct(VectorReadable3FType v0,
VectorReadable3FType v1,
V out)
Return a vector perpendicular to both
v0 and v1 , saving
the result in out. |
<V extends VectorWritable3FType> |
MatrixReadable3x3FType.getRow3F(int row,
V out)
Retrieve row
row, saving the result to out. |
<V extends VectorWritable3FType> |
MatrixI4x4F.getRow3F(int row,
V out) |
<V extends VectorWritable3FType> |
MatrixI3x3F.getRow3F(int row,
V out) |
<V extends VectorWritable3FType> |
MatrixHeapArrayM4x4F.getRow3F(int row,
V out) |
<V extends VectorWritable3FType> |
MatrixHeapArrayM3x3F.getRow3F(int row,
V out) |
<V extends VectorWritable3FType> |
MatrixDirectM4x4F.getRow3F(int row,
V out) |
<V extends VectorWritable3FType> |
MatrixDirectM3x3F.getRow3F(int row,
V out) |
<V extends VectorWritable3FType> |
MatrixReadable3x3FType.getRow3FUnsafe(int row,
V out)
Retrieve row
row, saving the result to out. |
<V extends VectorWritable3FType> |
MatrixI4x4F.getRow3FUnsafe(int row,
V out) |
<V extends VectorWritable3FType> |
MatrixI3x3F.getRow3FUnsafe(int row,
V out) |
<V extends VectorWritable3FType> |
MatrixHeapArrayM4x4F.getRow3FUnsafe(int row,
V out) |
<V extends VectorWritable3FType> |
MatrixHeapArrayM3x3F.getRow3FUnsafe(int row,
V out) |
<V extends VectorWritable3FType> |
MatrixDirectM4x4F.getRow3FUnsafe(int row,
V out) |
<V extends VectorWritable3FType> |
MatrixDirectM3x3F.getRow3FUnsafe(int row,
V out) |
static <V extends VectorWritable3FType> |
VectorM3F.interpolateLinear(VectorM3F.ContextVM3F c,
VectorReadable3FType v0,
VectorReadable3FType v1,
double alpha,
V r)
Linearly interpolate between
v0 and v1 by the amount alpha, saving the result to r. |
static <V extends VectorWritable3FType,M extends MatrixWritable3x3FType> |
MatrixM3x3F.lookAt(MatrixM3x3F.ContextMM3F context,
VectorReadable3FType origin,
VectorReadable3FType target,
VectorReadable3FType 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 VectorWritable3FType> |
MatrixM3x3F.multiplyVector3F(MatrixM3x3F.ContextMM3F c,
MatrixReadable3x3FType m,
VectorReadable3FType v,
V out)
Multiply the matrix
m with the vector v, writing the
resulting vector to out. |
static <V extends VectorWritable3FType> |
VectorM3F.normalize(VectorReadable3FType v,
V out)
Returns a vector with the same orientation as
v but with magnitude
equal to 1.0 in out. |
static <V extends VectorWritable3FType & VectorReadable3FType> |
VectorM3F.normalizeInPlace(V v)
Returns a vector with the same orientation as
v but with magnitude
equal to 1.0 in v. |
static <V extends VectorReadable3FType,U extends VectorWritable3FType> |
VectorM3F.orthoNormalize(VectorM3F.ContextVM3F c,
VectorReadable3FType v0,
U v0_out,
VectorReadable3FType v1,
U v1_out)
Orthonormalize and return the vectors
v0 and v1 . |
static <V extends VectorWritable3FType & VectorReadable3FType,W extends VectorWritable3FType & VectorReadable3FType> |
VectorM3F.orthoNormalizeInPlace(VectorM3F.ContextVM3F c,
V v0,
W v1)
Orthonormalize and the vectors
v0 and v1. |
static <V extends VectorWritable3FType & VectorReadable3FType,W extends VectorWritable3FType & VectorReadable3FType> |
VectorM3F.orthoNormalizeInPlace(VectorM3F.ContextVM3F c,
V v0,
W v1)
Orthonormalize and the vectors
v0 and v1. |
static <V extends VectorWritable3FType> |
VectorM3F.projection(VectorReadable3FType p,
VectorReadable3FType q,
V r)
Calculate the projection of the vector
p onto the vector q,
saving the result in r. |
static <V extends VectorWritable3FType> |
VectorM3F.scale(VectorReadable3FType v,
double r,
V out)
Scale the vector
v by the scalar r, saving the result to
out. |
static <V extends VectorWritable3FType & VectorReadable3FType> |
VectorM3F.scaleInPlace(V v,
double r)
Scale the vector
v by the scalar r, saving the result to
v. |
static <V extends VectorWritable3FType> |
VectorM3F.subtract(VectorReadable3FType v0,
VectorReadable3FType v1,
V out)
Subtract the vector
v1 from the vector v0, saving the
result to out. |
static <V extends VectorWritable3FType & VectorReadable3FType> |
VectorM3F.subtractInPlace(V v0,
VectorReadable3FType v1)
Subtract the vector
v1 from the vector v0, saving the
result to v0. |
static <V extends VectorWritable3FType> |
QuaternionM4F.toAxisAngle(QuaternionReadable4FType q,
V out)
Determine the axis-angle representation of the given quaternion.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
QuaternionByteBuffered4FType
The type of
Quaternion4FType values that are also byte buffered. |
interface |
VectorByteBuffered3FType
The type of
Vector3FType values that are also byte buffered. |
interface |
VectorByteBuffered4FType
The type of
Vector4FType values that are also byte buffered. |
| Modifier and Type | Class and Description |
|---|---|
class |
QuaternionByteBufferedM4F
A quaternion type with
float elements, packed into a ByteBuffer. |
class |
VectorByteBufferedM3F
A four-element vector type with
float elements, packed into a
ByteBuffer. |
class |
VectorByteBufferedM4F
A four-element vector type with
float elements, packed into a
ByteBuffer. |
| Modifier and Type | Method and Description |
|---|---|
<V extends VectorWritable3FType> |
MatrixByteBufferedM4x4F.getRow3F(int row,
V out) |
<V extends VectorWritable3FType> |
MatrixByteBufferedM3x3F.getRow3F(int row,
V out) |
<V extends VectorWritable3FType> |
MatrixByteBufferedM4x4F.getRow3FUnsafe(int row,
V out) |
<V extends VectorWritable3FType> |
MatrixByteBufferedM3x3F.getRow3FUnsafe(int row,
V out) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PVectorByteBuffered3FType<T>
The type of
PVector3FType values that are also byte buffered. |
interface |
PVectorByteBuffered4FType<T>
The type of
PVector4FType values that are also byte buffered. |
| Modifier and Type | Class and Description |
|---|---|
class |
PVectorByteBufferedM3F<T>
A four-element vector type with
float elements, packed into a
ByteBuffer. |
class |
PVectorByteBufferedM4F<T>
A four-element vector type with
float elements, packed into a
ByteBuffer. |
| Modifier and Type | Method and Description |
|---|---|
<V extends VectorWritable3FType> |
PMatrixByteBufferedM4x4F.getRow3F(int row,
V out) |
<V extends VectorWritable3FType> |
PMatrixByteBufferedM3x3F.getRow3F(int row,
V out) |
<V extends VectorWritable3FType> |
PMatrixByteBufferedM4x4F.getRow3FUnsafe(int row,
V out) |
<V extends VectorWritable3FType> |
PMatrixByteBufferedM3x3F.getRow3FUnsafe(int row,
V out) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PVector3FType<T>
The type of three-element vectors that are both readable and writable, and
have
float elements |
interface |
PVector4FType<T>
The type of four-element vectors that are both readable and writable, and
have
float elements |
interface |
PVectorWritable3FType<T>
'Write' interface to three-dimensional vectors with
float
elements. |
interface |
PVectorWritable4FType<T>
'Write' interface to four-dimensional vectors with
float
elements. |
| Modifier and Type | Class and Description |
|---|---|
class |
PVectorM3F<T>
A three-dimensional mutable vector type with
float elements. |
class |
PVectorM4F<T>
A four-dimensional mutable vector type with
float elements. |
| Modifier and Type | Method and Description |
|---|---|
<V extends VectorWritable3FType> |
PMatrixI4x4F.getRow3F(int row,
V out) |
<V extends VectorWritable3FType> |
PMatrixI3x3F.getRow3F(int row,
V out) |
<V extends VectorWritable3FType> |
PMatrixHeapArrayM4x4F.getRow3F(int row,
V out) |
<V extends VectorWritable3FType> |
PMatrixHeapArrayM3x3F.getRow3F(int row,
V out) |
<V extends VectorWritable3FType> |
PMatrixDirectM4x4F.getRow3F(int row,
V out) |
<V extends VectorWritable3FType> |
PMatrixDirectM3x3F.getRow3F(int row,
V out) |
<V extends VectorWritable3FType> |
PMatrixI4x4F.getRow3FUnsafe(int row,
V out) |
<V extends VectorWritable3FType> |
PMatrixI3x3F.getRow3FUnsafe(int row,
V out) |
<V extends VectorWritable3FType> |
PMatrixHeapArrayM4x4F.getRow3FUnsafe(int row,
V out) |
<V extends VectorWritable3FType> |
PMatrixHeapArrayM3x3F.getRow3FUnsafe(int row,
V out) |
<V extends VectorWritable3FType> |
PMatrixDirectM4x4F.getRow3FUnsafe(int row,
V out) |
<V extends VectorWritable3FType> |
PMatrixDirectM3x3F.getRow3FUnsafe(int row,
V out) |
Copyright © 2016 <code@io7m.com> http://io7m.com