| 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> Vector2D |
PMatrices2x2D.column0(PMatrix2x2D<A,B> m) |
static <A,B> Vector2D |
PMatrices2x2D.column1(PMatrix2x2D<A,B> m) |
static Vector2D |
PMatrices2x2D.multiplyVectorPost(PMatrix2x2D m,
Vector2D v)
Multiply the vector
v by the matrix m. |
static <A,B> Vector2D |
PMatrices2x2D.row0(PMatrix2x2D<A,B> m) |
static <A,B> Vector2D |
PMatrices2x2D.row1(PMatrix2x2D<A,B> m) |
| Modifier and Type | Method and Description |
|---|---|
static Vector2D |
PMatrices2x2D.multiplyVectorPost(PMatrix2x2D m,
Vector2D v)
Multiply the vector
v by the matrix m. |
static <A,B> PMatrix2x2D<A,B> |
PMatrices2x2D.ofColumns(Vector2D c0,
Vector2D c1)
Construct a matrix from the column vectors
(c0, c1). |
static <A,B> PMatrix2x2D<A,B> |
PMatrices2x2D.ofRows(Vector2D r0,
Vector2D r1)
Construct a matrix from the row vectors
(r0, r1). |
| Modifier and Type | Method and Description |
|---|---|
static <A> Vector2D |
PVectors2D.toUnparameterized(PVector2D<A> v) |
| Modifier and Type | Method and Description |
|---|---|
static <A> PVector2D<A> |
PVectors2D.toParameterized(Vector2D v) |
| Modifier and Type | Method and Description |
|---|---|
static Vector2D |
Matrices2x2D.column0(Matrix2x2D m) |
static Vector2D |
Matrices2x2D.column1(Matrix2x2D m) |
static Vector2D |
Matrices2x2D.multiplyVectorPost(Matrix2x2D m,
Vector2D v)
Multiply the vector
v by the matrix m. |
static Vector2D |
Matrices2x2D.row0(Matrix2x2D m) |
static Vector2D |
Matrices2x2D.row1(Matrix2x2D m) |
| Modifier and Type | Method and Description |
|---|---|
static Vector2D |
Matrices2x2D.multiplyVectorPost(Matrix2x2D m,
Vector2D v)
Multiply the vector
v by the matrix m. |
static Matrix2x2D |
Matrices2x2D.ofColumns(Vector2D c0,
Vector2D c1)
Construct a matrix from the column vectors
(c0, c1). |
static Matrix2x2D |
Matrices2x2D.ofRows(Vector2D r0,
Vector2D r1)
Construct a matrix from the row vectors
(r0, r1). |
| Modifier and Type | Method and Description |
|---|---|
static Vector2D |
Vectors2D.absolute(Vector2D v0)
Calculate the absolute of
v0. |
static Vector2D |
Vectors2D.add(Vector2D v0,
Vector2D v1)
Add
v0 to v1. |
static Vector2D |
Vectors2D.addScaled(Vector2D v0,
Vector2D v1,
double r)
Add
v0 to v1 * r. |
Vector2D |
Vector2D.Builder.build()
Builds a new
Vector2D. |
static Vector2D |
Vectors2D.clamp(Vector2D v,
Vector2D v_min,
Vector2D v_max)
Clamp the values in
v by v_min and v_max. |
static Vector2D |
Vectors2D.interpolateLinear(Vector2D v0,
Vector2D v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static Vector2D |
Vectors2D.negate(Vector2D v)
Calculate the negation of
v. |
static Vector2D |
Vectors2D.normalize(Vector2D v0)
Normalize the vector
v0. |
static Vector2D |
Vector2D.of(double x,
double y)
Construct a new immutable
Vector2D instance. |
static Vector2D |
Vectors2D.scale(Vector2D v0,
double r)
Scale
v0 by r. |
static Vector2D |
Vectors2D.subtract(Vector2D v0,
Vector2D v1)
Subtract
v1 from v0. |
static Vector2D |
Vectors2D.zero()
The zero vector.
|
| Modifier and Type | Method and Description |
|---|---|
static Vector2D |
Vectors2D.absolute(Vector2D v0)
Calculate the absolute of
v0. |
static Vector2D |
Vectors2D.add(Vector2D v0,
Vector2D v1)
Add
v0 to v1. |
static Vector2D |
Vectors2D.addScaled(Vector2D v0,
Vector2D v1,
double r)
Add
v0 to v1 * r. |
static double |
Vectors2D.angle(Vector2D v0,
Vector2D v1)
Calculate the angle between the vectors
v0 and v1 in
radians. |
static Vector2D |
Vectors2D.clamp(Vector2D v,
Vector2D v_min,
Vector2D v_max)
Clamp the values in
v by v_min and v_max. |
static double |
Vectors2D.dotProduct(Vector2D v0,
Vector2D v1)
Calculate the scalar product of the vectors
v0 and v1. |
static Vector2D |
Vectors2D.interpolateLinear(Vector2D v0,
Vector2D v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static double |
Vectors2D.magnitude(Vector2D v0)
Calculate the magnitude of the vector
v0. |
static double |
Vectors2D.magnitudeSquared(Vector2D v0)
Calculate the squared magnitude of the vector
v0. |
static Vector2D |
Vectors2D.negate(Vector2D v)
Calculate the negation of
v. |
static Vector2D |
Vectors2D.normalize(Vector2D v0)
Normalize the vector
v0. |
static Vector2D |
Vectors2D.scale(Vector2D v0,
double r)
Scale
v0 by r. |
static Vector2D |
Vectors2D.subtract(Vector2D v0,
Vector2D v1)
Subtract
v1 from v0. |
| Modifier and Type | Method and Description |
|---|---|
Vector2D |
Vector2DGenerator.next() |
| Modifier and Type | Method and Description |
|---|---|
static net.java.quickcheck.Generator<Vector2D> |
Vector2DGenerator.create()
Create a generator initialized with a default component generator.
|
static net.java.quickcheck.Generator<Vector2D> |
Vector2DGenerator.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<Vector2D> |
Vector2DGenerator.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 |
VectorStorageFloating2Type.setVector2D(Vector2D v)
Set the components from the given vector.
|
Copyright © 2017 <code@io7m.com> http://io7m.com