| 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> PVector3D<B> |
PMatrices3x3D.multiplyVectorPost(PMatrix3x3D<A,B> m,
PVector3D<A> v)
Multiply the vector
v by the matrix m. |
| Modifier and Type | Method and Description |
|---|---|
static <A,B> PVector3D<B> |
PMatrices3x3D.multiplyVectorPost(PMatrix3x3D<A,B> m,
PVector3D<A> v)
Multiply the vector
v by the matrix m. |
| Modifier and Type | Method and Description |
|---|---|
static <T> PVector3D<T> |
PVectors3D.absolute(PVector3D<T> v0)
Calculate the absolute of
v0. |
static <T> PVector3D<T> |
PVectors3D.add(PVector3D<T> v0,
PVector3D<T> v1)
Add
v0 to v1. |
static <T> PVector3D<T> |
PVectors3D.addScaled(PVector3D<T> v0,
PVector3D<T> v1,
double r)
Add
v0 to v1 * r. |
PVector3D<T> |
PVector3D.Builder.build()
Builds a new
PVector3D. |
static <T> PVector3D<T> |
PVectors3D.clamp(PVector3D<T> v,
PVector3D<T> v_min,
PVector3D<T> v_max)
Clamp the values in
v by v_min and v_max. |
static <T> PVector3D<T> |
PVectors3D.crossProduct(PVector3D<T> v0,
PVector3D<T> v1)
Calculate the cross product of the vectors
v0 and v1. |
static <T> PVector3D<T> |
PVectors3D.interpolateLinear(PVector3D<T> v0,
PVector3D<T> v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static <T> PVector3D<T> |
PVectors3D.negate(PVector3D<T> v)
Calculate the negation of
v. |
static <T> PVector3D<T> |
PVectors3D.normalize(PVector3D<T> v0)
Normalize the vector
v0. |
static <T> PVector3D<T> |
PVector3D.of(double x,
double y,
double z)
Construct a new immutable
PVector3D instance. |
static <T> PVector3D<T> |
PVectors3D.scale(PVector3D<T> v0,
double r)
Scale
v0 by r. |
static <T> PVector3D<T> |
PVectors3D.subtract(PVector3D<T> v0,
PVector3D<T> v1)
Subtract
v1 from v0. |
static <T> PVector3D<T> |
PVectors3D.zero()
The zero vector.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> PVector3D<T> |
PVectors3D.absolute(PVector3D<T> v0)
Calculate the absolute of
v0. |
static <T> PVector3D<T> |
PVectors3D.add(PVector3D<T> v0,
PVector3D<T> v1)
Add
v0 to v1. |
static <T> PVector3D<T> |
PVectors3D.add(PVector3D<T> v0,
PVector3D<T> v1)
Add
v0 to v1. |
static <T> PVector3D<T> |
PVectors3D.addScaled(PVector3D<T> v0,
PVector3D<T> v1,
double r)
Add
v0 to v1 * r. |
static <T> PVector3D<T> |
PVectors3D.addScaled(PVector3D<T> v0,
PVector3D<T> v1,
double r)
Add
v0 to v1 * r. |
static <T> PVector3D<T> |
PVectors3D.clamp(PVector3D<T> v,
PVector3D<T> v_min,
PVector3D<T> v_max)
Clamp the values in
v by v_min and v_max. |
static <T> PVector3D<T> |
PVectors3D.clamp(PVector3D<T> v,
PVector3D<T> v_min,
PVector3D<T> v_max)
Clamp the values in
v by v_min and v_max. |
static <T> PVector3D<T> |
PVectors3D.clamp(PVector3D<T> v,
PVector3D<T> v_min,
PVector3D<T> v_max)
Clamp the values in
v by v_min and v_max. |
static <T> PVector3D<T> |
PVectors3D.crossProduct(PVector3D<T> v0,
PVector3D<T> v1)
Calculate the cross product of the vectors
v0 and v1. |
static <T> PVector3D<T> |
PVectors3D.crossProduct(PVector3D<T> v0,
PVector3D<T> v1)
Calculate the cross product of the vectors
v0 and v1. |
static <T> double |
PVectors3D.dotProduct(PVector3D<T> v0,
PVector3D<T> v1)
Calculate the scalar product of the vectors
v0 and v1. |
static <T> double |
PVectors3D.dotProduct(PVector3D<T> v0,
PVector3D<T> v1)
Calculate the scalar product of the vectors
v0 and v1. |
static <T> PVector3D<T> |
PVectors3D.interpolateLinear(PVector3D<T> v0,
PVector3D<T> v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static <T> PVector3D<T> |
PVectors3D.interpolateLinear(PVector3D<T> v0,
PVector3D<T> v1,
double alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static <T> double |
PVectors3D.magnitude(PVector3D<T> v0)
Calculate the magnitude of the vector
v0. |
static <T> double |
PVectors3D.magnitudeSquared(PVector3D<T> v0)
Calculate the squared magnitude of the vector
v0. |
static <T> PVector3D<T> |
PVectors3D.negate(PVector3D<T> v)
Calculate the negation of
v. |
static <T> PVector3D<T> |
PVectors3D.normalize(PVector3D<T> v0)
Normalize the vector
v0. |
static <T> PVector3D<T> |
PVectors3D.scale(PVector3D<T> v0,
double r)
Scale
v0 by r. |
static <T> PVector3D<T> |
PVectors3D.subtract(PVector3D<T> v0,
PVector3D<T> v1)
Subtract
v1 from v0. |
static <T> PVector3D<T> |
PVectors3D.subtract(PVector3D<T> v0,
PVector3D<T> v1)
Subtract
v1 from v0. |
| Modifier and Type | Method and Description |
|---|---|
PVector3D<T> |
PVector3DGenerator.next() |
| Modifier and Type | Method and Description |
|---|---|
static <T> net.java.quickcheck.Generator<PVector3D<T>> |
PVector3DGenerator.create()
Create a generator initialized with a default component generator.
|
static <T> net.java.quickcheck.Generator<PVector3D<T>> |
PVector3DGenerator.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<PVector3D<T>> |
PVector3DGenerator.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 |
PVectorStorageFloating3Type.setPVector3D(PVector3D<T> v)
Set the components from the given vector.
|
Copyright © 2017 <code@io7m.com> http://io7m.com