Class GeoOrientationUpdate

  • java.lang.Object
    • com.here.sdk.core.GeoOrientationUpdate

  • public final class GeoOrientationUpdate
    extends java.lang.Object

    Describes geodetic orientation update with bearing and tilt. Updating an orientation value can be skipped by setting null in an appriopriate field. For example, if one wants bearing not to be updated set it to null.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Double bearing
      Bearing in degrees.
      java.lang.Double tilt
      Tilt in degrees.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • bearing

        @Nullable
        public final java.lang.Double bearing

        Bearing in degrees. 0 is north up, positive is clockwise. A null value means that bearing is not updated and the current value is kept.

      • tilt

        @Nullable
        public final java.lang.Double tilt

        Tilt in degrees. 0 is perpendicular to earth surface, a positive value turns the camera's nose up and changes the camera's location to ensure that the camera target is not changed. A null value means that tilt is not updated and the current value is kept.

    • Constructor Detail

      • GeoOrientationUpdate

        public GeoOrientationUpdate​(@Nullable
                                    java.lang.Double bearing,
                                    @Nullable
                                    java.lang.Double tilt)
        Parameters:
        bearing -

        Bearing in degrees. When the passed value is null bearing is not updated and the current value is kept. NaN value is converted to null.

        tilt -

        Tilt in degrees. When the passed value is null tilt is not updated and the current value is kept. NaN value is converted to null.

      • GeoOrientationUpdate

        public GeoOrientationUpdate​(@NonNull
                                    GeoOrientation orientation)

        Constructs a new GeoOrientationUpdate instance from a GeoOrientation instance.

        Parameters:
        orientation -

        A GeoOrientation instance used as a source for a GeoOrientationUpdate instance's values.

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object