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