Vector3DType
, VectorReadable2DType
, VectorReadable3DType
, VectorComputationalType
public final class Vector3D extends Object implements Vector3DType
double
-typed vectors.Modifier and Type | Class | Description |
---|---|---|
static class |
Vector3D.Builder |
Builds instances of type
Vector3D . |
Modifier and Type | Method | 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 Vector3DType
x
in interface VectorReadable2DType
x
attributepublic double y()
y
in interface Vector3DType
y
in interface VectorReadable2DType
y
attributepublic double z()
z
in interface Vector3DType
z
in interface VectorReadable3DType
z
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