| Package | Description |
|---|---|
| com.io7m.jtensors.core.parameterized.matrices |
Parameterized matrix types.
|
| com.io7m.jtensors.core.parameterized.vectors |
Parameterized vector types.
|
| com.io7m.jtensors.generators |
QuickCheck generators.
|
| com.io7m.jtensors.orthonormalization |
Functions for orthonormalizing sets of vectors.
|
| com.io7m.jtensors.storage.api.parameterized.vectors |
Parameterized vector storage types.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <A,B> PVector4D<B> |
PMatrices4x4D.multiplyVectorPost(PMatrix4x4D<A,B> m,
PVector4D<A> v) |
Multiply the vector
v by the matrix m. |
| Modifier and Type | Method | Description |
|---|---|---|
static <A,B> PVector4D<B> |
PMatrices4x4D.multiplyVectorPost(PMatrix4x4D<A,B> m,
PVector4D<A> v) |
Multiply the vector
v by the matrix m. |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> PVector4D<T> |
PVectors4D.absolute(PVector4D<T> v0) |
Calculate the absolute of
v0. |
static <T> PVector4D<T> |
PVectors4D.add(PVector4D<T> v0,
PVector4D<T> v1) |
Add
v0 to v1. |
static <T> PVector4D<T> |
PVectors4D.addScaled(PVector4D<T> v0,
PVector4D<T> v1,
double r) |
Add
v0 to v1 * r. |
PVector4D<T> |
PVector4D.Builder.build() |
Builds a new
PVector4D. |
static <T> PVector4D<T> |
PVectors4D.clamp(PVector4D<T> v,
PVector4D<T> v_min,
PVector4D<T> v_max) |
Clamp the values in
v by v_min and v_max. |
static <T> PVector4D<T> |
PVectors4D.interpolateBilinear(PVector4D<T> x0y0,
PVector4D<T> x1y0,
PVector4D<T> x0y1,
PVector4D<T> x1y1,
double px,
double py) |
Bilinearly interpolate between
x0y0, x1y0, x0y1, x1y1. |
static <T> PVector4D<T> |
PVectors4D.interpolateLinear(PVector4D<T> v0,
PVector4D<T> v1,
double alpha) |
Linearly interpolate between
v0 and v1 by the amount alpha. |
static <T> PVector4D<T> |
PVectors4D.negate(PVector4D<T> v) |
Calculate the negation of
v. |
static <T> PVector4D<T> |
PVectors4D.normalize(PVector4D<T> v0) |
Normalize the vector
v0. |
static <T> PVector4D<T> |
PVector4D.of(double x,
double y,
double z,
double w) |
Construct a new immutable
PVector4D instance. |
static <T> PVector4D<T> |
PVectors4D.scale(PVector4D<T> v0,
double r) |
Scale
v0 by r. |
static <T> PVector4D<T> |
PVectors4D.subtract(PVector4D<T> v0,
PVector4D<T> v1) |
Subtract
v1 from v0. |
static <A> PVector4D<A> |
PVectors4D.toParameterized(Vector4D v) |
|
static <T> PVector4D<T> |
PVectors4D.zero() |
The zero vector.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <T> PVector4D<T> |
PVectors4D.absolute(PVector4D<T> v0) |
Calculate the absolute of
v0. |
static <T> PVector4D<T> |
PVectors4D.add(PVector4D<T> v0,
PVector4D<T> v1) |
Add
v0 to v1. |
static <T> PVector4D<T> |
PVectors4D.addScaled(PVector4D<T> v0,
PVector4D<T> v1,
double r) |
Add
v0 to v1 * r. |
static <T> PVector4D<T> |
PVectors4D.clamp(PVector4D<T> v,
PVector4D<T> v_min,
PVector4D<T> v_max) |
Clamp the values in
v by v_min and v_max. |
static <T> double |
PVectors4D.distance(PVector4D<T> v0,
PVector4D<T> v1) |
Calculate the distance between
v0 and v1. |
static <T> double |
PVectors4D.dotProduct(PVector4D<T> v0,
PVector4D<T> v1) |
Calculate the scalar product of the vectors
v0 and v1. |
static <T> PVector4D<T> |
PVectors4D.interpolateBilinear(PVector4D<T> x0y0,
PVector4D<T> x1y0,
PVector4D<T> x0y1,
PVector4D<T> x1y1,
double px,
double py) |
Bilinearly interpolate between
x0y0, x1y0, x0y1, x1y1. |
static <T> PVector4D<T> |
PVectors4D.interpolateLinear(PVector4D<T> v0,
PVector4D<T> v1,
double alpha) |
Linearly interpolate between
v0 and v1 by the amount alpha. |
static <T> double |
PVectors4D.magnitude(PVector4D<T> v0) |
Calculate the magnitude of the vector
v0. |
static <T> double |
PVectors4D.magnitudeSquared(PVector4D<T> v0) |
Calculate the squared magnitude of the vector
v0. |
static <T> PVector4D<T> |
PVectors4D.negate(PVector4D<T> v) |
Calculate the negation of
v. |
static <T> PVector4D<T> |
PVectors4D.normalize(PVector4D<T> v0) |
Normalize the vector
v0. |
static <T> PVector4D<T> |
PVectors4D.scale(PVector4D<T> v0,
double r) |
Scale
v0 by r. |
static <T> PVector4D<T> |
PVectors4D.subtract(PVector4D<T> v0,
PVector4D<T> v1) |
Subtract
v1 from v0. |
static <A> Vector4D |
PVectors4D.toUnparameterized(PVector4D<A> v) |
| Modifier and Type | Method | Description |
|---|---|---|
PVector4D<T> |
PVector4DGenerator.next() |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> net.java.quickcheck.Generator<PVector4D<T>> |
PVector4DGenerator.create() |
Create a generator initialized with a default component generator.
|
static <T> net.java.quickcheck.Generator<PVector4D<T>> |
PVector4DGenerator.createNormal() |
Create a generator initialized with a default component generator that
produces values in the range
[-1.0, 1.0]. |
static <T> net.java.quickcheck.Generator<PVector4D<T>> |
PVector4DGenerator.createSmall() |
Create a generator initialized with a default component generator that
produces values in the range
[-(2 ^ 16), 2 ^ 16]. |
| Modifier and Type | Method | Description |
|---|---|---|
PVector4D<T> |
POrthonormalized4D.v0() |
|
PVector4D<T> |
POrthonormalized4DType.v0() |
|
PVector4D<T> |
POrthonormalized4D.v1() |
|
PVector4D<T> |
POrthonormalized4DType.v1() |
|
PVector4D<T> |
POrthonormalized4D.v2() |
|
PVector4D<T> |
POrthonormalized4DType.v2() |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> POrthonormalized4D<T> |
POrthonormalized4D.of(PVector4D<T> v0,
PVector4D<T> v1,
PVector4D<T> v2) |
Construct a new immutable
POrthonormalized4D instance. |
static <T> POrthonormalized4D<T> |
POrthonormalization.orthonormalize4D(PVector4D<T> v0,
PVector4D<T> v1,
PVector4D<T> v2) |
Orthonormalize the given vectors.
|
POrthonormalized4D.Builder<T> |
POrthonormalized4D.Builder.setV0(PVector4D<T> v0) |
Initializes the value for the
v0 attribute. |
POrthonormalized4D.Builder<T> |
POrthonormalized4D.Builder.setV1(PVector4D<T> v1) |
Initializes the value for the
v1 attribute. |
POrthonormalized4D.Builder<T> |
POrthonormalized4D.Builder.setV2(PVector4D<T> v2) |
Initializes the value for the
v2 attribute. |
| Modifier and Type | Method | Description |
|---|---|---|
default void |
PVectorStorageFloating4Type.setPVector4D(PVector4D<T> v) |
Set the components from the given vector.
|
Copyright © 2017 <code@io7m.com> http://io7m.com