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