@Generated(value={"Immutables.generator","Ray3DType"}) public final class Ray3D extends Object implements Ray3DType
| Modifier and Type | Class and Description |
|---|---|
static class |
Ray3D.Builder
Builds instances of type
Ray3D. |
| Modifier and Type | Method and Description |
|---|---|
static Ray3D.Builder |
builder()
Creates a builder for
Ray3D. |
static Ray3D |
copyOf(Ray3DType instance)
Creates an immutable copy of a
Ray3DType value. |
com.io7m.jtensors.core.unparameterized.vectors.Vector3D |
direction() |
com.io7m.jtensors.core.unparameterized.vectors.Vector3D |
directionInverse() |
boolean |
equals(Object another)
This instance is equal to all instances of
Ray3D that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
origin, direction. |
static Ray3D |
of(com.io7m.jtensors.core.unparameterized.vectors.Vector3D origin,
com.io7m.jtensors.core.unparameterized.vectors.Vector3D direction)
Construct a new immutable
Ray3D instance. |
com.io7m.jtensors.core.unparameterized.vectors.Vector3D |
origin() |
String |
toString()
Prints the immutable value
Ray3D with attribute values. |
Ray3D |
withDirection(com.io7m.jtensors.core.unparameterized.vectors.Vector3D value)
Copy the current immutable object by setting a value for the
direction attribute. |
Ray3D |
withOrigin(com.io7m.jtensors.core.unparameterized.vectors.Vector3D value)
Copy the current immutable object by setting a value for the
origin attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitintersectsVolumepublic com.io7m.jtensors.core.unparameterized.vectors.Vector3D origin()
public com.io7m.jtensors.core.unparameterized.vectors.Vector3D direction()
public com.io7m.jtensors.core.unparameterized.vectors.Vector3D directionInverse()
directionInverse in interface Ray3DTypepublic final Ray3D withOrigin(com.io7m.jtensors.core.unparameterized.vectors.Vector3D value)
origin attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for originthis objectpublic final Ray3D withDirection(com.io7m.jtensors.core.unparameterized.vectors.Vector3D value)
direction attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for directionthis objectpublic boolean equals(Object another)
Ray3D that have equal attribute values.public int hashCode()
origin, direction.public String toString()
Ray3D with attribute values.public static Ray3D of(com.io7m.jtensors.core.unparameterized.vectors.Vector3D origin, com.io7m.jtensors.core.unparameterized.vectors.Vector3D direction)
Ray3D instance.origin - The value for the origin attributedirection - The value for the direction attributepublic static Ray3D copyOf(Ray3DType instance)
Ray3DType value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static Ray3D.Builder builder()
Ray3D.Copyright © 2017 <code@io7m.com> http://io7m.com