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