| 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> Vector4F |
PMatrices4x4F.column0(PMatrix4x4F<A,B> m) |
static <A,B> Vector4F |
PMatrices4x4F.column1(PMatrix4x4F<A,B> m) |
static <A,B> Vector4F |
PMatrices4x4F.column2(PMatrix4x4F<A,B> m) |
static <A,B> Vector4F |
PMatrices4x4F.column3(PMatrix4x4F<A,B> m) |
static Vector4F |
PMatrices4x4F.multiplyVectorPost(PMatrix4x4F m,
Vector4F v)
Multiply the vector
v by the matrix m. |
static <A,B> Vector4F |
PMatrices4x4F.row0(PMatrix4x4F<A,B> m) |
static <A,B> Vector4F |
PMatrices4x4F.row1(PMatrix4x4F<A,B> m) |
static <A,B> Vector4F |
PMatrices4x4F.row2(PMatrix4x4F<A,B> m) |
static <A,B> Vector4F |
PMatrices4x4F.row3(PMatrix4x4F<A,B> m) |
| Modifier and Type | Method and Description |
|---|---|
static Vector4F |
PMatrices4x4F.multiplyVectorPost(PMatrix4x4F m,
Vector4F v)
Multiply the vector
v by the matrix m. |
static <A,B> PMatrix4x4F<A,B> |
PMatrices4x4F.ofColumns(Vector4F c0,
Vector4F c1,
Vector4F c2,
Vector4F c3)
Construct a matrix from the column vectors
(c0, c1, c2, c3). |
static <A,B> PMatrix4x4F<A,B> |
PMatrices4x4F.ofRows(Vector4F r0,
Vector4F r1,
Vector4F r2,
Vector4F r3)
Construct a matrix from the row vectors
(r0, r1, r2, r3). |
| Modifier and Type | Method and Description |
|---|---|
static Vector4F |
Matrices4x4F.column0(Matrix4x4F m) |
static Vector4F |
Matrices4x4F.column1(Matrix4x4F m) |
static Vector4F |
Matrices4x4F.column2(Matrix4x4F m) |
static Vector4F |
Matrices4x4F.column3(Matrix4x4F m) |
static Vector4F |
Matrices4x4F.multiplyVectorPost(Matrix4x4F m,
Vector4F v)
Multiply the vector
v by the matrix m. |
static Vector4F |
Matrices4x4F.row0(Matrix4x4F m) |
static Vector4F |
Matrices4x4F.row1(Matrix4x4F m) |
static Vector4F |
Matrices4x4F.row2(Matrix4x4F m) |
static Vector4F |
Matrices4x4F.row3(Matrix4x4F m) |
| Modifier and Type | Method and Description |
|---|---|
static Vector4F |
Matrices4x4F.multiplyVectorPost(Matrix4x4F m,
Vector4F v)
Multiply the vector
v by the matrix m. |
static Matrix4x4F |
Matrices4x4F.ofColumns(Vector4F c0,
Vector4F c1,
Vector4F c2,
Vector4F c3)
Construct a matrix from the column vectors
(c0, c1, c2, c3). |
static Matrix4x4F |
Matrices4x4F.ofRows(Vector4F r0,
Vector4F r1,
Vector4F r2,
Vector4F r3)
Construct a matrix from the row vectors
(r0, r1, r2, r3). |
| Modifier and Type | Method and Description |
|---|---|
static Vector4F |
Vectors4F.absolute(Vector4F v0)
Calculate the absolute of
v0. |
static Vector4F |
Vectors4F.add(Vector4F v0,
Vector4F v1)
Add
v0 to v1. |
static Vector4F |
Vectors4F.addScaled(Vector4F v0,
Vector4F v1,
double r)
Add
v0 to v1 * r. |
Vector4F |
Vector4F.Builder.build()
Builds a new
Vector4F. |
static Vector4F |
Vectors4F.clamp(Vector4F v,
Vector4F v_min,
Vector4F v_max)
Clamp the values in
v by v_min and v_max. |
static Vector4F |
Vectors4F.interpolateLinear(Vector4F v0,
Vector4F v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static Vector4F |
Vectors4F.negate(Vector4F v)
Calculate the negation of
v. |
static Vector4F |
Vectors4F.normalize(Vector4F v0)
Normalize the vector
v0. |
static Vector4F |
Vector4F.of(float x,
float y,
float z,
float w)
Construct a new immutable
Vector4F instance. |
static Vector4F |
Vectors4F.scale(Vector4F v0,
double r)
Scale
v0 by r. |
static Vector4F |
Vectors4F.subtract(Vector4F v0,
Vector4F v1)
Subtract
v1 from v0. |
static Vector4F |
Vectors4F.zero()
The zero vector.
|
| Modifier and Type | Method and Description |
|---|---|
static Vector4F |
Vectors4F.absolute(Vector4F v0)
Calculate the absolute of
v0. |
static Vector4F |
Vectors4F.add(Vector4F v0,
Vector4F v1)
Add
v0 to v1. |
static Vector4F |
Vectors4F.addScaled(Vector4F v0,
Vector4F v1,
double r)
Add
v0 to v1 * r. |
static Vector4F |
Vectors4F.clamp(Vector4F v,
Vector4F v_min,
Vector4F v_max)
Clamp the values in
v by v_min and v_max. |
static double |
Vectors4F.dotProduct(Vector4F v0,
Vector4F v1)
Calculate the scalar product of the vectors
v0 and v1. |
static Vector4F |
Vectors4F.interpolateLinear(Vector4F v0,
Vector4F v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static double |
Vectors4F.magnitude(Vector4F v0)
Calculate the magnitude of the vector
v0. |
static double |
Vectors4F.magnitudeSquared(Vector4F v0)
Calculate the squared magnitude of the vector
v0. |
static Vector4F |
Vectors4F.negate(Vector4F v)
Calculate the negation of
v. |
static Vector4F |
Vectors4F.normalize(Vector4F v0)
Normalize the vector
v0. |
static Vector4F |
Vectors4F.scale(Vector4F v0,
double r)
Scale
v0 by r. |
static Vector4F |
Vectors4F.subtract(Vector4F v0,
Vector4F v1)
Subtract
v1 from v0. |
| Modifier and Type | Method and Description |
|---|---|
Vector4F |
Vector4FGenerator.next() |
| Modifier and Type | Method and Description |
|---|---|
static net.java.quickcheck.Generator<Vector4F> |
Vector4FGenerator.create()
Create a generator initialized with a default component generator.
|
static net.java.quickcheck.Generator<Vector4F> |
Vector4FGenerator.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<Vector4F> |
Vector4FGenerator.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.setVector4F(Vector4F v)
Set the components from the given vector.
|
Copyright © 2017 <code@io7m.com> http://io7m.com