| Package | Description |
|---|---|
| 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 |
PVectorByteBuffered4FType<T>
The type of
PVector4FType values that are also byte buffered. |
| Modifier and Type | Class and Description |
|---|---|
class |
PVectorByteBufferedM4F<T>
A four-element vector type with
float elements, packed into a
ByteBuffer. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
PVector4FType<T>
The type of four-element vectors that are both readable and writable, and
have
float elements |
| Modifier and Type | Class and Description |
|---|---|
class |
PVectorM4F<T>
A four-dimensional mutable vector type with
float elements. |
| Modifier and Type | Method and Description |
|---|---|
static <T,V extends PVectorWritable4FType<T>> |
PVectorM4F.absolute(PVectorReadable4FType<T> v,
V out)
Calculate the absolute values of the elements in vector
v, saving
the result to out. |
static <T,V extends PVectorWritable4FType<T> & PVectorReadable4FType<T>> |
PVectorM4F.absoluteInPlace(V v)
Calculate the absolute values of the elements in vector
v,
modifying the vector in-place. |
static <T,V extends PVectorWritable4FType<T>> |
PVectorM4F.add(PVectorReadable4FType<T> v0,
PVectorReadable4FType<T> v1,
V out)
Calculate the element-wise sum of the vectors
v0 and v1,
saving the result to out. |
static <T,V extends PVectorWritable4FType<T> & PVectorReadable4FType<T>> |
PVectorM4F.addInPlace(V v0,
PVectorReadable4FType<T> v1)
Calculate the element-wise sum of the vectors
v0 and v1,
saving the result to v0. |
static <T,V extends PVectorWritable4FType<T>> |
PVectorM4F.addScaled(PVectorReadable4FType<T> v0,
PVectorReadable4FType<T> 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 <T,V extends PVectorWritable4FType<T> & PVectorReadable4FType<T>> |
PVectorM4F.addScaledInPlace(V v0,
PVectorReadable4FType<T> 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 <T,V extends PVectorWritable4FType<T>> |
PVectorM4F.clamp(PVectorReadable4FType<T> v,
double minimum,
double maximum,
V out)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <T,V extends PVectorWritable4FType<T>> |
PVectorM4F.clampByPVector(PVectorReadable4FType<T> v,
PVectorReadable4FType<T> minimum,
PVectorReadable4FType<T> 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 <T,V extends PVectorWritable4FType<T> & PVectorReadable4FType<T>> |
PVectorM4F.clampByPVectorInPlace(V v,
PVectorReadable4FType<T> minimum,
PVectorReadable4FType<T> 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 <T,V extends PVectorWritable4FType<T> & PVectorReadable4FType<T>> |
PVectorM4F.clampInPlace(V v,
float minimum,
float maximum)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <T,V extends PVectorWritable4FType<T>> |
PVectorM4F.clampMaximum(PVectorReadable4FType<T> v,
float maximum,
V out)
Clamp the elements of the vector
v to the range {@code [-Infinity
.. |
static <T,V extends PVectorWritable4FType<T>> |
PVectorM4F.clampMaximumByPVector(PVectorReadable4FType<T> v,
PVectorReadable4FType<T> 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 <T,V extends PVectorWritable4FType<T> & PVectorReadable4FType<T>> |
PVectorM4F.clampMaximumByPVectorInPlace(V v,
PVectorReadable4FType<T> 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 <T,V extends PVectorWritable4FType<T> & PVectorReadable4FType<T>> |
PVectorM4F.clampMaximumInPlace(V v,
float maximum)
Clamp the elements of the vector
v to the range {@code [-Infinity
.. |
static <T,V extends PVectorWritable4FType<T>> |
PVectorM4F.clampMinimum(PVectorReadable4FType<T> v,
float minimum,
V out)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <T,V extends PVectorWritable4FType<T>> |
PVectorM4F.clampMinimumByPVector(PVectorReadable4FType<T> v,
PVectorReadable4FType<T> 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 <T,V extends PVectorWritable4FType<T> & PVectorReadable4FType<T>> |
PVectorM4F.clampMinimumByPVectorInPlace(V v,
PVectorReadable4FType<T> 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,V extends PVectorWritable4FType<T> & PVectorReadable4FType<T>> |
PVectorM4F.clampMinimumInPlace(V v,
float minimum)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static <T,U extends PVectorWritable4FType<T>> |
PVectorM4F.copy(PVectorReadable4FType<T> input,
U output)
Copy all elements of the vector
input to the vector output. |
static <T,V extends PVectorWritable4FType<T>> |
PVectorM4F.interpolateLinear(PVectorM4F.ContextPVM4F c,
PVectorReadable4FType<T> v0,
PVectorReadable4FType<T> v1,
double alpha,
V r)
Linearly interpolate between
v0 and v1 by the amount alpha, saving the result to r. |
static <T0,T1,V extends PVectorWritable4FType<T1>> |
PMatrixM4x4F.multiplyVector4F(PMatrixM4x4F.ContextPM4F context,
PMatrixReadable4x4FType<T0,T1> m,
PVectorReadable4FType<T0> v,
V out)
Multiply the matrix
m with the vector v, writing the
resulting vector to out. |
static <T,V extends PVectorWritable4FType<T>> |
PVectorM4F.normalize(PVectorReadable4FType<T> v,
V out)
Returns a vector with the same orientation as
v but with magnitude
equal to 1.0 in out. |
static <T,V extends PVectorWritable4FType<T> & PVectorReadable4FType<T>> |
PVectorM4F.normalizeInPlace(V v)
Returns a vector with the same orientation as
v but with magnitude
equal to 1.0 in v. |
static <T,V extends PVectorWritable4FType<T>> |
PVectorM4F.orthoNormalize(PVectorM4F.ContextPVM4F c,
PVectorReadable4FType<T> v0,
V v0_out,
PVectorReadable4FType<T> v1,
V v1_out)
Orthonormalize and return the vectors
v0 and v1 . |
static <T,V extends PVectorWritable4FType<T> & PVectorReadable4FType<T>> |
PVectorM4F.orthoNormalizeInPlace(PVectorM4F.ContextPVM4F c,
V v0,
V v1)
Orthonormalize and the vectors
v0 and v1. |
static <T,V extends PVectorWritable4FType<T>> |
PVectorM4F.projection(PVectorReadable4FType<T> p,
PVectorReadable4FType<T> q,
V r)
Calculate the projection of the vector
p onto the vector q,
saving the result in r. |
static <T,V extends PVectorWritable4FType<T>> |
PVectorM4F.scale(PVectorReadable4FType<T> v,
double r,
V out)
Scale the vector
v by the scalar r, saving the result to
out. |
static <T,V extends PVectorWritable4FType<T> & PVectorReadable4FType<T>> |
PVectorM4F.scaleInPlace(V v,
double r)
Scale the vector
v by the scalar r, saving the result to
v. |
static <T,V extends PVectorWritable4FType<T>> |
PVectorM4F.subtract(PVectorReadable4FType<T> v0,
PVectorReadable4FType<T> v1,
V out)
Subtract the vector
v1 from the vector v0, saving the
result to out. |
static <T,V extends PVectorWritable4FType<T> & PVectorReadable4FType<T>> |
PVectorM4F.subtractInPlace(V v0,
PVectorReadable4FType<T> v1)
Subtract the vector
v1 from the vector v0, saving the
result to v0. |
Copyright © 2017 <code@io7m.com> http://io7m.com