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