-
Notifications
You must be signed in to change notification settings - Fork 0
/
VRFrameData.cljs
169 lines (116 loc) · 5.25 KB
/
VRFrameData.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
(ns web.vr.VRFrameData
"The VRFrameData interface of the WebVR API represents all the
needed to render a single frame of a VR scene; constructed by"
(:refer-clojure :exclude []))
(def constructor
"Constructor.
The `web.vr.VRFrameData` constructor creates a VRFrameData object instance.
None.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/VRFrameData`"
js/VRFrameData)
(defn left-projection-matrix
"Property.
The leftProjectionMatrix read-only property of the `web.vr.VRFrameData`
returns a `js.Float32Array` representing a 4x4 matrix that describes
projection to be used for the left eye’s rendering.
`var myLPM = vrFrameDataInstance.leftProjectionMatrix;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/leftProjectionMatrix`"
[this]
(-> this (.-leftProjectionMatrix)))
(defn set-left-projection-matrix!
"Property.
The leftProjectionMatrix read-only property of the `web.vr.VRFrameData`
returns a `js.Float32Array` representing a 4x4 matrix that describes
projection to be used for the left eye’s rendering.
`var myLPM = vrFrameDataInstance.leftProjectionMatrix;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/leftProjectionMatrix`"
[this val]
(aset this "leftProjectionMatrix" val))
(defn left-view-matrix
"Property.
The leftViewMatrix read-only property of the `web.vr.VRFrameData`
returns a `js.Float32Array` representing a 4x4 matrix that describes
view transform to be used for the left eye’s rendering.
`var myLVM = vrFrameDataInstance.leftViewMatrix;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/leftViewMatrix`"
[this]
(-> this (.-leftViewMatrix)))
(defn set-left-view-matrix!
"Property.
The leftViewMatrix read-only property of the `web.vr.VRFrameData`
returns a `js.Float32Array` representing a 4x4 matrix that describes
view transform to be used for the left eye’s rendering.
`var myLVM = vrFrameDataInstance.leftViewMatrix;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/leftViewMatrix`"
[this val]
(aset this "leftViewMatrix" val))
(defn pose
"Property.
The pose read-only property of the `web.vr.VRFrameData` interface
the `web.vr.VRPose` of the `web.media.VRDisplay` at the current
`var myPose = vrFrameDataInstance.pose;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/pose`"
[this]
(-> this (.-pose)))
(defn set-pose!
"Property.
The pose read-only property of the `web.vr.VRFrameData` interface
the `web.vr.VRPose` of the `web.media.VRDisplay` at the current
`var myPose = vrFrameDataInstance.pose;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/pose`"
[this val]
(aset this "pose" val))
(defn right-projection-matrix
"Property.
The rightProjectionMatrix read-only property of the `web.vr.VRFrameData`
returns a `js.Float32Array` representing a 4x4 matrix that describes
projection to be used for the right eye’s rendering.
`var myRPM = vrFrameDataInstance.rightProjectionMatrix;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/rightProjectionMatrix`"
[this]
(-> this (.-rightProjectionMatrix)))
(defn set-right-projection-matrix!
"Property.
The rightProjectionMatrix read-only property of the `web.vr.VRFrameData`
returns a `js.Float32Array` representing a 4x4 matrix that describes
projection to be used for the right eye’s rendering.
`var myRPM = vrFrameDataInstance.rightProjectionMatrix;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/rightProjectionMatrix`"
[this val]
(aset this "rightProjectionMatrix" val))
(defn right-view-matrix
"Property.
The rightViewMatrix read-only property of the `web.vr.VRFrameData`
returns a `js.Float32Array` representing a 4x4 matrix that describes
view transform to be used for the right eye’s rendering.
`var myRVM = vrFrameDataInstance.rightViewMatrix;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/rightViewMatrix`"
[this]
(-> this (.-rightViewMatrix)))
(defn set-right-view-matrix!
"Property.
The rightViewMatrix read-only property of the `web.vr.VRFrameData`
returns a `js.Float32Array` representing a 4x4 matrix that describes
view transform to be used for the right eye’s rendering.
`var myRVM = vrFrameDataInstance.rightViewMatrix;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/rightViewMatrix`"
[this val]
(aset this "rightViewMatrix" val))
(defn timestamp
"Property.
The timestamp read-only property of the `web.vr.VRFrameData`
returns a constantly increasing timestamp value representing
time a frame update occurred.
`var myTimestamp = vrFrameDataInstance.timestamp;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/timestamp`"
[this]
(-> this (.-timestamp)))
(defn set-timestamp!
"Property.
The timestamp read-only property of the `web.vr.VRFrameData`
returns a constantly increasing timestamp value representing
time a frame update occurred.
`var myTimestamp = vrFrameDataInstance.timestamp;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/VRFrameData/timestamp`"
[this val]
(aset this "timestamp" val))