| Package | Description |
|---|---|
| com.io7m.jtensors.core.parameterized.matrices |
Parameterized matrix types.
|
| com.io7m.jtensors.core.parameterized.vectors |
Parameterized vector 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> Vector3D |
PMatrices3x3D.column0(PMatrix3x3D<A,B> m) |
static <A,B> Vector3D |
PMatrices3x3D.column1(PMatrix3x3D<A,B> m) |
static <A,B> Vector3D |
PMatrices3x3D.column2(PMatrix3x3D<A,B> m) |
static Vector3D |
PMatrices3x3D.multiplyVectorPost(PMatrix3x3D m,
Vector3D v)
Multiply the vector
v by the matrix m. |
static <A,B> Vector3D |
PMatrices3x3D.row0(PMatrix3x3D<A,B> m) |
static <A,B> Vector3D |
PMatrices3x3D.row1(PMatrix3x3D<A,B> m) |
static <A,B> Vector3D |
PMatrices3x3D.row2(PMatrix3x3D<A,B> m) |
| Modifier and Type | Method and Description |
|---|---|
static Vector3D |
PMatrices3x3D.multiplyVectorPost(PMatrix3x3D m,
Vector3D v)
Multiply the vector
v by the matrix m. |
static <A,B> PMatrix3x3D<A,B> |
PMatrices3x3D.ofColumns(Vector3D c0,
Vector3D c1,
Vector3D c2)
Construct a matrix from the column vectors
(c0, c1, c2). |
static <A,B> PMatrix3x3D<A,B> |
PMatrices3x3D.ofRows(Vector3D r0,
Vector3D r1,
Vector3D r2)
Construct a matrix from the row vectors
(r0, r1, r2). |
| Modifier and Type | Method and Description |
|---|---|
static <A> Vector3D |
PVectors3D.toUnparameterized(PVector3D<A> v) |
| Modifier and Type | Method and Description |
|---|---|
static <A> PVector3D<A> |
PVectors3D.toParameterized(Vector3D v) |
| Modifier and Type | Method and Description |
|---|---|
static Vector3D |
Matrices3x3D.column0(Matrix3x3D m) |
static Vector3D |
Matrices3x3D.column1(Matrix3x3D m) |
static Vector3D |
Matrices3x3D.column2(Matrix3x3D m) |
static Vector3D |
Matrices3x3D.multiplyVectorPost(Matrix3x3D m,
Vector3D v)
Multiply the vector
v by the matrix m. |
static Vector3D |
Matrices3x3D.row0(Matrix3x3D m) |
static Vector3D |
Matrices3x3D.row1(Matrix3x3D m) |
static Vector3D |
Matrices3x3D.row2(Matrix3x3D m) |
| Modifier and Type | Method and Description |
|---|---|
static Vector3D |
Matrices3x3D.multiplyVectorPost(Matrix3x3D m,
Vector3D v)
Multiply the vector
v by the matrix m. |
static Matrix3x3D |
Matrices3x3D.ofColumns(Vector3D c0,
Vector3D c1,
Vector3D c2)
Construct a matrix from the column vectors
(c0, c1, c2). |
static Matrix3x3D |
Matrices3x3D.ofRows(Vector3D r0,
Vector3D r1,
Vector3D r2)
Construct a matrix from the row vectors
(r0, r1, r2). |
| Modifier and Type | Method and Description |
|---|---|
static Vector3D |
Vectors3D.absolute(Vector3D v0)
Calculate the absolute of
v0. |
static Vector3D |
Vectors3D.add(Vector3D v0,
Vector3D v1)
Add
v0 to v1. |
static Vector3D |
Vectors3D.addScaled(Vector3D v0,
Vector3D v1,
double r)
Add
v0 to v1 * r. |
Vector3D |
Vector3D.Builder.build()
Builds a new
Vector3D. |
static Vector3D |
Vectors3D.clamp(Vector3D v,
Vector3D v_min,
Vector3D v_max)
Clamp the values in
v by v_min and v_max. |
static Vector3D |
Vectors3D.crossProduct(Vector3D v0,
Vector3D v1)
Calculate the cross product of the vectors
v0 and v1. |
static Vector3D |
Vectors3D.interpolateLinear(Vector3D v0,
Vector3D v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static Vector3D |
Vectors3D.negate(Vector3D v)
Calculate the negation of
v. |
static Vector3D |
Vectors3D.normalize(Vector3D v0)
Normalize the vector
v0. |
static Vector3D |
Vector3D.of(double x,
double y,
double z)
Construct a new immutable
Vector3D instance. |
static Vector3D |
Vectors3D.scale(Vector3D v0,
double r)
Scale
v0 by r. |
static Vector3D |
Vectors3D.subtract(Vector3D v0,
Vector3D v1)
Subtract
v1 from v0. |
static Vector3D |
Vectors3D.zero()
The zero vector.
|
| Modifier and Type | Method and Description |
|---|---|
static Vector3D |
Vectors3D.absolute(Vector3D v0)
Calculate the absolute of
v0. |
static Vector3D |
Vectors3D.add(Vector3D v0,
Vector3D v1)
Add
v0 to v1. |
static Vector3D |
Vectors3D.addScaled(Vector3D v0,
Vector3D v1,
double r)
Add
v0 to v1 * r. |
static Vector3D |
Vectors3D.clamp(Vector3D v,
Vector3D v_min,
Vector3D v_max)
Clamp the values in
v by v_min and v_max. |
static Vector3D |
Vectors3D.crossProduct(Vector3D v0,
Vector3D v1)
Calculate the cross product of the vectors
v0 and v1. |
static double |
Vectors3D.dotProduct(Vector3D v0,
Vector3D v1)
Calculate the scalar product of the vectors
v0 and v1. |
static Vector3D |
Vectors3D.interpolateLinear(Vector3D v0,
Vector3D v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static double |
Vectors3D.magnitude(Vector3D v0)
Calculate the magnitude of the vector
v0. |
static double |
Vectors3D.magnitudeSquared(Vector3D v0)
Calculate the squared magnitude of the vector
v0. |
static Vector3D |
Vectors3D.negate(Vector3D v)
Calculate the negation of
v. |
static Vector3D |
Vectors3D.normalize(Vector3D v0)
Normalize the vector
v0. |
static Vector3D |
Vectors3D.scale(Vector3D v0,
double r)
Scale
v0 by r. |
static Vector3D |
Vectors3D.subtract(Vector3D v0,
Vector3D v1)
Subtract
v1 from v0. |
| Modifier and Type | Method and Description |
|---|---|
Vector3D |
Vector3DGenerator.next() |
| Modifier and Type | Method and Description |
|---|---|
static net.java.quickcheck.Generator<Vector3D> |
Vector3DGenerator.create()
Create a generator initialized with a default component generator.
|
static net.java.quickcheck.Generator<Vector3D> |
Vector3DGenerator.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<Vector3D> |
Vector3DGenerator.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 |
VectorStorageFloating3Type.setVector3D(Vector3D v)
Set the components from the given vector.
|
Copyright © 2017 <code@io7m.com> http://io7m.com