| Package | Description |
|---|---|
| com.io7m.jtensors.core.parameterized.vectors |
Parameterized vector 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> Vector4I |
PVectors4I.toUnparameterized(PVector4I<A> v) |
| Modifier and Type | Method and Description |
|---|---|
static <A> PVector4I<A> |
PVectors4I.toParameterized(Vector4I v) |
| Modifier and Type | Method and Description |
|---|---|
static Vector4I |
Vectors4I.absolute(Vector4I v0)
Calculate the absolute of
v0. |
static Vector4I |
Vectors4I.add(Vector4I v0,
Vector4I v1)
Add
v0 to v1. |
static Vector4I |
Vectors4I.addScaled(Vector4I v0,
Vector4I v1,
double r)
Add
v0 to v1 * r. |
Vector4I |
Vector4I.Builder.build()
Builds a new
Vector4I. |
static Vector4I |
Vectors4I.clamp(Vector4I v,
Vector4I v_min,
Vector4I v_max)
Clamp the values in
v by v_min and v_max. |
static Vector4I |
Vectors4I.interpolateBilinear(Vector4I x0y0,
Vector4I x1y0,
Vector4I x0y1,
Vector4I x1y1,
double px,
double py)
Bilinearly interpolate between
x0y0, x1y0, x0y1, x1y1. |
static Vector4I |
Vectors4I.interpolateLinear(Vector4I v0,
Vector4I v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static Vector4I |
Vectors4I.negate(Vector4I v)
Calculate the negation of
v. |
static Vector4I |
Vector4I.of(int x,
int y,
int z,
int w)
Construct a new immutable
Vector4I instance. |
static Vector4I |
Vectors4I.scale(Vector4I v0,
double r)
Scale
v0 by r. |
static Vector4I |
Vectors4I.subtract(Vector4I v0,
Vector4I v1)
Subtract
v1 from v0. |
static Vector4I |
Vectors4I.zero()
The zero vector.
|
| Modifier and Type | Method and Description |
|---|---|
static Vector4I |
Vectors4I.absolute(Vector4I v0)
Calculate the absolute of
v0. |
static Vector4I |
Vectors4I.add(Vector4I v0,
Vector4I v1)
Add
v0 to v1. |
static Vector4I |
Vectors4I.addScaled(Vector4I v0,
Vector4I v1,
double r)
Add
v0 to v1 * r. |
static Vector4I |
Vectors4I.clamp(Vector4I v,
Vector4I v_min,
Vector4I v_max)
Clamp the values in
v by v_min and v_max. |
static long |
Vectors4I.distance(Vector4I v0,
Vector4I v1)
Calculate the distance between
v0 and v1. |
static long |
Vectors4I.dotProduct(Vector4I v0,
Vector4I v1)
Calculate the scalar product of the vectors
v0 and v1. |
static Vector4I |
Vectors4I.interpolateBilinear(Vector4I x0y0,
Vector4I x1y0,
Vector4I x0y1,
Vector4I x1y1,
double px,
double py)
Bilinearly interpolate between
x0y0, x1y0, x0y1, x1y1. |
static Vector4I |
Vectors4I.interpolateLinear(Vector4I v0,
Vector4I v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static double |
Vectors4I.magnitude(Vector4I v0)
Calculate the magnitude of the vector
v0. |
static long |
Vectors4I.magnitudeSquared(Vector4I v0)
Calculate the squared magnitude of the vector
v0. |
static Vector4I |
Vectors4I.negate(Vector4I v)
Calculate the negation of
v. |
static Vector4I |
Vectors4I.scale(Vector4I v0,
double r)
Scale
v0 by r. |
static Vector4I |
Vectors4I.subtract(Vector4I v0,
Vector4I v1)
Subtract
v1 from v0. |
| Modifier and Type | Method and Description |
|---|---|
Vector4I |
Vector4IGenerator.next() |
| Modifier and Type | Method and Description |
|---|---|
static net.java.quickcheck.Generator<Vector4I> |
Vector4IGenerator.create()
Create a generator initialized with a default component generator.
|
static net.java.quickcheck.Generator<Vector4I> |
Vector4IGenerator.create16()
Create a generator initialized with a default component generator that
produces values in the range
[-32768, 32767]. |
static net.java.quickcheck.Generator<Vector4I> |
Vector4IGenerator.create32()
Create a generator initialized with a default component generator that
produces values in the range
[-2147483648, 2147483647]. |
static net.java.quickcheck.Generator<Vector4I> |
Vector4IGenerator.create8()
Create a generator initialized with a default component generator that
produces values in the range
[-128, 127]. |
static net.java.quickcheck.Generator<Vector4I> |
Vector4IGenerator.createSmall()
Create a generator initialized with a default component generator that
produces values in the range
[-128, 128]. |
| Modifier and Type | Method and Description |
|---|---|
default void |
VectorStorageIntegral4Type.setVector4I(Vector4I v)
Set the components from the given vector.
|
Copyright © 2017 <code@io7m.com> http://io7m.com