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