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