public class UserLocation
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
UserLocation.USERSTATE
The Enum USERSTATE.
|
Constructor and Description |
---|
UserLocation(int ID,
java.lang.String source)
Instantiates a new user location.
|
Modifier and Type | Method and Description |
---|---|
int |
getID()
Gets the id.
|
float[] |
getLocationOfUser()
Gets the location of user.
|
float[] |
getUserBodyLocation()
Gets the user body location.
|
UserLocation.USERSTATE |
getUserState()
Gets the user state.
|
void |
setBothUserHandLocations(float xOne,
float yOne,
float zOne,
float xTwo,
float yTwo,
float zTwo)
Sets the both user hand locations.
|
void |
setSingleUserHandLocation(float x,
float y,
float z)
Sets the single user hand location.
|
void |
setUserBodyLocation(float x,
float y)
Sets the user body location.
|
public UserLocation(int ID, java.lang.String source)
ID
- the idsource
- the sourcepublic int getID()
public float[] getLocationOfUser()
public float[] getUserBodyLocation()
public UserLocation.USERSTATE getUserState()
public void setBothUserHandLocations(float xOne, float yOne, float zOne, float xTwo, float yTwo, float zTwo)
xOne
- the x oneyOne
- the y onezOne
- the z onexTwo
- the x twoyTwo
- the y twozTwo
- the z twopublic void setSingleUserHandLocation(float x, float y, float z)
x
- the xy
- the yz
- the zpublic void setUserBodyLocation(float x, float y)
x
- the xy
- the y