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