Vector4FType
, VectorReadable2FType
, VectorReadable3FType
, VectorReadable4FType
, VectorComputationalType
public final class Vector4F extends Object implements Vector4FType
float
-typed vectors.Modifier and Type | Class | Description |
---|---|---|
static class |
Vector4F.Builder |
Builds instances of type
Vector4F . |
Modifier and Type | Method | Description |
---|---|---|
static Vector4F.Builder |
builder() |
Creates a builder for
Vector4F . |
boolean |
equals(Object another) |
This instance is equal to all instances of
Vector4F that have equal attribute values. |
int |
hashCode() |
Computes a hash code from attributes:
x , y , z , w . |
static Vector4F |
of(float x,
float y,
float z,
float w) |
Construct a new immutable
Vector4F instance. |
String |
toString() |
Prints the immutable value
Vector4F with attribute values. |
float |
w() |
|
float |
x() |
|
float |
y() |
|
float |
z() |
public float x()
x
in interface Vector4FType
x
in interface VectorReadable2FType
x
attributepublic float y()
y
in interface Vector4FType
y
in interface VectorReadable2FType
y
attributepublic float z()
z
in interface Vector4FType
z
in interface VectorReadable3FType
z
attributepublic float w()
w
in interface Vector4FType
w
in interface VectorReadable4FType
w
attributepublic boolean equals(Object another)
Vector4F
that have equal attribute values.public int hashCode()
x
, y
, z
, w
.public String toString()
Vector4F
with attribute values.public static Vector4F of(float x, float y, float z, float w)
Vector4F
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 Vector4F.Builder builder()
Vector4F
.Copyright © 2017 <code@io7m.com> http://io7m.com