You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extras/jsm/zui.js
+56-12Lines changed: 56 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -138,29 +138,73 @@ export class ZUI {
138
138
/**
139
139
* @name Two.ZUI#clientToSurface
140
140
* @function
141
-
* @param {Number} x - The x position of the user's input.
142
-
* @param {Number} y - The y position of the user's input.
143
-
* @returns {Two.Vector}
144
-
* @description Convert an x, y coordinate in user space into projected space.
141
+
* @param {Two.Vector} a
142
+
* @description Convert an x, y coordinate in the user’s space to the object's projected space. Optionally pass a z property on the object to apply depth.
143
+
* @returns {Object} - An object with x, y, and z components
144
+
* @overloaded
145
145
*/
146
-
clientToSurface(x,y){
146
+
147
+
/**
148
+
* @name Two.ZUI#clientToSurface
149
+
* @param {Number} [a=0] - The x component of position to be transformed.
150
+
* @param {Number} [b=0] - The y component of position to be transformed.
151
+
* @param {Number} [c=1] - The optional z component of position to be transformed.
152
+
* @description Convert an x, y coordinate in the user’s space to the object's projected space. Optionally pass a z property on the object to apply depth.
153
+
* @returns {Object} - An object with x, y, and z components
0 commit comments