Modifier and Type | Method and Description |
---|---|
void |
JoystickInput.onJoystickMoved(Vector2 movement) |
Modifier and Type | Method and Description |
---|---|
Vector2 |
TerrainMaterial.getRepeat() |
Vector2 |
DefaultMaterial3.getRepeat() |
Constructor and Description |
---|
TerrainMaterial(Vector2 repeat) |
Modifier and Type | Method and Description |
---|---|
Vector2 |
Line2.getEndPoint() |
Vector2 |
Rectangle2.getSize() |
Vector2 |
Image2.getSize() |
Vector2 |
Line2.getStartPoint() |
Constructor and Description |
---|
Image2(Vector2 size,
java.lang.String textureName) |
Image2(Vector2 size,
Texture texture) |
Line2(Vector2 startPoint,
Vector2 endPoint,
Color color,
int thickness) |
Quad(Material material,
Vector2 min,
Vector2 max) |
Rectangle2(Vector2 size) |
Rectangle2(Vector2 size,
Color color) |
Modifier and Type | Method and Description |
---|---|
Vector2 |
Texture.getSize() |
Modifier and Type | Method and Description |
---|---|
Image2 |
SceneManager.createImage2(Vector2 size,
java.lang.String textureName) |
Line2 |
SceneManager.createLine2(Vector2 from,
Vector2 to,
Color color,
int thickness) |
Rectangle2 |
SceneManager.createRectangle2(Vector2 size,
Color color) |
Modifier and Type | Method and Description |
---|---|
Vector2 |
Terrain.getGradient(int x,
int y) |
Vector2 |
Terrain.getGradient(Vector2 point) |
Modifier and Type | Method and Description |
---|---|
static Terrain |
Terrain.fromHeightmap(java.lang.String textureName,
DefaultMaterial3 tileMaterial,
Vector2 size,
float maxHeight) |
static Terrain |
Terrain.fromHeightmap(java.lang.String textureName,
TerrainMaterial material,
Vector2 size,
float maxHeight) |
Vector2 |
Terrain.getGradient(Vector2 point) |
float |
Terrain.getHeightAt(Vector2 point) |
Modifier and Type | Method and Description |
---|---|
Vector2 |
Window.getRelativePos()
Get the position of this window relative to the parent
|
Vector2 |
Window.getSize()
Get the size values of this window
|
Modifier and Type | Method and Description |
---|---|
boolean |
Window.onTouchDown(Vector2 point,
MotionEvent event) |
boolean |
Window.onTouchMove(Vector2 point,
MotionEvent event)
React to a touch move event
|
boolean |
Window.onTouchUp(Vector2 point,
MotionEvent event) |
void |
Window.setRelativePos(Vector2 pos)
Set the position of this window relative to its parent
|
void |
Window.setSize(Vector2 size)
Resize this window
|
Modifier and Type | Method and Description |
---|---|
Vector2 |
Joystick.getBasePoint() |
Vector2 |
InputManager.getLastTouch() |
Modifier and Type | Method and Description |
---|---|
void |
IJoystickListener.onJoystickMoved(Vector2 movement)
The joystick was moved. movement is the relative point to the basepoint of the joystick
|
boolean |
TouchListener.onTouchDown(Vector2 point,
MotionEvent event) |
boolean |
Joystick.onTouchDown(Vector2 point,
MotionEvent event)
If the user starts touching an point then initialize the joystick with
the touched position as base state
|
boolean |
ITouchListener.onTouchDown(Vector2 point,
MotionEvent event) |
boolean |
TouchListener.onTouchMove(Vector2 point,
MotionEvent event) |
boolean |
Joystick.onTouchMove(Vector2 point,
MotionEvent event)
Use the joystick
if its currently active
|
boolean |
ITouchListener.onTouchMove(Vector2 point,
MotionEvent event) |
boolean |
TouchListener.onTouchUp(Vector2 point,
MotionEvent event) |
boolean |
Joystick.onTouchUp(Vector2 point,
MotionEvent event)
The user stopped using the joystick, assuming this is the
right touch stopping (considering multi touch)
|
boolean |
ITouchListener.onTouchUp(Vector2 point,
MotionEvent event) |
Modifier and Type | Method and Description |
---|---|
Vector2 |
Vector2.add(Vector2 other)
Adds this vector to another.
|
Vector2 |
Vector2.multiply(float m)
Multiplies all components by a constant.
|
Vector2 |
Vector2.sub(Vector2 other)
Let another vector subtract from this one.
|
Vector2 |
Vector2.vectorTo(Vector2 other)
Creates a vector pointing from this to the passed vector.
|
Modifier and Type | Method and Description |
---|---|
Vector2 |
Vector2.add(Vector2 other)
Adds this vector to another.
|
float |
Vector2.dot(Vector2 other)
Calculates the dot product between two vectors.
|
static boolean |
Rectangle.pointInRectangle(Vector2 pos,
Vector2 size,
Vector2 point) |
Vector2 |
Vector2.sub(Vector2 other)
Let another vector subtract from this one.
|
Vector2 |
Vector2.vectorTo(Vector2 other)
Creates a vector pointing from this to the passed vector.
|
Constructor and Description |
---|
Vector2(Vector2 other) |
Modifier and Type | Method and Description |
---|---|
static Raycast |
Raycast.fromScreen(Vector2 point) |