to top
Datalogic APIs
public static class

PoseManager.GravityVector

extends Object
java.lang.Object
   ↳ com.datalogic.device.configuration.PoseManager.GravityVector

Class Overview

Represents a 3D gravity vector with X, Y, and Z components. Used to characterize the orientation of the device in space.

Summary

Fields
public static PoseManager.GravityVector INVALID An invalid gravity vector returned when the PoseManager fails to retrieve a valid gravity vector.
Public Constructors
GravityVector(float x, float y, float z)
Constructor for the gravity vector.
Public Methods
float getX()
Get the X component of the gravity vector.
float getY()
Get the Y component of the gravity vector.
float getZ()
Get the Z component of the gravity vector.
void setX(float x)
Set the X component of the gravity vector.
void setY(float y)
Set the Y component of the gravity vector.
void setZ(float z)
Set the Z component of the gravity vector.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static PoseManager.GravityVector INVALID

Added in revision 47

An invalid gravity vector returned when the PoseManager fails to retrieve a valid gravity vector.

Public Constructors

public GravityVector (float x, float y, float z)

Added in revision 47

Constructor for the gravity vector.

Parameters
x The X component.
y The Y component.
z The Z component.

Public Methods

public float getX ()

Added in revision 47

Get the X component of the gravity vector.

Returns
  • The X component.

public float getY ()

Added in revision 47

Get the Y component of the gravity vector.

Returns
  • The Y component.

public float getZ ()

Added in revision 47

Get the Z component of the gravity vector.

Returns
  • The Z component.

public void setX (float x)

Added in revision 47

Set the X component of the gravity vector.

Parameters
x The new value for X.

public void setY (float y)

Added in revision 47

Set the Y component of the gravity vector.

Parameters
y The new value for Y.

public void setZ (float z)

Added in revision 47

Set the Z component of the gravity vector.

Parameters
z The new value for Z.