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