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