| 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 | Description |
|---|---|---|
static <A,B> Vector2F |
PMatrices2x2F.column0(PMatrix2x2F<A,B> m) |
|
static <A,B> Vector2F |
PMatrices2x2F.column1(PMatrix2x2F<A,B> m) |
|
static Vector2F |
PMatrices2x2F.multiplyVectorPost(PMatrix2x2F m,
Vector2F v) |
Multiply the vector
v by the matrix m. |
static <A,B> Vector2F |
PMatrices2x2F.row0(PMatrix2x2F<A,B> m) |
|
static <A,B> Vector2F |
PMatrices2x2F.row1(PMatrix2x2F<A,B> m) |
| Modifier and Type | Method | Description |
|---|---|---|
static Vector2F |
PMatrices2x2F.multiplyVectorPost(PMatrix2x2F m,
Vector2F v) |
Multiply the vector
v by the matrix m. |
static <A,B> PMatrix2x2F<A,B> |
PMatrices2x2F.ofColumns(Vector2F c0,
Vector2F c1) |
Construct a matrix from the column vectors
(c0, c1). |
static <A,B> PMatrix2x2F<A,B> |
PMatrices2x2F.ofRows(Vector2F r0,
Vector2F r1) |
Construct a matrix from the row vectors
(r0, r1). |
| Modifier and Type | Method | Description |
|---|---|---|
static <A> Vector2F |
PVectors2F.toUnparameterized(PVector2F<A> v) |
| Modifier and Type | Method | Description |
|---|---|---|
static <A> PVector2F<A> |
PVectors2F.toParameterized(Vector2F v) |
| Modifier and Type | Method | Description |
|---|---|---|
static Vector2F |
Matrices2x2F.column0(Matrix2x2F m) |
|
static Vector2F |
Matrices2x2F.column1(Matrix2x2F m) |
|
static Vector2F |
Matrices2x2F.multiplyVectorPost(Matrix2x2F m,
Vector2F v) |
Multiply the vector
v by the matrix m. |
static Vector2F |
Matrices2x2F.row0(Matrix2x2F m) |
|
static Vector2F |
Matrices2x2F.row1(Matrix2x2F m) |
| Modifier and Type | Method | Description |
|---|---|---|
static Vector2F |
Matrices2x2F.multiplyVectorPost(Matrix2x2F m,
Vector2F v) |
Multiply the vector
v by the matrix m. |
static Matrix2x2F |
Matrices2x2F.ofColumns(Vector2F c0,
Vector2F c1) |
Construct a matrix from the column vectors
(c0, c1). |
static Matrix2x2F |
Matrices2x2F.ofRows(Vector2F r0,
Vector2F r1) |
Construct a matrix from the row vectors
(r0, r1). |
| Modifier and Type | Method | Description |
|---|---|---|
static Vector2F |
Vectors2F.absolute(Vector2F v0) |
Calculate the absolute of
v0. |
static Vector2F |
Vectors2F.add(Vector2F v0,
Vector2F v1) |
Add
v0 to v1. |
static Vector2F |
Vectors2F.addScaled(Vector2F v0,
Vector2F v1,
double r) |
Add
v0 to v1 * r. |
Vector2F |
Vector2F.Builder.build() |
Builds a new
Vector2F. |
static Vector2F |
Vectors2F.clamp(Vector2F v,
Vector2F v_min,
Vector2F v_max) |
Clamp the values in
v by v_min and v_max. |
static Vector2F |
Vectors2F.interpolateBilinear(Vector2F x0y0,
Vector2F x1y0,
Vector2F x0y1,
Vector2F x1y1,
double px,
double py) |
Bilinearly interpolate between
x0y0, x1y0, x0y1, x1y1. |
static Vector2F |
Vectors2F.interpolateLinear(Vector2F v0,
Vector2F v1,
double alpha) |
Linearly interpolate between
v0 and v1 by the amount alpha. |
static Vector2F |
Vectors2F.negate(Vector2F v) |
Calculate the negation of
v. |
static Vector2F |
Vectors2F.normalize(Vector2F v0) |
Normalize the vector
v0. |
static Vector2F |
Vector2F.of(float x,
float y) |
Construct a new immutable
Vector2F instance. |
static Vector2F |
Vectors2F.scale(Vector2F v0,
double r) |
Scale
v0 by r. |
static Vector2F |
Vectors2F.subtract(Vector2F v0,
Vector2F v1) |
Subtract
v1 from v0. |
static Vector2F |
Vectors2F.zero() |
The zero vector.
|
| Modifier and Type | Method | Description |
|---|---|---|
static Vector2F |
Vectors2F.absolute(Vector2F v0) |
Calculate the absolute of
v0. |
static Vector2F |
Vectors2F.add(Vector2F v0,
Vector2F v1) |
Add
v0 to v1. |
static Vector2F |
Vectors2F.addScaled(Vector2F v0,
Vector2F v1,
double r) |
Add
v0 to v1 * r. |
static double |
Vectors2F.angle(Vector2F v0,
Vector2F v1) |
Calculate the angle between the vectors
v0 and v1 in
radians. |
static Vector2F |
Vectors2F.clamp(Vector2F v,
Vector2F v_min,
Vector2F v_max) |
Clamp the values in
v by v_min and v_max. |
static double |
Vectors2F.distance(Vector2F v0,
Vector2F v1) |
Calculate the distance between
v0 and v1. |
static double |
Vectors2F.dotProduct(Vector2F v0,
Vector2F v1) |
Calculate the scalar product of the vectors
v0 and v1. |
static Vector2F |
Vectors2F.interpolateBilinear(Vector2F x0y0,
Vector2F x1y0,
Vector2F x0y1,
Vector2F x1y1,
double px,
double py) |
Bilinearly interpolate between
x0y0, x1y0, x0y1, x1y1. |
static Vector2F |
Vectors2F.interpolateLinear(Vector2F v0,
Vector2F v1,
double alpha) |
Linearly interpolate between
v0 and v1 by the amount alpha. |
static double |
Vectors2F.magnitude(Vector2F v0) |
Calculate the magnitude of the vector
v0. |
static double |
Vectors2F.magnitudeSquared(Vector2F v0) |
Calculate the squared magnitude of the vector
v0. |
static Vector2F |
Vectors2F.negate(Vector2F v) |
Calculate the negation of
v. |
static Vector2F |
Vectors2F.normalize(Vector2F v0) |
Normalize the vector
v0. |
static Vector2F |
Vectors2F.scale(Vector2F v0,
double r) |
Scale
v0 by r. |
static Vector2F |
Vectors2F.subtract(Vector2F v0,
Vector2F v1) |
Subtract
v1 from v0. |
| Modifier and Type | Method | Description |
|---|---|---|
Vector2F |
Vector2FGenerator.next() |
| Modifier and Type | Method | Description |
|---|---|---|
static net.java.quickcheck.Generator<Vector2F> |
Vector2FGenerator.create() |
Create a generator initialized with a default component generator.
|
static net.java.quickcheck.Generator<Vector2F> |
Vector2FGenerator.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<Vector2F> |
Vector2FGenerator.createSmall() |
Create a generator initialized with a default component generator that
produces values in the range
[-65536.0, 65536.0]. |
| Modifier and Type | Method | Description |
|---|---|---|
default void |
VectorStorageFloating2Type.setVector2F(Vector2F v) |
Set the components from the given vector.
|
Copyright © 2017 <code@io7m.com> http://io7m.com