Class Matrix4x4D
java.lang.Object
com.io7m.jtensors.core.unparameterized.matrices.Matrix4x4D
- All Implemented Interfaces:
MatrixComputationalType,Matrix4x4DType,MatrixReadable4x4DType,MatrixReadableDType
public final class Matrix4x4D extends java.lang.Object implements Matrix4x4DType
The type of 4x4
double-typed matrices.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMatrix4x4D.BuilderBuilds instances of typeMatrix4x4D. -
Method Summary
Modifier and Type Method Description static Matrix4x4D.Builderbuilder()Creates a builder forMatrix4x4D.static Matrix4x4DcopyOf(Matrix4x4DType instance)Creates an immutable copy of aMatrix4x4DTypevalue.booleanequals(java.lang.Object another)This instance is equal to all instances ofMatrix4x4Dthat have equal attribute values.inthashCode()Computes a hash code from attributes:r0c0,r0c1,r0c2,r0c3,r1c0,r1c1,r1c2,r1c3,r2c0,r2c1,r2c2,r2c3,r3c0,r3c1,r3c2,r3c3.static Matrix4x4Dof(double r0c0, double r0c1, double r0c2, double r0c3, double r1c0, double r1c1, double r1c2, double r1c3, double r2c0, double r2c1, double r2c2, double r2c3, double r3c0, double r3c1, double r3c2, double r3c3)Construct a new immutableMatrix4x4Dinstance.doubler0c0()doubler0c1()doubler0c2()doubler0c3()doubler1c0()doubler1c1()doubler1c2()doubler1c3()doubler2c0()doubler2c1()doubler2c2()doubler2c3()doubler3c0()doubler3c1()doubler3c2()doubler3c3()java.lang.StringtoString()Prints the immutable valueMatrix4x4Dwith attribute values.Matrix4x4DwithR0c0(double value)Copy the current immutable object by setting a value for ther0c0attribute.Matrix4x4DwithR0c1(double value)Copy the current immutable object by setting a value for ther0c1attribute.Matrix4x4DwithR0c2(double value)Copy the current immutable object by setting a value for ther0c2attribute.Matrix4x4DwithR0c3(double value)Copy the current immutable object by setting a value for ther0c3attribute.Matrix4x4DwithR1c0(double value)Copy the current immutable object by setting a value for ther1c0attribute.Matrix4x4DwithR1c1(double value)Copy the current immutable object by setting a value for ther1c1attribute.Matrix4x4DwithR1c2(double value)Copy the current immutable object by setting a value for ther1c2attribute.Matrix4x4DwithR1c3(double value)Copy the current immutable object by setting a value for ther1c3attribute.Matrix4x4DwithR2c0(double value)Copy the current immutable object by setting a value for ther2c0attribute.Matrix4x4DwithR2c1(double value)Copy the current immutable object by setting a value for ther2c1attribute.Matrix4x4DwithR2c2(double value)Copy the current immutable object by setting a value for ther2c2attribute.Matrix4x4DwithR2c3(double value)Copy the current immutable object by setting a value for ther2c3attribute.Matrix4x4DwithR3c0(double value)Copy the current immutable object by setting a value for ther3c0attribute.Matrix4x4DwithR3c1(double value)Copy the current immutable object by setting a value for ther3c1attribute.Matrix4x4DwithR3c2(double value)Copy the current immutable object by setting a value for ther3c2attribute.Matrix4x4DwithR3c3(double value)Copy the current immutable object by setting a value for ther3c3attribute.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.io7m.jtensors.core.unparameterized.matrices.MatrixReadable4x4DType
rowColumn
-
Method Details
-
r0c0
public double r0c0()- Specified by:
r0c0in interfaceMatrix4x4DType- Specified by:
r0c0in interfaceMatrixReadable4x4DType- Returns:
- The value at row 0 column 0
-
r0c1
public double r0c1()- Specified by:
r0c1in interfaceMatrix4x4DType- Specified by:
r0c1in interfaceMatrixReadable4x4DType- Returns:
- The value at row 0 column 1
-
r0c2
public double r0c2()- Specified by:
r0c2in interfaceMatrix4x4DType- Specified by:
r0c2in interfaceMatrixReadable4x4DType- Returns:
- The value at row 0 column 2
-
r0c3
public double r0c3()- Specified by:
r0c3in interfaceMatrix4x4DType- Specified by:
r0c3in interfaceMatrixReadable4x4DType- Returns:
- The value at row 0 column 3
-
r1c0
public double r1c0()- Specified by:
r1c0in interfaceMatrix4x4DType- Specified by:
r1c0in interfaceMatrixReadable4x4DType- Returns:
- The value at row 1 column 0
-
r1c1
public double r1c1()- Specified by:
r1c1in interfaceMatrix4x4DType- Specified by:
r1c1in interfaceMatrixReadable4x4DType- Returns:
- The value at row 1 column 1
-
r1c2
public double r1c2()- Specified by:
r1c2in interfaceMatrix4x4DType- Specified by:
r1c2in interfaceMatrixReadable4x4DType- Returns:
- The value at row 1 column 2
-
r1c3
public double r1c3()- Specified by:
r1c3in interfaceMatrix4x4DType- Specified by:
r1c3in interfaceMatrixReadable4x4DType- Returns:
- The value at row 1 column 3
-
r2c0
public double r2c0()- Specified by:
r2c0in interfaceMatrix4x4DType- Specified by:
r2c0in interfaceMatrixReadable4x4DType- Returns:
- The value at row 2 column 0
-
r2c1
public double r2c1()- Specified by:
r2c1in interfaceMatrix4x4DType- Specified by:
r2c1in interfaceMatrixReadable4x4DType- Returns:
- The value at row 2 column 1
-
r2c2
public double r2c2()- Specified by:
r2c2in interfaceMatrix4x4DType- Specified by:
r2c2in interfaceMatrixReadable4x4DType- Returns:
- The value at row 2 column 2
-
r2c3
public double r2c3()- Specified by:
r2c3in interfaceMatrix4x4DType- Specified by:
r2c3in interfaceMatrixReadable4x4DType- Returns:
- The value at row 2 column 3
-
r3c0
public double r3c0()- Specified by:
r3c0in interfaceMatrix4x4DType- Specified by:
r3c0in interfaceMatrixReadable4x4DType- Returns:
- The value at row 3 column 0
-
r3c1
public double r3c1()- Specified by:
r3c1in interfaceMatrix4x4DType- Specified by:
r3c1in interfaceMatrixReadable4x4DType- Returns:
- The value at row 3 column 1
-
r3c2
public double r3c2()- Specified by:
r3c2in interfaceMatrix4x4DType- Specified by:
r3c2in interfaceMatrixReadable4x4DType- Returns:
- The value at row 3 column 2
-
r3c3
public double r3c3()- Specified by:
r3c3in interfaceMatrix4x4DType- Specified by:
r3c3in interfaceMatrixReadable4x4DType- Returns:
- The value at row 3 column 3
-
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 of 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 of 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 of the
thisobject
-
withR0c3
Copy the current immutable object by setting a value for ther0c3attribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r0c3- Returns:
- A modified copy of 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 of 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 of 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 of the
thisobject
-
withR1c3
Copy the current immutable object by setting a value for ther1c3attribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r1c3- Returns:
- A modified copy of 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 of 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 of 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 of the
thisobject
-
withR2c3
Copy the current immutable object by setting a value for ther2c3attribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r2c3- Returns:
- A modified copy of the
thisobject
-
withR3c0
Copy the current immutable object by setting a value for ther3c0attribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r3c0- Returns:
- A modified copy of the
thisobject
-
withR3c1
Copy the current immutable object by setting a value for ther3c1attribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r3c1- Returns:
- A modified copy of the
thisobject
-
withR3c2
Copy the current immutable object by setting a value for ther3c2attribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r3c2- Returns:
- A modified copy of the
thisobject
-
withR3c3
Copy the current immutable object by setting a value for ther3c3attribute. A value strict bits equality used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for r3c3- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(java.lang.Object another)This instance is equal to all instances ofMatrix4x4Dthat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()Computes a hash code from attributes:r0c0,r0c1,r0c2,r0c3,r1c0,r1c1,r1c2,r1c3,r2c0,r2c1,r2c2,r2c3,r3c0,r3c1,r3c2,r3c3.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()Prints the immutable valueMatrix4x4Dwith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
of
public static Matrix4x4D of(double r0c0, double r0c1, double r0c2, double r0c3, double r1c0, double r1c1, double r1c2, double r1c3, double r2c0, double r2c1, double r2c2, double r2c3, double r3c0, double r3c1, double r3c2, double r3c3)Construct a new immutableMatrix4x4Dinstance.- Parameters:
r0c0- The value for ther0c0attributer0c1- The value for ther0c1attributer0c2- The value for ther0c2attributer0c3- The value for ther0c3attributer1c0- The value for ther1c0attributer1c1- The value for ther1c1attributer1c2- The value for ther1c2attributer1c3- The value for ther1c3attributer2c0- The value for ther2c0attributer2c1- The value for ther2c1attributer2c2- The value for ther2c2attributer2c3- The value for ther2c3attributer3c0- The value for ther3c0attributer3c1- The value for ther3c1attributer3c2- The value for ther3c2attributer3c3- The value for ther3c3attribute- Returns:
- An immutable Matrix4x4D instance
-
copyOf
Creates an immutable copy of aMatrix4x4DTypevalue. 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 Matrix4x4D instance
-
builder
Creates a builder forMatrix4x4D.Matrix4x4D.builder() .setR0c0(double) // requiredr0c0.setR0c1(double) // requiredr0c1.setR0c2(double) // requiredr0c2.setR0c3(double) // requiredr0c3.setR1c0(double) // requiredr1c0.setR1c1(double) // requiredr1c1.setR1c2(double) // requiredr1c2.setR1c3(double) // requiredr1c3.setR2c0(double) // requiredr2c0.setR2c1(double) // requiredr2c1.setR2c2(double) // requiredr2c2.setR2c3(double) // requiredr2c3.setR3c0(double) // requiredr3c0.setR3c1(double) // requiredr3c1.setR3c2(double) // requiredr3c2.setR3c3(double) // requiredr3c3.build();- Returns:
- A new Matrix4x4D builder
-