/
VRStageParameters.cljs
79 lines (54 loc) · 2.43 KB
/
VRStageParameters.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
(ns web.vr.VRStageParameters
"The VRStageParameters interface of the WebVR API represents the
describing the the stage area for devices that support room-scale"
(:refer-clojure :exclude []))
(defn sitting-to-standing-transform
"Property.
The sittingToStandingTransform read-only property of the `web.vr.VRStageParameters`
contains a matrix that transforms the sitting-space view matrices
`web.vr.VRFrameData` to standing-space.
`var myTransform = vrStageParametersInstance.sittingToStandingTransform;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRStageParameters/sittingToStandingTransform`"
[this]
(-> this (.sittingToStandingTransform)))
(defn set-sitting-to-standing-transform!
"Property.
The sittingToStandingTransform read-only property of the `web.vr.VRStageParameters`
contains a matrix that transforms the sitting-space view matrices
`web.vr.VRFrameData` to standing-space.
`var myTransform = vrStageParametersInstance.sittingToStandingTransform;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRStageParameters/sittingToStandingTransform`"
[this val]
(aset this "sittingToStandingTransform" val))
(defn size-x
"Property.
The sizeX read-only property of the `web.vr.VRStageParameters`
returns the width of the play-area bounds in meters.
`var mySizeX = vrStageParametersInstance.sizeX;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRStageParameters/sizeX`"
[this]
(-> this (.sizeX)))
(defn set-size-x!
"Property.
The sizeX read-only property of the `web.vr.VRStageParameters`
returns the width of the play-area bounds in meters.
`var mySizeX = vrStageParametersInstance.sizeX;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRStageParameters/sizeX`"
[this val]
(aset this "sizeX" val))
(defn size-y
"Property.
The sizeY read-only property of the `web.vr.VRStageParameters`
returns the depth of the play-area bounds in meters.
`var mySizeY = vrStageParametersInstance.sizeY;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRStageParameters/sizeY`"
[this]
(-> this (.sizeY)))
(defn set-size-y!
"Property.
The sizeY read-only property of the `web.vr.VRStageParameters`
returns the depth of the play-area bounds in meters.
`var mySizeY = vrStageParametersInstance.sizeY;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRStageParameters/sizeY`"
[this val]
(aset this "sizeY" val))