Class Matrix3x3D
java.lang.Object
com.io7m.jtensors.core.unparameterized.matrices.Matrix3x3D
- All Implemented Interfaces:
MatrixComputationalType, Matrix3x3DType, MatrixReadable3x3DType, MatrixReadableDType
The type of 3x3
double-typed matrices.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Matrix3x3D.Builderbuilder()Creates a builder forMatrix3x3D.static Matrix3x3DcopyOf(Matrix3x3DType instance) Creates an immutable copy of aMatrix3x3DTypevalue.booleanThis instance is equal to all instances ofMatrix3x3Dthat have equal attribute values.inthashCode()Computes a hash code from attributes:r0c0,r0c1,r0c2,r1c0,r1c1,r1c2,r2c0,r2c1,r2c2.static Matrix3x3Dof(double r0c0, double r0c1, double r0c2, double r1c0, double r1c1, double r1c2, double r2c0, double r2c1, double r2c2) Construct a new immutableMatrix3x3Dinstance.doubler0c0()doubler0c1()doubler0c2()doubler1c0()doubler1c1()doubler1c2()doubler2c0()doubler2c1()doubler2c2()toString()Prints the immutable valueMatrix3x3Dwith attribute values.final Matrix3x3DwithR0c0(double value) Copy the current immutable object by setting a value for ther0c0attribute.final Matrix3x3DwithR0c1(double value) Copy the current immutable object by setting a value for ther0c1attribute.final Matrix3x3DwithR0c2(double value) Copy the current immutable object by setting a value for ther0c2attribute.final Matrix3x3DwithR1c0(double value) Copy the current immutable object by setting a value for ther1c0attribute.final Matrix3x3DwithR1c1(double value) Copy the current immutable object by setting a value for ther1c1attribute.final Matrix3x3DwithR1c2(double value) Copy the current immutable object by setting a value for ther1c2attribute.final Matrix3x3DwithR2c0(double value) Copy the current immutable object by setting a value for ther2c0attribute.final Matrix3x3DwithR2c1(double value) Copy the current immutable object by setting a value for ther2c1attribute.final Matrix3x3DwithR2c2(double value) Copy the current immutable object by setting a value for ther2c2attribute.Methods inherited from interface MatrixReadable3x3DType
rowColumn
-
Method Details
-
r0c0
public double r0c0()- Specified by:
r0c0in interfaceMatrix3x3DType- Specified by:
r0c0in interfaceMatrixReadable3x3DType- Returns:
- The value at row 0 column 0
-
r0c1
public double r0c1()- Specified by:
r0c1in interfaceMatrix3x3DType- Specified by:
r0c1in interfaceMatrixReadable3x3DType- Returns:
- The value at row 0 column 1
-
r0c2
public double r0c2()- Specified by:
r0c2in interfaceMatrix3x3DType- Specified by:
r0c2in interfaceMatrixReadable3x3DType- Returns:
- The value at row 0 column 2
-
r1c0
public double r1c0()- Specified by:
r1c0in interfaceMatrix3x3DType- Specified by:
r1c0in interfaceMatrixReadable3x3DType- Returns:
- The value at row 1 column 0
-
r1c1
public double r1c1()- Specified by:
r1c1in interfaceMatrix3x3DType- Specified by:
r1c1in interfaceMatrixReadable3x3DType- Returns:
- The value at row 1 column 1
-
r1c2
public double r1c2()- Specified by:
r1c2in interfaceMatrix3x3DType- Specified by:
r1c2in interfaceMatrixReadable3x3DType- Returns:
- The value at row 1 column 2
-
r2c0
public double r2c0()- Specified by:
r2c0in interfaceMatrix3x3DType- Specified by:
r2c0in interfaceMatrixReadable3x3DType- Returns:
- The value at row 2 column 0
-
r2c1
public double r2c1()- Specified by:
r2c1in interfaceMatrix3x3DType- Specified by:
r2c1in interfaceMatrixReadable3x3DType- Returns:
- The value at row 2 column 1
-
r2c2
public double r2c2()- Specified by:
r2c2in interfaceMatrix3x3DType- Specified by:
r2c2in interfaceMatrixReadable3x3DType- Returns:
- The value at row 2 column 2
-
withR0c0
Copy the current immutable object by setting a value for ther0c0attribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r0c0- Returns:
- A modified copy or the
thisobject
-
withR0c1
Copy the current immutable object by setting a value for ther0c1attribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r0c1- Returns:
- A modified copy or the
thisobject
-
withR0c2
Copy the current immutable object by setting a value for ther0c2attribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r0c2- Returns:
- A modified copy or the
thisobject
-
withR1c0
Copy the current immutable object by setting a value for ther1c0attribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r1c0- Returns:
- A modified copy or the
thisobject
-
withR1c1
Copy the current immutable object by setting a value for ther1c1attribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r1c1- Returns:
- A modified copy or the
thisobject
-
withR1c2
Copy the current immutable object by setting a value for ther1c2attribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r1c2- Returns:
- A modified copy or the
thisobject
-
withR2c0
Copy the current immutable object by setting a value for ther2c0attribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r2c0- Returns:
- A modified copy or the
thisobject
-
withR2c1
Copy the current immutable object by setting a value for ther2c1attribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r2c1- Returns:
- A modified copy or the
thisobject
-
withR2c2
Copy the current immutable object by setting a value for ther2c2attribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r2c2- Returns:
- A modified copy or the
thisobject
-
equals
-
hashCode
-
toString
-
of
public static Matrix3x3D of(double r0c0, double r0c1, double r0c2, double r1c0, double r1c1, double r1c2, double r2c0, double r2c1, double r2c2) Construct a new immutableMatrix3x3Dinstance.- Parameters:
r0c0- The value for ther0c0attributer0c1- The value for ther0c1attributer0c2- The value for ther0c2attributer1c0- The value for ther1c0attributer1c1- The value for ther1c1attributer1c2- The value for ther1c2attributer2c0- The value for ther2c0attributer2c1- The value for ther2c1attributer2c2- The value for ther2c2attribute- Returns:
- An immutable Matrix3x3D instance
-
copyOf
Creates an immutable copy of aMatrix3x3DTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable Matrix3x3D instance
-
builder
Creates a builder forMatrix3x3D.Matrix3x3D.builder() .setR0c0(double) // required
r0c0.setR0c1(double) // requiredr0c1.setR0c2(double) // requiredr0c2.setR1c0(double) // requiredr1c0.setR1c1(double) // requiredr1c1.setR1c2(double) // requiredr1c2.setR2c0(double) // requiredr2c0.setR2c1(double) // requiredr2c1.setR2c2(double) // requiredr2c2.build();- Returns:
- A new Matrix3x3D builder
-