| Modifier and Type | Field and Description |
|---|---|
static Vector2f |
ONE |
static Vector2f |
UNIT_X |
static Vector2f |
UNIT_Y |
static Vector2f |
ZERO |
| Constructor and Description |
|---|
Vector2f() |
| Modifier and Type | Method and Description |
|---|---|
Vector2f |
abs() |
Vector2f |
add(float v) |
Vector2f |
add(Vector2f v) |
float |
cross(Vector2f v) |
Vector2f |
div(float v) |
Vector2f |
div(Vector2f v) |
float |
dot(Vector2f v) |
boolean |
isNullVector() |
float |
length() |
Vector2f |
lerp(Vector2f dest,
float factor) |
float |
max() |
Vector2f |
mul(float v) |
Vector2f |
mul(Vector2f v) |
Vector2f |
normalize() |
Vector2f |
normalized() |
Vector2f |
rotate(float angle) |
void |
set(float x,
float y) |
void |
set(Vector2f v) |
Vector2f |
sub(float v) |
Vector2f |
sub(Vector2f v) |
Dimension |
toDimension()
Returns a new Dimension instance
width from X-value
height from Y-value
|
public static final Vector2f ZERO
public static final Vector2f UNIT_X
public static final Vector2f UNIT_Y
public static final Vector2f ONE
public float length()
public float dot(Vector2f v)
public float cross(Vector2f v)
public Vector2f normalized()
public Vector2f normalize()
public Vector2f rotate(float angle)
public float max()
public Vector2f add(float v)
public Vector2f sub(float v)
public Vector2f mul(float v)
public Vector2f div(float v)
public Vector2f abs()
public void set(Vector2f v)
public void set(float x,
float y)
public boolean isNullVector()
public Dimension toDimension()
Copyright © 2014. All rights reserved.