public final class Matrix3x3 extends Object implements Serializable
m00 m01 m02 m10 m11 m12 m20 m21 m22
The class provides most of the methods as static variants for matrices
passed as double[]
. They are always meant to be in a row after row
sequence:
m00, m01, m02, m10, m11, m12, m20, m21, m22
Modifier and Type | Field and Description |
---|---|
double |
m00 |
double |
m01 |
double |
m02 |
double |
m10 |
double |
m11 |
double |
m12 |
double |
m20 |
double |
m21 |
double |
m22 |
Constructor and Description |
---|
Matrix3x3()
Initialize and identity matrix.
|
Matrix3x3(double[] m)
Initialize a matrix with a double[].
|
Matrix3x3(double m00,
double m01,
double m02,
double m10,
double m11,
double m12,
double m20,
double m21,
double m22)
Initialize a matrix.
|
Modifier and Type | Method and Description |
---|---|
Matrix3x3 |
clone() |
void |
concatenate(Matrix3x3 m)
Concatenate a matrix:
this = this × m
|
static double[] |
createInverse(double m00,
double m01,
double m02,
double m10,
double m11,
double m12,
double m20,
double m21,
double m22) |
static float[] |
createInverse(float m00,
float m01,
float m02,
float m10,
float m11,
float m12,
float m20,
float m21,
float m22) |
double |
det()
Calculate the determinant.
|
static double |
det(double[] a)
Calculate the determinant of a matrix given as a double[] (row after row).
|
static double |
det(double m00,
double m01,
double m02,
double m10,
double m11,
double m12,
double m20,
double m21,
double m22)
Calculate the determinant of a matrix given by values.
|
static float |
det(float[] a)
Calculate the determinant of a matrix given as a float[] (row after row).
|
static float |
det(float m00,
float m01,
float m02,
float m10,
float m11,
float m12,
float m20,
float m21,
float m22)
Calculate the determinant of a matrix given by values.
|
void |
invert() |
static void |
invert(double[] m) |
static void |
invert(float[] m) |
void |
preConcatenate(Matrix3x3 m)
Pre-concatenate a matrix:
this = m × this
|
void |
reset()
Set to identity.
|
void |
set(Matrix3x3 m) |
public double m00
public double m01
public double m02
public double m10
public double m11
public double m12
public double m20
public double m21
public double m22
public Matrix3x3()
public Matrix3x3(double m00, double m01, double m02, double m10, double m11, double m12, double m20, double m21, double m22)
m00
- m01
- m02
- m10
- m11
- m12
- m20
- m21
- m22
- public Matrix3x3(double[] m)
Matrix3x3
.m
- public final double det()
public static final double det(double[] a)
a
- matrix given row by rowpublic static final float det(float[] a)
a
- matrix given row by rowpublic static final double det(double m00, double m01, double m02, double m10, double m11, double m12, double m20, double m21, double m22)
m00
- m01
- m02
- m10
- m11
- m12
- m20
- m21
- m22
- public static final float det(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22)
m00
- m01
- m02
- m10
- m11
- m12
- m20
- m21
- m22
- public final void invert() throws NoninvertibleModelException
NoninvertibleModelException
public static final void invert(double[] m) throws NoninvertibleModelException
NoninvertibleModelException
public static final void invert(float[] m) throws NoninvertibleModelException
NoninvertibleModelException
public static final double[] createInverse(double m00, double m01, double m02, double m10, double m11, double m12, double m20, double m21, double m22) throws NoninvertibleModelException
NoninvertibleModelException
public static final float[] createInverse(float m00, float m01, float m02, float m10, float m11, float m12, float m20, float m21, float m22) throws NoninvertibleModelException
NoninvertibleModelException
public final void concatenate(Matrix3x3 m)
m
- public final void preConcatenate(Matrix3x3 m)
m
- public final void set(Matrix3x3 m)
public final void reset()
Copyright © 2015–2021 Fiji. All rights reserved.