| 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> PVector2F<B> |
PMatrices2x2F.multiplyVectorPost(PMatrix2x2F<A,B> m,
PVector2F<A> v)
Multiply the vector
v by the matrix m. |
| Modifier and Type | Method and Description |
|---|---|
static <A,B> PVector2F<B> |
PMatrices2x2F.multiplyVectorPost(PMatrix2x2F<A,B> m,
PVector2F<A> v)
Multiply the vector
v by the matrix m. |
| Modifier and Type | Method and Description |
|---|---|
static <T> PVector2F<T> |
PVectors2F.absolute(PVector2F<T> v0)
Calculate the absolute of
v0. |
static <T> PVector2F<T> |
PVectors2F.add(PVector2F<T> v0,
PVector2F<T> v1)
Add
v0 to v1. |
static <T> PVector2F<T> |
PVectors2F.addScaled(PVector2F<T> v0,
PVector2F<T> v1,
double r)
Add
v0 to v1 * r. |
PVector2F<T> |
PVector2F.Builder.build()
Builds a new
PVector2F. |
static <T> PVector2F<T> |
PVectors2F.clamp(PVector2F<T> v,
PVector2F<T> v_min,
PVector2F<T> v_max)
Clamp the values in
v by v_min and v_max. |
static <T> PVector2F<T> |
PVectors2F.interpolateLinear(PVector2F<T> v0,
PVector2F<T> v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static <T> PVector2F<T> |
PVectors2F.negate(PVector2F<T> v)
Calculate the negation of
v. |
static <T> PVector2F<T> |
PVectors2F.normalize(PVector2F<T> v0)
Normalize the vector
v0. |
static <T> PVector2F<T> |
PVector2F.of(float x,
float y)
Construct a new immutable
PVector2F instance. |
static <T> PVector2F<T> |
PVectors2F.scale(PVector2F<T> v0,
double r)
Scale
v0 by r. |
static <T> PVector2F<T> |
PVectors2F.subtract(PVector2F<T> v0,
PVector2F<T> v1)
Subtract
v1 from v0. |
static <T> PVector2F<T> |
PVectors2F.zero()
The zero vector.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> PVector2F<T> |
PVectors2F.absolute(PVector2F<T> v0)
Calculate the absolute of
v0. |
static <T> PVector2F<T> |
PVectors2F.add(PVector2F<T> v0,
PVector2F<T> v1)
Add
v0 to v1. |
static <T> PVector2F<T> |
PVectors2F.add(PVector2F<T> v0,
PVector2F<T> v1)
Add
v0 to v1. |
static <T> PVector2F<T> |
PVectors2F.addScaled(PVector2F<T> v0,
PVector2F<T> v1,
double r)
Add
v0 to v1 * r. |
static <T> PVector2F<T> |
PVectors2F.addScaled(PVector2F<T> v0,
PVector2F<T> v1,
double r)
Add
v0 to v1 * r. |
static <T> double |
PVectors2F.angle(PVector2F<T> v0,
PVector2F<T> v1)
Calculate the angle between the vectors
v0 and v1 in
radians. |
static <T> double |
PVectors2F.angle(PVector2F<T> v0,
PVector2F<T> v1)
Calculate the angle between the vectors
v0 and v1 in
radians. |
static <T> PVector2F<T> |
PVectors2F.clamp(PVector2F<T> v,
PVector2F<T> v_min,
PVector2F<T> v_max)
Clamp the values in
v by v_min and v_max. |
static <T> PVector2F<T> |
PVectors2F.clamp(PVector2F<T> v,
PVector2F<T> v_min,
PVector2F<T> v_max)
Clamp the values in
v by v_min and v_max. |
static <T> PVector2F<T> |
PVectors2F.clamp(PVector2F<T> v,
PVector2F<T> v_min,
PVector2F<T> v_max)
Clamp the values in
v by v_min and v_max. |
static <T> double |
PVectors2F.dotProduct(PVector2F<T> v0,
PVector2F<T> v1)
Calculate the scalar product of the vectors
v0 and v1. |
static <T> double |
PVectors2F.dotProduct(PVector2F<T> v0,
PVector2F<T> v1)
Calculate the scalar product of the vectors
v0 and v1. |
static <T> PVector2F<T> |
PVectors2F.interpolateLinear(PVector2F<T> v0,
PVector2F<T> v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static <T> PVector2F<T> |
PVectors2F.interpolateLinear(PVector2F<T> v0,
PVector2F<T> v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static <T> double |
PVectors2F.magnitude(PVector2F<T> v0)
Calculate the magnitude of the vector
v0. |
static <T> double |
PVectors2F.magnitudeSquared(PVector2F<T> v0)
Calculate the squared magnitude of the vector
v0. |
static <T> PVector2F<T> |
PVectors2F.negate(PVector2F<T> v)
Calculate the negation of
v. |
static <T> PVector2F<T> |
PVectors2F.normalize(PVector2F<T> v0)
Normalize the vector
v0. |
static <T> PVector2F<T> |
PVectors2F.scale(PVector2F<T> v0,
double r)
Scale
v0 by r. |
static <T> PVector2F<T> |
PVectors2F.subtract(PVector2F<T> v0,
PVector2F<T> v1)
Subtract
v1 from v0. |
static <T> PVector2F<T> |
PVectors2F.subtract(PVector2F<T> v0,
PVector2F<T> v1)
Subtract
v1 from v0. |
| Modifier and Type | Method and Description |
|---|---|
PVector2F<T> |
PVector2FGenerator.next() |
| Modifier and Type | Method and Description |
|---|---|
static <T> net.java.quickcheck.Generator<PVector2F<T>> |
PVector2FGenerator.create()
Create a generator initialized with a default component generator.
|
static <T> net.java.quickcheck.Generator<PVector2F<T>> |
PVector2FGenerator.createNormal()
Create a generator initialized with a default component generator that
produces values in the range
[-1.0, 1.0]. |
static <T> net.java.quickcheck.Generator<PVector2F<T>> |
PVector2FGenerator.createSmall()
Create a generator initialized with a default component generator that
produces values in the range
[-65536.0, 65536.0]. |
| Modifier and Type | Method and Description |
|---|---|
default void |
PVectorStorageFloating2Type.setPVector2F(PVector2F<T> v)
Set the components from the given vector.
|
Copyright © 2017 <code@io7m.com> http://io7m.com