| 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 | Description |
|---|---|---|
static <A,B> PVector3F<B> |
PMatrices3x3F.multiplyVectorPost(PMatrix3x3F<A,B> m,
PVector3F<A> v) |
Multiply the vector
v by the matrix m. |
| Modifier and Type | Method | Description |
|---|---|---|
static <A,B> PVector3F<B> |
PMatrices3x3F.multiplyVectorPost(PMatrix3x3F<A,B> m,
PVector3F<A> v) |
Multiply the vector
v by the matrix m. |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> PVector3F<T> |
PVectors3F.absolute(PVector3F<T> v0) |
Calculate the absolute of
v0. |
static <T> PVector3F<T> |
PVectors3F.add(PVector3F<T> v0,
PVector3F<T> v1) |
Add
v0 to v1. |
static <T> PVector3F<T> |
PVectors3F.addScaled(PVector3F<T> v0,
PVector3F<T> v1,
double r) |
Add
v0 to v1 * r. |
PVector3F<T> |
PVector3F.Builder.build() |
Builds a new
PVector3F. |
static <T> PVector3F<T> |
PVectors3F.clamp(PVector3F<T> v,
PVector3F<T> v_min,
PVector3F<T> v_max) |
Clamp the values in
v by v_min and v_max. |
static <T> PVector3F<T> |
PVectors3F.crossProduct(PVector3F<T> v0,
PVector3F<T> v1) |
Calculate the cross product of the vectors
v0 and v1. |
static <T> PVector3F<T> |
PVectors3F.interpolateBilinear(PVector3F<T> x0y0,
PVector3F<T> x1y0,
PVector3F<T> x0y1,
PVector3F<T> x1y1,
double px,
double py) |
Bilinearly interpolate between
x0y0, x1y0, x0y1, x1y1. |
static <T> PVector3F<T> |
PVectors3F.interpolateLinear(PVector3F<T> v0,
PVector3F<T> v1,
double alpha) |
Linearly interpolate between
v0 and v1 by the amount alpha. |
static <T> PVector3F<T> |
PVectors3F.negate(PVector3F<T> v) |
Calculate the negation of
v. |
static <T> PVector3F<T> |
PVectors3F.normalize(PVector3F<T> v0) |
Normalize the vector
v0. |
static <T> PVector3F<T> |
PVector3F.of(float x,
float y,
float z) |
Construct a new immutable
PVector3F instance. |
static <T> PVector3F<T> |
PVectors3F.scale(PVector3F<T> v0,
double r) |
Scale
v0 by r. |
static <T> PVector3F<T> |
PVectors3F.subtract(PVector3F<T> v0,
PVector3F<T> v1) |
Subtract
v1 from v0. |
static <A> PVector3F<A> |
PVectors3F.toParameterized(Vector3F v) |
|
static <T> PVector3F<T> |
PVectors3F.zero() |
The zero vector.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <T> PVector3F<T> |
PVectors3F.absolute(PVector3F<T> v0) |
Calculate the absolute of
v0. |
static <T> PVector3F<T> |
PVectors3F.add(PVector3F<T> v0,
PVector3F<T> v1) |
Add
v0 to v1. |
static <T> PVector3F<T> |
PVectors3F.addScaled(PVector3F<T> v0,
PVector3F<T> v1,
double r) |
Add
v0 to v1 * r. |
static <T> PVector3F<T> |
PVectors3F.clamp(PVector3F<T> v,
PVector3F<T> v_min,
PVector3F<T> v_max) |
Clamp the values in
v by v_min and v_max. |
static <T> PVector3F<T> |
PVectors3F.crossProduct(PVector3F<T> v0,
PVector3F<T> v1) |
Calculate the cross product of the vectors
v0 and v1. |
static <T> double |
PVectors3F.distance(PVector3F<T> v0,
PVector3F<T> v1) |
Calculate the distance between
v0 and v1. |
static <T> double |
PVectors3F.dotProduct(PVector3F<T> v0,
PVector3F<T> v1) |
Calculate the scalar product of the vectors
v0 and v1. |
static <T> PVector3F<T> |
PVectors3F.interpolateBilinear(PVector3F<T> x0y0,
PVector3F<T> x1y0,
PVector3F<T> x0y1,
PVector3F<T> x1y1,
double px,
double py) |
Bilinearly interpolate between
x0y0, x1y0, x0y1, x1y1. |
static <T> PVector3F<T> |
PVectors3F.interpolateLinear(PVector3F<T> v0,
PVector3F<T> v1,
double alpha) |
Linearly interpolate between
v0 and v1 by the amount alpha. |
static <T> double |
PVectors3F.magnitude(PVector3F<T> v0) |
Calculate the magnitude of the vector
v0. |
static <T> double |
PVectors3F.magnitudeSquared(PVector3F<T> v0) |
Calculate the squared magnitude of the vector
v0. |
static <T> PVector3F<T> |
PVectors3F.negate(PVector3F<T> v) |
Calculate the negation of
v. |
static <T> PVector3F<T> |
PVectors3F.normalize(PVector3F<T> v0) |
Normalize the vector
v0. |
static <T> PVector3F<T> |
PVectors3F.scale(PVector3F<T> v0,
double r) |
Scale
v0 by r. |
static <T> PVector3F<T> |
PVectors3F.subtract(PVector3F<T> v0,
PVector3F<T> v1) |
Subtract
v1 from v0. |
static <A> Vector3F |
PVectors3F.toUnparameterized(PVector3F<A> v) |
| Modifier and Type | Method | Description |
|---|---|---|
PVector3F<T> |
PVector3FGenerator.next() |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> net.java.quickcheck.Generator<PVector3F<T>> |
PVector3FGenerator.create() |
Create a generator initialized with a default component generator.
|
static <T> net.java.quickcheck.Generator<PVector3F<T>> |
PVector3FGenerator.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<PVector3F<T>> |
PVector3FGenerator.createSmall() |
Create a generator initialized with a default component generator that
produces values in the range
[-65536.0, 65536.0]. |
| Modifier and Type | Method | Description |
|---|---|---|
default void |
PVectorStorageFloating3Type.setPVector3F(PVector3F<T> v) |
Set the components from the given vector.
|
Copyright © 2017 <code@io7m.com> http://io7m.com