Quaternion4DType, QuaternionReadable4DTypepublic final class Quaternion4D extends Object implements Quaternion4DType
double-typed quaternions.| Modifier and Type | Class | Description |
|---|---|---|
static class |
Quaternion4D.Builder |
Builds instances of type
Quaternion4D. |
| Modifier and Type | Method | Description |
|---|---|---|
static Quaternion4D.Builder |
builder() |
Creates a builder for
Quaternion4D. |
boolean |
equals(Object another) |
This instance is equal to all instances of
Quaternion4D that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
x, y, z, w. |
static Quaternion4D |
of(double x,
double y,
double z,
double w) |
Construct a new immutable
Quaternion4D instance. |
String |
toString() |
Prints the immutable value
Quaternion4D with attribute values. |
double |
w() |
|
double |
x() |
|
double |
y() |
|
double |
z() |
public double x()
x in interface Quaternion4DTypex in interface QuaternionReadable4DTypex attributepublic double y()
y in interface Quaternion4DTypey in interface QuaternionReadable4DTypey attributepublic double z()
z in interface Quaternion4DTypez in interface QuaternionReadable4DTypez attributepublic double w()
w in interface Quaternion4DTypew in interface QuaternionReadable4DTypew attributepublic boolean equals(Object another)
Quaternion4D that have equal attribute values.public int hashCode()
x, y, z, w.public String toString()
Quaternion4D with attribute values.public static Quaternion4D of(double x, double y, double z, double w)
Quaternion4D 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 Quaternion4D.Builder builder()
Quaternion4D.Copyright © 2017 <code@io7m.com> http://io7m.com