| Package | Description |
|---|---|
| com.io7m.jtensors.core.parameterized.matrices |
Parameterized matrix types.
|
| com.io7m.jtensors.core.unparameterized.matrices |
Unparameterized matrix types.
|
| com.io7m.jtensors.core.unparameterized.vectors |
Unparameterized vector types.
|
| com.io7m.jtensors.generators |
QuickCheck generators.
|
| com.io7m.jtensors.storage.api.unparameterized.vectors |
Unparameterized vector storage types.
|
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Vector4D |
PMatrices4x4D.column0(PMatrix4x4D<A,B> m) |
static <A,B> Vector4D |
PMatrices4x4D.column1(PMatrix4x4D<A,B> m) |
static <A,B> Vector4D |
PMatrices4x4D.column2(PMatrix4x4D<A,B> m) |
static <A,B> Vector4D |
PMatrices4x4D.column3(PMatrix4x4D<A,B> m) |
static Vector4D |
PMatrices4x4D.multiplyVectorPost(PMatrix4x4D m,
Vector4D v)
Multiply the vector
v by the matrix m. |
static <A,B> Vector4D |
PMatrices4x4D.row0(PMatrix4x4D<A,B> m) |
static <A,B> Vector4D |
PMatrices4x4D.row1(PMatrix4x4D<A,B> m) |
static <A,B> Vector4D |
PMatrices4x4D.row2(PMatrix4x4D<A,B> m) |
static <A,B> Vector4D |
PMatrices4x4D.row3(PMatrix4x4D<A,B> m) |
| Modifier and Type | Method and Description |
|---|---|
static Vector4D |
PMatrices4x4D.multiplyVectorPost(PMatrix4x4D m,
Vector4D v)
Multiply the vector
v by the matrix m. |
static <A,B> PMatrix4x4D<A,B> |
PMatrices4x4D.ofColumns(Vector4D c0,
Vector4D c1,
Vector4D c2,
Vector4D c3)
Construct a matrix from the column vectors
(c0, c1, c2, c3). |
static <A,B> PMatrix4x4D<A,B> |
PMatrices4x4D.ofRows(Vector4D r0,
Vector4D r1,
Vector4D r2,
Vector4D r3)
Construct a matrix from the row vectors
(r0, r1, r2, r3). |
| Modifier and Type | Method and Description |
|---|---|
static Vector4D |
Matrices4x4D.column0(Matrix4x4D m) |
static Vector4D |
Matrices4x4D.column1(Matrix4x4D m) |
static Vector4D |
Matrices4x4D.column2(Matrix4x4D m) |
static Vector4D |
Matrices4x4D.column3(Matrix4x4D m) |
static Vector4D |
Matrices4x4D.multiplyVectorPost(Matrix4x4D m,
Vector4D v)
Multiply the vector
v by the matrix m. |
static Vector4D |
Matrices4x4D.row0(Matrix4x4D m) |
static Vector4D |
Matrices4x4D.row1(Matrix4x4D m) |
static Vector4D |
Matrices4x4D.row2(Matrix4x4D m) |
static Vector4D |
Matrices4x4D.row3(Matrix4x4D m) |
| Modifier and Type | Method and Description |
|---|---|
static Vector4D |
Matrices4x4D.multiplyVectorPost(Matrix4x4D m,
Vector4D v)
Multiply the vector
v by the matrix m. |
static Matrix4x4D |
Matrices4x4D.ofColumns(Vector4D c0,
Vector4D c1,
Vector4D c2,
Vector4D c3)
Construct a matrix from the column vectors
(c0, c1, c2, c3). |
static Matrix4x4D |
Matrices4x4D.ofRows(Vector4D r0,
Vector4D r1,
Vector4D r2,
Vector4D r3)
Construct a matrix from the row vectors
(r0, r1, r2, r3). |
| Modifier and Type | Method and Description |
|---|---|
static Vector4D |
Vectors4D.absolute(Vector4D v0)
Calculate the absolute of
v0. |
static Vector4D |
Vectors4D.add(Vector4D v0,
Vector4D v1)
Add
v0 to v1. |
static Vector4D |
Vectors4D.addScaled(Vector4D v0,
Vector4D v1,
double r)
Add
v0 to v1 * r. |
Vector4D |
Vector4D.Builder.build()
Builds a new
Vector4D. |
static Vector4D |
Vectors4D.clamp(Vector4D v,
Vector4D v_min,
Vector4D v_max)
Clamp the values in
v by v_min and v_max. |
static Vector4D |
Vectors4D.interpolateLinear(Vector4D v0,
Vector4D v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static Vector4D |
Vectors4D.negate(Vector4D v)
Calculate the negation of
v. |
static Vector4D |
Vectors4D.normalize(Vector4D v0)
Normalize the vector
v0. |
static Vector4D |
Vector4D.of(double x,
double y,
double z,
double w)
Construct a new immutable
Vector4D instance. |
static Vector4D |
Vectors4D.scale(Vector4D v0,
double r)
Scale
v0 by r. |
static Vector4D |
Vectors4D.subtract(Vector4D v0,
Vector4D v1)
Subtract
v1 from v0. |
static Vector4D |
Vectors4D.zero()
The zero vector.
|
| Modifier and Type | Method and Description |
|---|---|
static Vector4D |
Vectors4D.absolute(Vector4D v0)
Calculate the absolute of
v0. |
static Vector4D |
Vectors4D.add(Vector4D v0,
Vector4D v1)
Add
v0 to v1. |
static Vector4D |
Vectors4D.addScaled(Vector4D v0,
Vector4D v1,
double r)
Add
v0 to v1 * r. |
static Vector4D |
Vectors4D.clamp(Vector4D v,
Vector4D v_min,
Vector4D v_max)
Clamp the values in
v by v_min and v_max. |
static double |
Vectors4D.dotProduct(Vector4D v0,
Vector4D v1)
Calculate the scalar product of the vectors
v0 and v1. |
static Vector4D |
Vectors4D.interpolateLinear(Vector4D v0,
Vector4D v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static double |
Vectors4D.magnitude(Vector4D v0)
Calculate the magnitude of the vector
v0. |
static double |
Vectors4D.magnitudeSquared(Vector4D v0)
Calculate the squared magnitude of the vector
v0. |
static Vector4D |
Vectors4D.negate(Vector4D v)
Calculate the negation of
v. |
static Vector4D |
Vectors4D.normalize(Vector4D v0)
Normalize the vector
v0. |
static Vector4D |
Vectors4D.scale(Vector4D v0,
double r)
Scale
v0 by r. |
static Vector4D |
Vectors4D.subtract(Vector4D v0,
Vector4D v1)
Subtract
v1 from v0. |
| Modifier and Type | Method and Description |
|---|---|
Vector4D |
Vector4DGenerator.next() |
| Modifier and Type | Method and Description |
|---|---|
static net.java.quickcheck.Generator<Vector4D> |
Vector4DGenerator.create()
Create a generator initialized with a default component generator.
|
static net.java.quickcheck.Generator<Vector4D> |
Vector4DGenerator.createNormal()
Create a generator initialized with a default component generator that
produces values in the range
[-1.0, 1.0]. |
static net.java.quickcheck.Generator<Vector4D> |
Vector4DGenerator.createSmall()
Create a generator initialized with a default component generator that
produces values in the range
[-65536.0, 65536.0]. |
| Modifier and Type | Method and Description |
|---|---|
default void |
VectorStorageFloating4Type.setVector4D(Vector4D v)
Set the components from the given vector.
|
Copyright © 2017 <code@io7m.com> http://io7m.com