Skip to content
This repository has been archived by the owner on May 20, 2020. It is now read-only.

Commit

Permalink
modified rotation payload
Browse files Browse the repository at this point in the history
  • Loading branch information
rafe-g committed Jul 19, 2016
1 parent dce2469 commit d4703eb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec-draft.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,18 +242,18 @@ This is how rotation works for each axis:
Example payloads for setting various common rotations:

* Standard portrait
* `{"name": "rotation", "parameters": {"x": 0, "y": 0, "z": 0}}`
* `{"name": "rotation", "x": 0, "y": 0, "z": 0}`
* Portrait face-up
* `{"name": "rotation", "parameters": {"x": 90, "y": 0, "z": 0}}`
* `{"name": "rotation", "x": 90, "y": 0, "z": 0}`
* Portrait face-down
* Bottom of device towards user: `{"name": "rotation", "parameters": {"x": 90, "y": 0, "z": 180}}`
* Top of device towards user: `{"name": "rotation", "parameters": {"x": 270, "y": 0, "z": 0}}`
* Bottom of device towards user: `{"name": "rotation", "x": 90, "y": 0, "z": 180}`
* Top of device towards user: `{"name": "rotation", "x": 270, "y": 0, "z": 0}`
* Portrait, slight away-tilt
* `{"name": "rotation", "parameters": {"x": 15, "y": 0, "z": 0}}`
* `{"name": "rotation", "x": 15, "y": 0, "z": 0}`
* Landscape right
* `{"name": "rotation", "parameters": {"x": 0, "y": 0, "z": 90}}`
* `{"name": "rotation", "x": 0, "y": 0, "z": 90}`
* Landscape left
* `{"name": "rotation", "parameters": {"x": 0, "y": 0, "z": 270}}`
* `{"name": "rotation", "x": 0, "y": 0, "z": 270}`

### Errors

Expand Down

0 comments on commit d4703eb

Please sign in to comment.