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