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