Vector4DType, VectorReadable2DType, VectorReadable3DType, VectorReadable4DType, VectorComputationalTypepublic final class Vector4D extends Object implements Vector4DType
double-typed vectors.| Modifier and Type | Class | Description |
|---|---|---|
static class |
Vector4D.Builder |
Builds instances of type
Vector4D. |
| Modifier and Type | Method | Description |
|---|---|---|
static Vector4D.Builder |
builder() |
Creates a builder for
Vector4D. |
boolean |
equals(Object another) |
This instance is equal to all instances of
Vector4D that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
x, y, z, w. |
static Vector4D |
of(double x,
double y,
double z,
double w) |
Construct a new immutable
Vector4D instance. |
String |
toString() |
Prints the immutable value
Vector4D with attribute values. |
double |
w() |
|
double |
x() |
|
double |
y() |
|
double |
z() |
public double x()
x in interface Vector4DTypex in interface VectorReadable2DTypex attributepublic double y()
y in interface Vector4DTypey in interface VectorReadable2DTypey attributepublic double z()
z in interface Vector4DTypez in interface VectorReadable3DTypez attributepublic double w()
w in interface Vector4DTypew in interface VectorReadable4DTypew attributepublic boolean equals(Object another)
Vector4D that have equal attribute values.public int hashCode()
x, y, z, w.public String toString()
Vector4D with attribute values.public static Vector4D of(double x, double y, double z, double w)
Vector4D instance.x - The value for the x attributey - The value for the y attributez - The value for the z attributew - The value for the w attributepublic static Vector4D.Builder builder()
Vector4D.Copyright © 2017 <code@io7m.com> http://io7m.com