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.orthonormalization |
Functions for orthonormalizing sets of vectors.
|
com.io7m.jtensors.storage.api.parameterized.vectors |
Parameterized vector storage types.
|
Modifier and Type | Method | 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 | 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 | 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.interpolateBilinear(PVector3D<T> x0y0,
PVector3D<T> x1y0,
PVector3D<T> x0y1,
PVector3D<T> x1y1,
double px,
double py) |
Bilinearly interpolate between
x0y0 , x1y0 , x0y1 , x1y1 . |
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 <A> PVector3D<A> |
PVectors3D.toParameterized(Vector3D v) |
|
static <T> PVector3D<T> |
PVectors3D.zero() |
The zero vector.
|
Modifier and Type | Method | 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 . |
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> double |
PVectors3D.distance(PVector3D<T> v0,
PVector3D<T> v1) |
Calculate the distance between
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.interpolateBilinear(PVector3D<T> x0y0,
PVector3D<T> x1y0,
PVector3D<T> x0y1,
PVector3D<T> x1y1,
double px,
double py) |
Bilinearly interpolate between
x0y0 , x1y0 , x0y1 , x1y1 . |
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 <A> Vector3D |
PVectors3D.toUnparameterized(PVector3D<A> v) |
Modifier and Type | Method | Description |
---|---|---|
PVector3D<T> |
PVector3DGenerator.next() |
Modifier and Type | Method | 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 | Description |
---|---|---|
PVector3D<T> |
POrthonormalized3D.v0() |
|
PVector3D<T> |
POrthonormalized3DType.v0() |
|
PVector3D<T> |
POrthonormalized3D.v1() |
|
PVector3D<T> |
POrthonormalized3DType.v1() |
|
PVector3D<T> |
POrthonormalized3D.v2() |
|
PVector3D<T> |
POrthonormalized3DType.v2() |
Modifier and Type | Method | Description |
---|---|---|
static <T> POrthonormalized3D<T> |
POrthonormalized3D.of(PVector3D<T> v0,
PVector3D<T> v1,
PVector3D<T> v2) |
Construct a new immutable
POrthonormalized3D instance. |
static <T> POrthonormalized3D<T> |
POrthonormalization.orthonormalize3D(PVector3D<T> v0,
PVector3D<T> v1,
PVector3D<T> v2) |
Orthonormalize the given vectors.
|
POrthonormalized3D.Builder<T> |
POrthonormalized3D.Builder.setV0(PVector3D<T> v0) |
Initializes the value for the
v0 attribute. |
POrthonormalized3D.Builder<T> |
POrthonormalized3D.Builder.setV1(PVector3D<T> v1) |
Initializes the value for the
v1 attribute. |
POrthonormalized3D.Builder<T> |
POrthonormalized3D.Builder.setV2(PVector3D<T> v2) |
Initializes the value for the
v2 attribute. |
Modifier and Type | Method | Description |
---|---|---|
default void |
PVectorStorageFloating3Type.setPVector3D(PVector3D<T> v) |
Set the components from the given vector.
|
Copyright © 2017 <code@io7m.com> http://io7m.com