public class Vec2f
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static Vec2f |
MAX
An immutable vector with
Float.MAX_VALUE as the x and y components. |
static Vec2f |
MIN
An immutable vector with
Float.MIN_VALUE as the x and y components. |
static Vec2f |
NEGATIVE_UNIT_X
An immutable vector with
-1.0F as the x component. |
static Vec2f |
NEGATIVE_UNIT_Y
An immutable vector with
-1.0F as the y component. |
static Vec2f |
ONE
An immutable vector with
1.0F as the x and y components. |
static Vec2f |
UNIT_X
An immutable vector with
1.0F as the x component. |
static Vec2f |
UNIT_Y
An immutable vector with
1.0F as the y component. |
float |
x
The x component of this vector.
|
float |
y
The y component of this vector.
|
static Vec2f |
ZERO
An immutable vector with
0.0F as the x and y components. |
| Constructor and Description |
|---|
Vec2f(float xIn,
float yIn) |
public static final Vec2f ZERO
0.0F as the x and y components.public static final Vec2f ONE
1.0F as the x and y components.public static final Vec2f UNIT_X
1.0F as the x component.public static final Vec2f NEGATIVE_UNIT_X
-1.0F as the x component.public static final Vec2f UNIT_Y
1.0F as the y component.public static final Vec2f NEGATIVE_UNIT_Y
-1.0F as the y component.public static final Vec2f MAX
Float.MAX_VALUE as the x and y components.public static final Vec2f MIN
Float.MIN_VALUE as the x and y components.public final float x
public final float y