Vector4DType
, VectorReadable2DType
, VectorReadable3DType
, VectorReadable4DType
, VectorComputationalType
public 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 Vector4DType
x
in interface VectorReadable2DType
x
attributepublic double y()
y
in interface Vector4DType
y
in interface VectorReadable2DType
y
attributepublic double z()
z
in interface Vector4DType
z
in interface VectorReadable3DType
z
attributepublic double w()
w
in interface Vector4DType
w
in interface VectorReadable4DType
w
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