@@ -108,6 +108,10 @@ module Vec =
108
108
let inline z < ^a , ^b when ^a : ( member P_Z : ^b )> ( v : ^a ) =
109
109
( ^a : ( member P_Z : ^b ) v)
110
110
111
+ /// Returns the w-component of the vector v.
112
+ let inline w < ^a , ^b when ^a : ( member P_W : ^b )> ( v : ^a ) =
113
+ ( ^a : ( member P_W : ^b ) v)
114
+
111
115
/// Returns the xy-components of the vector v.
112
116
let inline xy < ^a , ^b when ^a : ( member XY : ^b )> ( v : ^a ) =
113
117
( ^a : ( member XY : ^b ) v)
@@ -182,7 +186,7 @@ module Vec =
182
186
let a : float = dot V3d.One V3d.Zero
183
187
let a : int = dot V3i.One V3i.Zero
184
188
()
185
-
189
+
186
190
let crossWorking () =
187
191
let a : V3d = cross V3d.One V3d.Zero
188
192
let a : V3i = cross V3i.One V3i.Zero
@@ -222,16 +226,17 @@ module Vec =
222
226
let a : V3f = reflect V3f.One V3f.Zero
223
227
let a : V3d = reflect V3d.One V3d.Zero
224
228
()
225
-
229
+
226
230
let refractWorking () =
227
- let a : V3f = refract 0.0 f V3f.One V3f.Zero
228
- let a : V3d = refract 0.0 V3d.One V3d.Zero
231
+ let a : V3f = refract 0.0 f V3f.One V3f.Zero
232
+ let a : V3d = refract 0.0 V3d.One V3d.Zero
229
233
()
230
234
231
235
let swizzlesWorking () =
232
236
let a : float = x V3d.One
233
237
let a : float = y V3d.One
234
238
let a : float = z V3d.One
239
+ let a : float = w V4d.One
235
240
let a : V2d = xy V3d.One
236
241
let a : V2d = yz V3d.One
237
242
let a : V2d = zw V4d.One
0 commit comments