| Modifier and Type | Method and Description |
|---|---|
Ray2D |
build()
Builds a new
Ray2D. |
Ray2D.Builder |
from(Ray2DType instance)
Fill a builder with attribute values from the provided
Ray2DType instance. |
Ray2D.Builder |
setDirection(com.io7m.jtensors.core.unparameterized.vectors.Vector2D direction)
Initializes the value for the
direction attribute. |
Ray2D.Builder |
setOrigin(com.io7m.jtensors.core.unparameterized.vectors.Vector2D origin)
Initializes the value for the
origin attribute. |
public final Ray2D.Builder from(Ray2DType instance)
Ray2DType instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final Ray2D.Builder setOrigin(com.io7m.jtensors.core.unparameterized.vectors.Vector2D origin)
origin attribute.origin - The value for originthis builder for use in a chained invocationpublic final Ray2D.Builder setDirection(com.io7m.jtensors.core.unparameterized.vectors.Vector2D direction)
direction attribute.direction - The value for directionthis builder for use in a chained invocationpublic Ray2D build()
Ray2D.IllegalStateException - if any required attributes are missingCopyright © 2017 <code@io7m.com> http://io7m.com