public class SKRotationData extends SKAbstractData
Modifier and Type | Field and Description |
---|---|
protected float |
cos |
protected float |
headingAccuracy |
protected float |
x |
protected float |
y |
protected float |
z |
sensorType, timestamp
Constructor and Description |
---|
SKRotationData(long timestamp,
float x,
float y,
float z)
Initialize the instance
|
SKRotationData(long timestamp,
float x,
float y,
float z,
float cos,
float headingAccuracy)
Initialize the instance
|
Modifier and Type | Method and Description |
---|---|
float |
getCos()
Get cos of the angle of rotation
|
java.lang.String |
getDataInCSV()
Get Rotation sensor data in CSV format
|
float |
getHeadingAccuracy()
Get heading accuracy of rotation data
|
float |
getX()
Get X component of rotation
|
float |
getY()
Get Y component of rotation
|
float |
getZ()
Get Z component of rotation
|
getSensorType, getTimestamp, toString
protected final float x
protected final float y
protected final float z
protected final float cos
protected final float headingAccuracy
public SKRotationData(long timestamp, float x, float y, float z, float cos, float headingAccuracy)
timestamp
- Time in milliseconds (the difference between the current time and midnight, January 1, 1970 UTC)x
- Rotation axis x-component*sin(theta/2)y
- Rotation axis y-component*sin(theta/2)z
- Rotation axis z-component*sin(theta/2)cos
- Cos(theta)
where theta is the angle of rotationheadingAccuracy
- Estimated accuracy in radianspublic SKRotationData(long timestamp, float x, float y, float z)
timestamp
- Time in milliseconds (the difference between the current time and midnight, January 1, 1970 UTC)x
- Rotation axis x-component*sin(theta/2)y
- Rotation axis y-component*sin(theta/2)z
- Rotation axis z-component*sin(theta/2)
where theta is the angle of rotationpublic java.lang.String getDataInCSV()
public float getX()
public float getY()
public float getZ()
public float getCos()
public float getHeadingAccuracy()