T - A phantom type parameterPVector4DType<T>, PVectorReadable2DType<T>, PVectorReadable3DType<T>, PVectorReadable4DType<T>, VectorReadable2DType, VectorReadable3DType, VectorReadable4DType, VectorComputationalTypepublic final class PVector4D<T> extends Object implements PVector4DType<T>
double-typed vectors.| Modifier and Type | Class | Description |
|---|---|---|
static class |
PVector4D.Builder<T> |
Builds instances of type
PVector4D. |
| Modifier and Type | Method | Description |
|---|---|---|
static <T> PVector4D.Builder<T> |
builder() |
Creates a builder for
PVector4D. |
boolean |
equals(Object another) |
This instance is equal to all instances of
PVector4D that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
x, y, z, w. |
static <T> PVector4D<T> |
of(double x,
double y,
double z,
double w) |
Construct a new immutable
PVector4D instance. |
String |
toString() |
Prints the immutable value
PVector4D with attribute values. |
double |
w() |
|
double |
x() |
|
double |
y() |
|
double |
z() |
public double x()
x in interface PVector4DType<T>x in interface VectorReadable2DTypex attributepublic double y()
y in interface PVector4DType<T>y in interface VectorReadable2DTypey attributepublic double z()
z in interface PVector4DType<T>z in interface VectorReadable3DTypez attributepublic double w()
w in interface PVector4DType<T>w in interface VectorReadable4DTypew attributepublic boolean equals(Object another)
PVector4D that have equal attribute values.public int hashCode()
x, y, z, w.public String toString()
PVector4D with attribute values.public static <T> PVector4D<T> of(double x, double y, double z, double w)
PVector4D 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 <T> PVector4D.Builder<T> builder()
PVector4D.T - generic parameter TCopyright © 2017 <code@io7m.com> http://io7m.com