Page Summary
-
StreetViewPanoramaOrientation.Builderhelps create custom orientations for Street View panoramas. -
It provides methods to set the bearing (direction) and tilt (angle) of the view.
-
You can build a
StreetViewPanoramaOrientationobject using thebuild()method after setting desired properties. -
The
bearingis measured in degrees clockwise from north, whiletiltranges from -90 (down) to 90 (up). -
Builders can be initialized empty or with a previous
StreetViewPanoramaOrientationobject.
Builds Street View panorama orientations.
Field Summary
| public float | bearing | |
| public float | tilt |
Public Constructor Summary
|
Builder()
Creates an empty builder.
|
|
|
Builder(StreetViewPanoramaOrientation previous)
|
Public Method Summary
| StreetViewPanoramaOrientation.Builder |
bearing(float bearing)
Sets the direction of the orientation, in degrees clockwise from north.
|
| StreetViewPanoramaOrientation |
build()
Builds a
StreetViewPanoramaOrientation. |
| StreetViewPanoramaOrientation.Builder |
tilt(float tilt)
Sets the angle, in degrees, of the orientation This value is restricted to being between -90
(directly down) and 90 (directly up).
|
Inherited Method Summary
Fields
public float bearing
public float tilt
Public Constructors
public Builder ()
Creates an empty builder.
Public Methods
public StreetViewPanoramaOrientation.Builder bearing (float bearing)
Sets the direction of the orientation, in degrees clockwise from north.
Parameters
| bearing |
|---|
public StreetViewPanoramaOrientation.Builder tilt (float tilt)
Sets the angle, in degrees, of the orientation This value is restricted to being between -90 (directly down) and 90 (directly up).
Parameters
| tilt |
|---|