public static final class PMatrix2x2F.Builder<A,B> extends Object
PMatrix2x2F.
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.
| Modifier and Type | Method and Description |
|---|---|
PMatrix2x2F<A,B> |
build()
Builds a new
PMatrix2x2F. |
PMatrix2x2F.Builder<A,B> |
from(MatrixReadable2x2FType instance)
Fill a builder with attribute values from the provided
com.io7m.jtensors.core.unparameterized.matrices.MatrixReadable2x2FType instance. |
PMatrix2x2F.Builder<A,B> |
from(PMatrix2x2FType<A,B> instance)
Fill a builder with attribute values from the provided
com.io7m.jtensors.core.parameterized.matrices.PMatrix2x2FType<A, B> instance. |
PMatrix2x2F.Builder<A,B> |
setR0c0(float r0c0)
Initializes the value for the
r0c0 attribute. |
PMatrix2x2F.Builder<A,B> |
setR0c1(float r0c1)
Initializes the value for the
r0c1 attribute. |
PMatrix2x2F.Builder<A,B> |
setR1c0(float r1c0)
Initializes the value for the
r1c0 attribute. |
PMatrix2x2F.Builder<A,B> |
setR1c1(float r1c1)
Initializes the value for the
r1c1 attribute. |
public final PMatrix2x2F.Builder<A,B> from(PMatrix2x2FType<A,B> instance)
com.io7m.jtensors.core.parameterized.matrices.PMatrix2x2FType<A, B> instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final PMatrix2x2F.Builder<A,B> from(MatrixReadable2x2FType instance)
com.io7m.jtensors.core.unparameterized.matrices.MatrixReadable2x2FType instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final PMatrix2x2F.Builder<A,B> setR0c0(float r0c0)
r0c0 attribute.r0c0 - The value for r0c0this builder for use in a chained invocationpublic final PMatrix2x2F.Builder<A,B> setR0c1(float r0c1)
r0c1 attribute.r0c1 - The value for r0c1this builder for use in a chained invocationpublic final PMatrix2x2F.Builder<A,B> setR1c0(float r1c0)
r1c0 attribute.r1c0 - The value for r1c0this builder for use in a chained invocationpublic final PMatrix2x2F.Builder<A,B> setR1c1(float r1c1)
r1c1 attribute.r1c1 - The value for r1c1this builder for use in a chained invocationpublic PMatrix2x2F<A,B> build()
PMatrix2x2F.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com