GMSOrientation Struct Reference

GMSOrientation Struct Reference

Overview

GMSOrientation is a tuple of heading and pitch used to control the viewing direction of a GMSPanoramaCamera.

Public Attributes

const CLLocationDirection heading
 The camera heading (horizontal angle) in degrees.
const double pitch
 The camera pitch (vertical angle), in degrees from the horizon.

(Note that these are not member functions.)

static GMSOrientation GMSOrientationMake (CLLocationDirection heading, double pitch)
 Returns a GMSOrientation with the given heading and pitch.

static GMSOrientation GMSOrientationMake ( CLLocationDirection  heading,
double  pitch 
) [related]

Returns a GMSOrientation with the given heading and pitch.


Member Data Documentation

const CLLocationDirection GMSOrientation::heading

The camera heading (horizontal angle) in degrees.

Type used to represent the direction in degrees from 0 to 359.9. True north is 0, east is 90, south is 180, and west is 270.

const double GMSOrientation::pitch

The camera pitch (vertical angle), in degrees from the horizon.

The pitch range is [-90,90], although it is possible that not the full range is supported. A positive value looks up and a negative value looks down.