| Modifier and Type | Method and Description |
|---|---|
PVector2I<T> |
build()
Builds a new
PVector2I. |
PVector2I.Builder<T> |
from(PVector2IType<T> instance)
Fill a builder with attribute values from the provided
com.io7m.jtensors.core.parameterized.vectors.PVector2IType<T> instance. |
PVector2I.Builder<T> |
from(VectorReadable2IType instance)
Fill a builder with attribute values from the provided
com.io7m.jtensors.core.unparameterized.vectors.VectorReadable2IType instance. |
PVector2I.Builder<T> |
setX(int x)
Initializes the value for the
x attribute. |
PVector2I.Builder<T> |
setY(int y)
Initializes the value for the
y attribute. |
public final PVector2I.Builder<T> from(PVector2IType<T> instance)
com.io7m.jtensors.core.parameterized.vectors.PVector2IType<T> instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final PVector2I.Builder<T> from(VectorReadable2IType instance)
com.io7m.jtensors.core.unparameterized.vectors.VectorReadable2IType instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final PVector2I.Builder<T> setX(int x)
x attribute.x - The value for xthis builder for use in a chained invocationpublic final PVector2I.Builder<T> setY(int y)
y attribute.y - The value for ythis builder for use in a chained invocationpublic PVector2I<T> build()
PVector2I.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com