Class Matrix4x4F.Builder
java.lang.Object
com.io7m.jtensors.core.unparameterized.matrices.Matrix4x4F.Builder
- Enclosing class:
- Matrix4x4F
public static final class Matrix4x4F.Builder
extends java.lang.Object
Builds instances of type
Matrix4x4F.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and Type Method Description Matrix4x4Fbuild()Builds a newMatrix4x4F.Matrix4x4F.Builderfrom(Matrix4x4FType instance)Fill a builder with attribute values from the providedcom.io7m.jtensors.core.unparameterized.matrices.Matrix4x4FTypeinstance.Matrix4x4F.Builderfrom(MatrixReadable4x4FType instance)Fill a builder with attribute values from the providedcom.io7m.jtensors.core.unparameterized.matrices.MatrixReadable4x4FTypeinstance.Matrix4x4F.BuildersetR0c0(float r0c0)Initializes the value for ther0c0attribute.Matrix4x4F.BuildersetR0c1(float r0c1)Initializes the value for ther0c1attribute.Matrix4x4F.BuildersetR0c2(float r0c2)Initializes the value for ther0c2attribute.Matrix4x4F.BuildersetR0c3(float r0c3)Initializes the value for ther0c3attribute.Matrix4x4F.BuildersetR1c0(float r1c0)Initializes the value for ther1c0attribute.Matrix4x4F.BuildersetR1c1(float r1c1)Initializes the value for ther1c1attribute.Matrix4x4F.BuildersetR1c2(float r1c2)Initializes the value for ther1c2attribute.Matrix4x4F.BuildersetR1c3(float r1c3)Initializes the value for ther1c3attribute.Matrix4x4F.BuildersetR2c0(float r2c0)Initializes the value for ther2c0attribute.Matrix4x4F.BuildersetR2c1(float r2c1)Initializes the value for ther2c1attribute.Matrix4x4F.BuildersetR2c2(float r2c2)Initializes the value for ther2c2attribute.Matrix4x4F.BuildersetR2c3(float r2c3)Initializes the value for ther2c3attribute.Matrix4x4F.BuildersetR3c0(float r3c0)Initializes the value for ther3c0attribute.Matrix4x4F.BuildersetR3c1(float r3c1)Initializes the value for ther3c1attribute.Matrix4x4F.BuildersetR3c2(float r3c2)Initializes the value for ther3c2attribute.Matrix4x4F.BuildersetR3c3(float r3c3)Initializes the value for ther3c3attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.jtensors.core.unparameterized.matrices.Matrix4x4FTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.io7m.jtensors.core.unparameterized.matrices.MatrixReadable4x4FTypeinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setR0c0
Initializes the value for ther0c0attribute.- Parameters:
r0c0- The value for r0c0- Returns:
thisbuilder for use in a chained invocation
-
setR0c1
Initializes the value for ther0c1attribute.- Parameters:
r0c1- The value for r0c1- Returns:
thisbuilder for use in a chained invocation
-
setR0c2
Initializes the value for ther0c2attribute.- Parameters:
r0c2- The value for r0c2- Returns:
thisbuilder for use in a chained invocation
-
setR0c3
Initializes the value for ther0c3attribute.- Parameters:
r0c3- The value for r0c3- Returns:
thisbuilder for use in a chained invocation
-
setR1c0
Initializes the value for ther1c0attribute.- Parameters:
r1c0- The value for r1c0- Returns:
thisbuilder for use in a chained invocation
-
setR1c1
Initializes the value for ther1c1attribute.- Parameters:
r1c1- The value for r1c1- Returns:
thisbuilder for use in a chained invocation
-
setR1c2
Initializes the value for ther1c2attribute.- Parameters:
r1c2- The value for r1c2- Returns:
thisbuilder for use in a chained invocation
-
setR1c3
Initializes the value for ther1c3attribute.- Parameters:
r1c3- The value for r1c3- Returns:
thisbuilder for use in a chained invocation
-
setR2c0
Initializes the value for ther2c0attribute.- Parameters:
r2c0- The value for r2c0- Returns:
thisbuilder for use in a chained invocation
-
setR2c1
Initializes the value for ther2c1attribute.- Parameters:
r2c1- The value for r2c1- Returns:
thisbuilder for use in a chained invocation
-
setR2c2
Initializes the value for ther2c2attribute.- Parameters:
r2c2- The value for r2c2- Returns:
thisbuilder for use in a chained invocation
-
setR2c3
Initializes the value for ther2c3attribute.- Parameters:
r2c3- The value for r2c3- Returns:
thisbuilder for use in a chained invocation
-
setR3c0
Initializes the value for ther3c0attribute.- Parameters:
r3c0- The value for r3c0- Returns:
thisbuilder for use in a chained invocation
-
setR3c1
Initializes the value for ther3c1attribute.- Parameters:
r3c1- The value for r3c1- Returns:
thisbuilder for use in a chained invocation
-
setR3c2
Initializes the value for ther3c2attribute.- Parameters:
r3c2- The value for r3c2- Returns:
thisbuilder for use in a chained invocation
-
setR3c3
Initializes the value for ther3c3attribute.- Parameters:
r3c3- The value for r3c3- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newMatrix4x4F.- Returns:
- An immutable instance of Matrix4x4F
- Throws:
java.lang.IllegalStateException- if any required attributes are missing
-