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