Quaternion4DType
, QuaternionReadable4DType
public 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 Quaternion4DType
x
in interface QuaternionReadable4DType
x
attributepublic double y()
y
in interface Quaternion4DType
y
in interface QuaternionReadable4DType
y
attributepublic double z()
z
in interface Quaternion4DType
z
in interface QuaternionReadable4DType
z
attributepublic double w()
w
in interface Quaternion4DType
w
in interface QuaternionReadable4DType
w
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