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