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.orthonormalization |
Functions for orthonormalizing sets of vectors.
|
com.io7m.jtensors.storage.api.unparameterized.vectors |
Unparameterized vector storage types.
|
Modifier and Type | Method | 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 | 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 | Description |
---|---|---|
static <A> Vector4D |
PVectors4D.toUnparameterized(PVector4D<A> v) |
Modifier and Type | Method | Description |
---|---|---|
static <A> PVector4D<A> |
PVectors4D.toParameterized(Vector4D v) |
Modifier and Type | Method | 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 | 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 | 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.interpolateBilinear(Vector4D x0y0,
Vector4D x1y0,
Vector4D x0y1,
Vector4D x1y1,
double px,
double py) |
Bilinearly interpolate between
x0y0 , x1y0 , x0y1 , x1y1 . |
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 | 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.distance(Vector4D v0,
Vector4D v1) |
Calculate the distance between
v0 and v1 . |
static double |
Vectors4D.dotProduct(Vector4D v0,
Vector4D v1) |
Calculate the scalar product of the vectors
v0 and v1 . |
static Vector4D |
Vectors4D.interpolateBilinear(Vector4D x0y0,
Vector4D x1y0,
Vector4D x0y1,
Vector4D x1y1,
double px,
double py) |
Bilinearly interpolate between
x0y0 , x1y0 , x0y1 , x1y1 . |
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 | Description |
---|---|---|
Vector4D |
Vector4DGenerator.next() |
Modifier and Type | Method | 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 | Description |
---|---|---|
Vector4D |
Orthonormalized4D.v0() |
|
Vector4D |
Orthonormalized4DType.v0() |
|
Vector4D |
Orthonormalized4D.v1() |
|
Vector4D |
Orthonormalized4DType.v1() |
|
Vector4D |
Orthonormalized4D.v2() |
|
Vector4D |
Orthonormalized4DType.v2() |
Modifier and Type | Method | Description |
---|---|---|
static Orthonormalized4D |
Orthonormalized4D.of(Vector4D v0,
Vector4D v1,
Vector4D v2) |
Construct a new immutable
Orthonormalized4D instance. |
static Orthonormalized4D |
Orthonormalization.orthonormalize4D(Vector4D v0,
Vector4D v1,
Vector4D v2) |
Orthonormalize the given vectors.
|
Orthonormalized4D.Builder |
Orthonormalized4D.Builder.setV0(Vector4D v0) |
Initializes the value for the
v0 attribute. |
Orthonormalized4D.Builder |
Orthonormalized4D.Builder.setV1(Vector4D v1) |
Initializes the value for the
v1 attribute. |
Orthonormalized4D.Builder |
Orthonormalized4D.Builder.setV2(Vector4D v2) |
Initializes the value for the
v2 attribute. |
Modifier and Type | Method | Description |
---|---|---|
default void |
VectorStorageFloating4Type.setVector4D(Vector4D v) |
Set the components from the given vector.
|
Copyright © 2017 <code@io7m.com> http://io7m.com