| Package | Description |
|---|---|
| com.io7m.jtensors.core.parameterized.matrices |
Parameterized matrix types.
|
| com.io7m.jtensors.core.quaternions |
Quaternion types.
|
| com.io7m.jtensors.generators |
QuickCheck generators.
|
| com.io7m.jtensors.storage.api.parameterized.matrices |
Parameterized matrix storage types.
|
| com.io7m.jtensors.storage.bytebuffered |
Tensor ByteBuffered storage implementations.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <A,B,C,D,E,F> |
PMatrices4x4F.add(PMatrix4x4F<A,B> m0,
PMatrix4x4F<C,D> m1) |
Add the matrices
m0 and m1. |
PMatrix4x4F<A,B> |
PMatrix4x4F.Builder.build() |
Builds a new
PMatrix4x4F. |
static <A,B> PMatrix4x4F<A,B> |
PMatrices4x4F.identity() |
The identity matrix.
|
static <A,B,C> PMatrix4x4F<A,C> |
PMatrices4x4F.multiply(PMatrix4x4F<B,C> m0,
PMatrix4x4F<A,B> m1) |
Multiply the matrices
m0 and m1. |
static <A,B> PMatrix4x4F<A,B> |
PMatrix4x4F.of(float r0c0,
float r0c1,
float r0c2,
float r0c3,
float r1c0,
float r1c1,
float r1c2,
float r1c3,
float r2c0,
float r2c1,
float r2c2,
float r2c3,
float r3c0,
float r3c1,
float r3c2,
float r3c3) |
Construct a new immutable
PMatrix4x4F instance. |
static <A,B> PMatrix4x4F<A,B> |
PMatrices4x4F.ofAxisAngle(double axis_x,
double axis_y,
double axis_z,
double angle) |
Construct a matrix that will rotate by
angle radians around the axis (x, y, z). |
static <A,B> PMatrix4x4F<A,B> |
PMatrices4x4F.ofColumns(Vector4F c0,
Vector4F c1,
Vector4F c2,
Vector4F c3) |
Construct a matrix from the column vectors
(c0, c1, c2, c3). |
static <A,B> PMatrix4x4F<A,B> |
PMatrices4x4F.ofRows(Vector4F r0,
Vector4F r1,
Vector4F r2,
Vector4F r3) |
Construct a matrix from the row vectors
(r0, r1, r2, r3). |
static <A,B> PMatrix4x4F<A,B> |
PMatrices4x4F.ofScale(double x,
double y,
double z) |
Construct a matrix that will scale by
(x, y, z). |
static <A,B> PMatrix4x4F<A,B> |
PMatrices4x4F.ofTranslation(double x,
double y,
double z) |
Construct a matrix that will translate by
(x, y, z). |
static <A,B,C,D> PMatrix4x4F<C,D> |
PMatrices4x4F.scale(PMatrix4x4F<A,B> m,
double r) |
Scale the matrix
m by r. |
static <A,B,C,D,E,F> |
PMatrices4x4F.subtract(PMatrix4x4F<A,B> m0,
PMatrix4x4F<C,D> m1) |
Subtract the matrices
m0 and m1. |
static <A,B> PMatrix4x4F<A,B> |
PMatrices4x4F.toParameterized(Matrix4x4F m) |
|
static <A,B> PMatrix4x4F<A,B> |
PMatrices4x4F.transpose(PMatrix4x4F<A,B> m) |
Calculate the transpose of the matrix
m. |
static <A,B> PMatrix4x4F<A,B> |
PMatrices4x4F.withColumn(PMatrix4x4F<A,B> m,
int column,
float r0,
float r1,
float r2,
float r3) |
Set the column
column of m to (r0, r1, r2, r3). |
static <A,B> PMatrix4x4F<A,B> |
PMatrices4x4F.withRow(PMatrix4x4F<A,B> m,
int row,
float c0,
float c1,
float c2,
float c3) |
Set the row
row of m to (c0, c1, c2, c3). |
static <A,B> PMatrix4x4F<A,B> |
PMatrices4x4F.zero() |
The zero matrix.
|
| Modifier and Type | Method | Description |
|---|---|---|
static <A,B> Optional<PMatrix4x4F<B,A>> |
PMatrices4x4F.invert(PMatrix4x4F<A,B> m) |
Calculate the inverse of the matrix
m. |
| Modifier and Type | Method | Description |
|---|---|---|
static <A,B,C,D,E,F> |
PMatrices4x4F.add(PMatrix4x4F<A,B> m0,
PMatrix4x4F<C,D> m1) |
Add the matrices
m0 and m1. |
static <A,B> Vector4F |
PMatrices4x4F.column0(PMatrix4x4F<A,B> m) |
|
static <A,B> Vector4F |
PMatrices4x4F.column1(PMatrix4x4F<A,B> m) |
|
static <A,B> Vector4F |
PMatrices4x4F.column2(PMatrix4x4F<A,B> m) |
|
static <A,B> Vector4F |
PMatrices4x4F.column3(PMatrix4x4F<A,B> m) |
|
static <A,B> double |
PMatrices4x4F.determinant(PMatrix4x4F<A,B> m) |
Calculate the determinant of the matrix
m. |
static <A,B> Optional<PMatrix4x4F<B,A>> |
PMatrices4x4F.invert(PMatrix4x4F<A,B> m) |
Calculate the inverse of the matrix
m. |
static <A,B,C> PMatrix4x4F<A,C> |
PMatrices4x4F.multiply(PMatrix4x4F<B,C> m0,
PMatrix4x4F<A,B> m1) |
Multiply the matrices
m0 and m1. |
static <A,B> PVector4F<B> |
PMatrices4x4F.multiplyVectorPost(PMatrix4x4F<A,B> m,
PVector4F<A> v) |
Multiply the vector
v by the matrix m. |
static Vector4F |
PMatrices4x4F.multiplyVectorPost(PMatrix4x4F m,
Vector4F v) |
Multiply the vector
v by the matrix m. |
static <A,B> Vector4F |
PMatrices4x4F.row0(PMatrix4x4F<A,B> m) |
|
static <A,B> Vector4F |
PMatrices4x4F.row1(PMatrix4x4F<A,B> m) |
|
static <A,B> Vector4F |
PMatrices4x4F.row2(PMatrix4x4F<A,B> m) |
|
static <A,B> Vector4F |
PMatrices4x4F.row3(PMatrix4x4F<A,B> m) |
|
static <A,B,C,D> PMatrix4x4F<C,D> |
PMatrices4x4F.scale(PMatrix4x4F<A,B> m,
double r) |
Scale the matrix
m by r. |
static <A,B,C,D,E,F> |
PMatrices4x4F.subtract(PMatrix4x4F<A,B> m0,
PMatrix4x4F<C,D> m1) |
Subtract the matrices
m0 and m1. |
static <A,B> Matrix4x4F |
PMatrices4x4F.toUnparameterized(PMatrix4x4F<A,B> m) |
|
static <A,B> double |
PMatrices4x4F.trace(PMatrix4x4F<A,B> m) |
Return the trace of the matrix
m. |
static <A,B> PMatrix4x4F<A,B> |
PMatrices4x4F.transpose(PMatrix4x4F<A,B> m) |
Calculate the transpose of the matrix
m. |
static <A,B> PMatrix4x4F<A,B> |
PMatrices4x4F.withColumn(PMatrix4x4F<A,B> m,
int column,
float r0,
float r1,
float r2,
float r3) |
Set the column
column of m to (r0, r1, r2, r3). |
static <A,B> PMatrix4x4F<A,B> |
PMatrices4x4F.withRow(PMatrix4x4F<A,B> m,
int row,
float c0,
float c1,
float c2,
float c3) |
Set the row
row of m to (c0, c1, c2, c3). |
| Modifier and Type | Method | Description |
|---|---|---|
static <A,B> PMatrix4x4F<A,B> |
Quaternions4F.toPMatrix4x4(Quaternion4F q) |
Create a 4x4 matrix from the quaternion
q. |
| Modifier and Type | Method | Description |
|---|---|---|
static <A,B> Quaternion4F |
Quaternions4F.ofPMatrix4x4(PMatrix4x4F<A,B> m) |
Calculate a quaternion that represents the rotation given by the matrix
m. |
| Modifier and Type | Method | Description |
|---|---|---|
PMatrix4x4F<A,B> |
PMatrix4x4FGenerator.next() |
| Modifier and Type | Method | Description |
|---|---|---|
static <A,B> net.java.quickcheck.Generator<PMatrix4x4F<A,B>> |
PMatrix4x4FGenerator.create() |
Create a generator initialized with a default component generator.
|
static <A,B> net.java.quickcheck.Generator<PMatrix4x4F<A,B>> |
PMatrix4x4FGenerator.createNormal() |
Create a generator initialized with a default component generator that only
produces values in the range
[-1.0, 1.0]. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
PMatrixStorage4x4Type.setPMatrix4x4F(PMatrix4x4F<A,B> m) |
Set the components from the given matrix.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
PMatrixByteBuffered4x4s16.setPMatrix4x4F(PMatrix4x4F<A,B> m) |
|
void |
PMatrixByteBuffered4x4s32.setPMatrix4x4F(PMatrix4x4F<A,B> m) |
|
void |
PMatrixByteBuffered4x4s64.setPMatrix4x4F(PMatrix4x4F<A,B> m) |
Copyright © 2017 <code@io7m.com> http://io7m.com