| Package | Description |
|---|---|
| com.io7m.jtensors.core.parameterized.matrices |
Parameterized matrix types.
|
| 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 <A,B> PVector2D<B> |
PMatrices2x2D.multiplyVectorPost(PMatrix2x2D<A,B> m,
PVector2D<A> v)
Multiply the vector
v by the matrix m. |
| Modifier and Type | Method and Description |
|---|---|
static <A,B> PVector2D<B> |
PMatrices2x2D.multiplyVectorPost(PMatrix2x2D<A,B> m,
PVector2D<A> v)
Multiply the vector
v by the matrix m. |
| Modifier and Type | Method and Description |
|---|---|
static <T> PVector2D<T> |
PVectors2D.absolute(PVector2D<T> v0)
Calculate the absolute of
v0. |
static <T> PVector2D<T> |
PVectors2D.add(PVector2D<T> v0,
PVector2D<T> v1)
Add
v0 to v1. |
static <T> PVector2D<T> |
PVectors2D.addScaled(PVector2D<T> v0,
PVector2D<T> v1,
double r)
Add
v0 to v1 * r. |
PVector2D<T> |
PVector2D.Builder.build()
Builds a new
PVector2D. |
static <T> PVector2D<T> |
PVectors2D.clamp(PVector2D<T> v,
PVector2D<T> v_min,
PVector2D<T> v_max)
Clamp the values in
v by v_min and v_max. |
static <T> PVector2D<T> |
PVectors2D.interpolateLinear(PVector2D<T> v0,
PVector2D<T> v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static <T> PVector2D<T> |
PVectors2D.negate(PVector2D<T> v)
Calculate the negation of
v. |
static <T> PVector2D<T> |
PVectors2D.normalize(PVector2D<T> v0)
Normalize the vector
v0. |
static <T> PVector2D<T> |
PVector2D.of(double x,
double y)
Construct a new immutable
PVector2D instance. |
static <T> PVector2D<T> |
PVectors2D.scale(PVector2D<T> v0,
double r)
Scale
v0 by r. |
static <T> PVector2D<T> |
PVectors2D.subtract(PVector2D<T> v0,
PVector2D<T> v1)
Subtract
v1 from v0. |
static <A> PVector2D<A> |
PVectors2D.toParameterized(Vector2D v) |
static <T> PVector2D<T> |
PVectors2D.zero()
The zero vector.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> PVector2D<T> |
PVectors2D.absolute(PVector2D<T> v0)
Calculate the absolute of
v0. |
static <T> PVector2D<T> |
PVectors2D.add(PVector2D<T> v0,
PVector2D<T> v1)
Add
v0 to v1. |
static <T> PVector2D<T> |
PVectors2D.add(PVector2D<T> v0,
PVector2D<T> v1)
Add
v0 to v1. |
static <T> PVector2D<T> |
PVectors2D.addScaled(PVector2D<T> v0,
PVector2D<T> v1,
double r)
Add
v0 to v1 * r. |
static <T> PVector2D<T> |
PVectors2D.addScaled(PVector2D<T> v0,
PVector2D<T> v1,
double r)
Add
v0 to v1 * r. |
static <T> double |
PVectors2D.angle(PVector2D<T> v0,
PVector2D<T> v1)
Calculate the angle between the vectors
v0 and v1 in
radians. |
static <T> double |
PVectors2D.angle(PVector2D<T> v0,
PVector2D<T> v1)
Calculate the angle between the vectors
v0 and v1 in
radians. |
static <T> PVector2D<T> |
PVectors2D.clamp(PVector2D<T> v,
PVector2D<T> v_min,
PVector2D<T> v_max)
Clamp the values in
v by v_min and v_max. |
static <T> PVector2D<T> |
PVectors2D.clamp(PVector2D<T> v,
PVector2D<T> v_min,
PVector2D<T> v_max)
Clamp the values in
v by v_min and v_max. |
static <T> PVector2D<T> |
PVectors2D.clamp(PVector2D<T> v,
PVector2D<T> v_min,
PVector2D<T> v_max)
Clamp the values in
v by v_min and v_max. |
static <T> double |
PVectors2D.distance(PVector2D<T> v0,
PVector2D<T> v1)
Calculate the distance between
v0 and v1. |
static <T> double |
PVectors2D.distance(PVector2D<T> v0,
PVector2D<T> v1)
Calculate the distance between
v0 and v1. |
static <T> double |
PVectors2D.dotProduct(PVector2D<T> v0,
PVector2D<T> v1)
Calculate the scalar product of the vectors
v0 and v1. |
static <T> double |
PVectors2D.dotProduct(PVector2D<T> v0,
PVector2D<T> v1)
Calculate the scalar product of the vectors
v0 and v1. |
static <T> PVector2D<T> |
PVectors2D.interpolateLinear(PVector2D<T> v0,
PVector2D<T> v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static <T> PVector2D<T> |
PVectors2D.interpolateLinear(PVector2D<T> v0,
PVector2D<T> v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static <T> double |
PVectors2D.magnitude(PVector2D<T> v0)
Calculate the magnitude of the vector
v0. |
static <T> double |
PVectors2D.magnitudeSquared(PVector2D<T> v0)
Calculate the squared magnitude of the vector
v0. |
static <T> PVector2D<T> |
PVectors2D.negate(PVector2D<T> v)
Calculate the negation of
v. |
static <T> PVector2D<T> |
PVectors2D.normalize(PVector2D<T> v0)
Normalize the vector
v0. |
static <T> PVector2D<T> |
PVectors2D.scale(PVector2D<T> v0,
double r)
Scale
v0 by r. |
static <T> PVector2D<T> |
PVectors2D.subtract(PVector2D<T> v0,
PVector2D<T> v1)
Subtract
v1 from v0. |
static <T> PVector2D<T> |
PVectors2D.subtract(PVector2D<T> v0,
PVector2D<T> v1)
Subtract
v1 from v0. |
static <A> Vector2D |
PVectors2D.toUnparameterized(PVector2D<A> v) |
| Modifier and Type | Method and Description |
|---|---|
PVector2D<T> |
PVector2DGenerator.next() |
| Modifier and Type | Method and Description |
|---|---|
static <T> net.java.quickcheck.Generator<PVector2D<T>> |
PVector2DGenerator.create()
Create a generator initialized with a default component generator.
|
static <T> net.java.quickcheck.Generator<PVector2D<T>> |
PVector2DGenerator.createNormal()
Create a generator initialized with a default component generator that
produces values in the range
[-1, 1]. |
static <T> net.java.quickcheck.Generator<PVector2D<T>> |
PVector2DGenerator.createSmall()
Create a generator initialized with a default component generator that
produces values in the range
[-(2 ^ 16), 2 ^ 16]. |
| Modifier and Type | Method and Description |
|---|---|
default void |
PVectorStorageFloating2Type.setPVector2D(PVector2D<T> v)
Set the components from the given vector.
|
Copyright © 2017 <code@io7m.com> http://io7m.com