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