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