Class PMatrix3x3F<A,B>
java.lang.Object
com.io7m.jtensors.core.parameterized.matrices.PMatrix3x3F<A,B>
- Type Parameters:
A- A phantom type parameter (possibly representing a source coordinate system)B- A phantom type parameter (possibly representing a target coordinate system)
- All Implemented Interfaces:
MatrixComputationalType, PMatrix3x3FType<A,B>, PMatrixReadable3x3FType<A, B>, MatrixReadable3x3FType, MatrixReadableFType
The type of 3x3
float-typed matrices.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic <A,B> PMatrix3x3F.Builder <A, B> builder()Creates a builder forPMatrix3x3F.static <A,B> PMatrix3x3F <A, B> copyOf(PMatrix3x3FType<A, B> instance) Creates an immutable copy of aPMatrix3x3FTypevalue.booleanThis instance is equal to all instances ofPMatrix3x3Fthat have equal attribute values.inthashCode()Computes a hash code from attributes:r0c0,r0c1,r0c2,r1c0,r1c1,r1c2,r2c0,r2c1,r2c2.static <A,B> PMatrix3x3F <A, B> of(float r0c0, float r0c1, float r0c2, float r1c0, float r1c1, float r1c2, float r2c0, float r2c1, float r2c2) Construct a new immutablePMatrix3x3Finstance.floatr0c0()floatr0c1()floatr0c2()floatr1c0()floatr1c1()floatr1c2()floatr2c0()floatr2c1()floatr2c2()toString()Prints the immutable valuePMatrix3x3Fwith attribute values.final PMatrix3x3F<A, B> withR0c0(float value) Copy the current immutable object by setting a value for ther0c0attribute.final PMatrix3x3F<A, B> withR0c1(float value) Copy the current immutable object by setting a value for ther0c1attribute.final PMatrix3x3F<A, B> withR0c2(float value) Copy the current immutable object by setting a value for ther0c2attribute.final PMatrix3x3F<A, B> withR1c0(float value) Copy the current immutable object by setting a value for ther1c0attribute.final PMatrix3x3F<A, B> withR1c1(float value) Copy the current immutable object by setting a value for ther1c1attribute.final PMatrix3x3F<A, B> withR1c2(float value) Copy the current immutable object by setting a value for ther1c2attribute.final PMatrix3x3F<A, B> withR2c0(float value) Copy the current immutable object by setting a value for ther2c0attribute.final PMatrix3x3F<A, B> withR2c1(float value) Copy the current immutable object by setting a value for ther2c1attribute.final PMatrix3x3F<A, B> withR2c2(float value) Copy the current immutable object by setting a value for ther2c2attribute.Methods inherited from interface MatrixReadable3x3FType
rowColumn
-
Method Details
-
r0c0
public float r0c0()- Specified by:
r0c0in interfaceMatrixReadable3x3FType- Specified by:
r0c0in interfacePMatrix3x3FType<A,B> - Returns:
- The value at row 0 column 0
-
r0c1
public float r0c1()- Specified by:
r0c1in interfaceMatrixReadable3x3FType- Specified by:
r0c1in interfacePMatrix3x3FType<A,B> - Returns:
- The value at row 0 column 1
-
r0c2
public float r0c2()- Specified by:
r0c2in interfaceMatrixReadable3x3FType- Specified by:
r0c2in interfacePMatrix3x3FType<A,B> - Returns:
- The value at row 0 column 2
-
r1c0
public float r1c0()- Specified by:
r1c0in interfaceMatrixReadable3x3FType- Specified by:
r1c0in interfacePMatrix3x3FType<A,B> - Returns:
- The value at row 1 column 0
-
r1c1
public float r1c1()- Specified by:
r1c1in interfaceMatrixReadable3x3FType- Specified by:
r1c1in interfacePMatrix3x3FType<A,B> - Returns:
- The value at row 1 column 1
-
r1c2
public float r1c2()- Specified by:
r1c2in interfaceMatrixReadable3x3FType- Specified by:
r1c2in interfacePMatrix3x3FType<A,B> - Returns:
- The value at row 1 column 2
-
r2c0
public float r2c0()- Specified by:
r2c0in interfaceMatrixReadable3x3FType- Specified by:
r2c0in interfacePMatrix3x3FType<A,B> - Returns:
- The value at row 2 column 0
-
r2c1
public float r2c1()- Specified by:
r2c1in interfaceMatrixReadable3x3FType- Specified by:
r2c1in interfacePMatrix3x3FType<A,B> - Returns:
- The value at row 2 column 1
-
r2c2
public float r2c2()- Specified by:
r2c2in interfaceMatrixReadable3x3FType- Specified by:
r2c2in interfacePMatrix3x3FType<A,B> - 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 <A,B> PMatrix3x3F<A,B> of(float r0c0, float r0c1, float r0c2, float r1c0, float r1c1, float r1c2, float r2c0, float r2c1, float r2c2) Construct a new immutablePMatrix3x3Finstance.- Type Parameters:
A- generic parameter AB- generic parameter B- 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 PMatrix3x3F instance
-
copyOf
Creates an immutable copy of aPMatrix3x3FTypevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Type Parameters:
A- generic parameter AB- generic parameter B- Parameters:
instance- The instance to copy- Returns:
- A copied immutable PMatrix3x3F instance
-
builder
Creates a builder forPMatrix3x3F.PMatrix3x3F.<A, B>builder() .setR0c0(float) // required
r0c0.setR0c1(float) // requiredr0c1.setR0c2(float) // requiredr0c2.setR1c0(float) // requiredr1c0.setR1c1(float) // requiredr1c1.setR1c2(float) // requiredr1c2.setR2c0(float) // requiredr2c0.setR2c1(float) // requiredr2c1.setR2c2(float) // requiredr2c2.build();- Type Parameters:
A- generic parameter AB- generic parameter B- Returns:
- A new PMatrix3x3F builder
-