@Generated(value={"Immutables.generator","Vector3DType"}) public final class Vector3D extends Object implements Vector3DType
double-typed vectors.| Modifier and Type | Class and Description |
|---|---|
static class |
Vector3D.Builder
Builds instances of type
Vector3D. |
| Modifier and Type | Method and Description |
|---|---|
static Vector3D.Builder |
builder()
Creates a builder for
Vector3D. |
boolean |
equals(Object another)
This instance is equal to all instances of
Vector3D that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
x, y, z. |
static Vector3D |
of(double x,
double y,
double z)
Construct a new immutable
Vector3D instance. |
String |
toString()
Prints the immutable value
Vector3D with attribute values. |
double |
x() |
double |
y() |
double |
z() |
public double x()
x in interface Vector3DTypex in interface VectorReadable2DTypex attributepublic double y()
y in interface Vector3DTypey in interface VectorReadable2DTypey attributepublic double z()
z in interface Vector3DTypez in interface VectorReadable3DTypez attributepublic boolean equals(Object another)
Vector3D that have equal attribute values.public int hashCode()
x, y, z.public String toString()
Vector3D with attribute values.public static Vector3D of(double x, double y, double z)
Vector3D instance.x - The value for the x attributey - The value for the y attributez - The value for the z attributepublic static Vector3D.Builder builder()
Vector3D.Copyright © 2017 <code@io7m.com> http://io7m.com