GMSOrientation.h 1020 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // GMSOrientation.h
  3. // Google Maps SDK for iOS
  4. //
  5. // Copyright 2013 Google Inc.
  6. //
  7. // Usage of this SDK is subject to the Google Maps/Google Earth APIs Terms of
  8. // Service: https://developers.google.com/maps/terms
  9. //
  10. #import <CoreLocation/CoreLocation.h>
  11. /**
  12. * GMSOrientation is a tuple of heading and pitch used to control the viewing direction of a
  13. * GMSPanoramaCamera.
  14. */
  15. typedef struct {
  16. /** The camera heading (horizontal angle) in degrees. */
  17. const CLLocationDirection heading;
  18. /**
  19. * The camera pitch (vertical angle), in degrees from the horizon. The |pitch| range is [-90,90],
  20. * although it is possible that not the full range is supported.
  21. */
  22. const double pitch;
  23. } GMSOrientation;
  24. #ifdef __cplusplus
  25. extern "C" {
  26. #endif
  27. /** Returns a GMSOrientation with the given |heading| and |pitch|. */
  28. inline GMSOrientation GMSOrientationMake(CLLocationDirection heading, double pitch) {
  29. GMSOrientation orientation = {heading, pitch};
  30. return orientation;
  31. }
  32. #ifdef __cplusplus
  33. }
  34. #endif