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