Class Matrix4x4D.Builder
java.lang.Object
com.io7m.jtensors.core.unparameterized.matrices.Matrix4x4D.Builder
- Enclosing class:
- Matrix4x4D
public static final class Matrix4x4D.Builder
extends java.lang.Object
Builds instances of type
Matrix4x4D
.
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 Matrix4x4D
build()
Builds a newMatrix4x4D
.Matrix4x4D.Builder
from(Matrix4x4DType instance)
Fill a builder with attribute values from the providedcom.io7m.jtensors.core.unparameterized.matrices.Matrix4x4DType
instance.Matrix4x4D.Builder
from(MatrixReadable4x4DType instance)
Fill a builder with attribute values from the providedcom.io7m.jtensors.core.unparameterized.matrices.MatrixReadable4x4DType
instance.Matrix4x4D.Builder
setR0c0(double r0c0)
Initializes the value for ther0c0
attribute.Matrix4x4D.Builder
setR0c1(double r0c1)
Initializes the value for ther0c1
attribute.Matrix4x4D.Builder
setR0c2(double r0c2)
Initializes the value for ther0c2
attribute.Matrix4x4D.Builder
setR0c3(double r0c3)
Initializes the value for ther0c3
attribute.Matrix4x4D.Builder
setR1c0(double r1c0)
Initializes the value for ther1c0
attribute.Matrix4x4D.Builder
setR1c1(double r1c1)
Initializes the value for ther1c1
attribute.Matrix4x4D.Builder
setR1c2(double r1c2)
Initializes the value for ther1c2
attribute.Matrix4x4D.Builder
setR1c3(double r1c3)
Initializes the value for ther1c3
attribute.Matrix4x4D.Builder
setR2c0(double r2c0)
Initializes the value for ther2c0
attribute.Matrix4x4D.Builder
setR2c1(double r2c1)
Initializes the value for ther2c1
attribute.Matrix4x4D.Builder
setR2c2(double r2c2)
Initializes the value for ther2c2
attribute.Matrix4x4D.Builder
setR2c3(double r2c3)
Initializes the value for ther2c3
attribute.Matrix4x4D.Builder
setR3c0(double r3c0)
Initializes the value for ther3c0
attribute.Matrix4x4D.Builder
setR3c1(double r3c1)
Initializes the value for ther3c1
attribute.Matrix4x4D.Builder
setR3c2(double r3c2)
Initializes the value for ther3c2
attribute.Matrix4x4D.Builder
setR3c3(double r3c3)
Initializes the value for ther3c3
attribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.io7m.jtensors.core.unparameterized.matrices.MatrixReadable4x4DType
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.io7m.jtensors.core.unparameterized.matrices.Matrix4x4DType
instance.- Parameters:
instance
- The instance from which to copy values- Returns:
this
builder for use in a chained invocation
-
setR0c0
Initializes the value for ther0c0
attribute.- Parameters:
r0c0
- The value for r0c0- Returns:
this
builder for use in a chained invocation
-
setR0c1
Initializes the value for ther0c1
attribute.- Parameters:
r0c1
- The value for r0c1- Returns:
this
builder for use in a chained invocation
-
setR0c2
Initializes the value for ther0c2
attribute.- Parameters:
r0c2
- The value for r0c2- Returns:
this
builder for use in a chained invocation
-
setR0c3
Initializes the value for ther0c3
attribute.- Parameters:
r0c3
- The value for r0c3- Returns:
this
builder for use in a chained invocation
-
setR1c0
Initializes the value for ther1c0
attribute.- Parameters:
r1c0
- The value for r1c0- Returns:
this
builder for use in a chained invocation
-
setR1c1
Initializes the value for ther1c1
attribute.- Parameters:
r1c1
- The value for r1c1- Returns:
this
builder for use in a chained invocation
-
setR1c2
Initializes the value for ther1c2
attribute.- Parameters:
r1c2
- The value for r1c2- Returns:
this
builder for use in a chained invocation
-
setR1c3
Initializes the value for ther1c3
attribute.- Parameters:
r1c3
- The value for r1c3- Returns:
this
builder for use in a chained invocation
-
setR2c0
Initializes the value for ther2c0
attribute.- Parameters:
r2c0
- The value for r2c0- Returns:
this
builder for use in a chained invocation
-
setR2c1
Initializes the value for ther2c1
attribute.- Parameters:
r2c1
- The value for r2c1- Returns:
this
builder for use in a chained invocation
-
setR2c2
Initializes the value for ther2c2
attribute.- Parameters:
r2c2
- The value for r2c2- Returns:
this
builder for use in a chained invocation
-
setR2c3
Initializes the value for ther2c3
attribute.- Parameters:
r2c3
- The value for r2c3- Returns:
this
builder for use in a chained invocation
-
setR3c0
Initializes the value for ther3c0
attribute.- Parameters:
r3c0
- The value for r3c0- Returns:
this
builder for use in a chained invocation
-
setR3c1
Initializes the value for ther3c1
attribute.- Parameters:
r3c1
- The value for r3c1- Returns:
this
builder for use in a chained invocation
-
setR3c2
Initializes the value for ther3c2
attribute.- Parameters:
r3c2
- The value for r3c2- Returns:
this
builder for use in a chained invocation
-
setR3c3
Initializes the value for ther3c3
attribute.- Parameters:
r3c3
- The value for r3c3- Returns:
this
builder for use in a chained invocation
-
build
Builds a newMatrix4x4D
.- Returns:
- An immutable instance of Matrix4x4D
- Throws:
java.lang.IllegalStateException
- if any required attributes are missing
-