Enum Class BodyFrame

java.lang.Object
java.lang.Enum<BodyFrame>
com.here.sdk.core.BodyFrame
All Implemented Interfaces:
Serializable, Comparable<BodyFrame>, Constable

public enum BodyFrame extends Enum<BodyFrame>

The body frame is an object-fixed coordinate system that remains rigidly attached to the device or vehicle. All orientation values are expressed relative to this frame.

  • Enum Constant Details

    • DEVICE_FRAME

      public static final BodyFrame DEVICE_FRAME

      The device's frame, such as the frame of a smartphone, is used. If the device is in portrait mode so that the screen is parallel to the ground, the X (lateral) axis points toward right edge of the screen, the Y (longitudinal) axis points toward the top edge of the screen, and the Z (vertical) axis is perpendicular to the ground and points toward the sky.

    • VEHICLE_FRAME

      public static final BodyFrame VEHICLE_FRAME

      The frame of a vehicle, such as a four wheeled motor vehicle, is used. The X (longitudinal) axis points toward the front the the vehicle, the Y (lateral) axis points toward the left side of the vehicle, and the Z (vertical) axis is perpendicular to the ground and points toward the sky.

  • Method Details

    • values

      public static BodyFrame[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static BodyFrame valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null