vec3
Type
A three-component vector of f32.
The signature, the sentence and any message are the compiler's own text at commit af54ddad5.
Syntax
interface vec3 { readonly [vecTag]: readonly ['f32', 3] [index: number]: f32 x: f32 y: f32 z: f32 r: f32 g: f32 b: f32 …}The … line stands for 234 more members, the swizzles. A swizzle reads two to four components as a new vector of the same element type. The components come in any order and may repeat, and their letters come from one set, xyzw or rgba.
Examples
path/palette/palette.shade.tspath/ray-tracer/ray-tracer.shade.tsgallery/capsule-corp-namek-class/capsule-corp-namek-class.shade.tsgallery/hillshade-twin/hillshade-twin.shade.tsgallery/julia-twin/julia-twin.shade.tsgallery/kaleidoscope-twin/kaleidoscope-twin.shade.tsgallery/mandelbrot-twin/mandelbrot-twin.shade.tsgallery/path-tracer/path-tracer.shade.tsgallery/plasma-twin/plasma-twin.shade.tsgallery/rt-renderer-class/rt-renderer-class.shade.tsgallery/voronoi-twin/voronoi-twin.shade.tsgallery/fp64-burning-ship-twin/fp64-burning-ship-twin.shade.tsgallery/fp64-checker-plane-twin/fp64-checker-plane-twin.shade.tsgallery/fp64-julia-twin/fp64-julia-twin.shade.tsgallery/fp64-lane-stripes/fp64-lane-stripes.shade.tsgallery/fp64-newton-twin/fp64-newton-twin.shade.tsgallery/array-literal-ramp/array-literal-ramp.shade.tsgallery/array-methods/array-methods.shade.tsgallery/bit-bump/bit-bump.shade.tsgallery/bitfield-bands/bitfield-bands.shade.tsgallery/block-scope/block-scope.shade.tsgallery/class-builder/class-builder.shade.tsgallery/closures/closures.shade.tsgallery/cube-array-gather/cube-array-gather.shade.tsgallery/cube-env/cube-env.shade.tsgallery/cutout/cutout.shade.tsgallery/default-args/default-args.shade.tsgallery/generic-class/generic-class.shade.tsgallery/hello-camera/hello-camera.shade.tsgallery/hello-uniform-struct/hello-uniform-struct.shade.tsgallery/hello-vsin/hello-vsin.shade.tsgallery/mixin-surface/mixin-surface.shade.tsgallery/normal-matrix/normal-matrix.shade.tsgallery/null-values/null-values.shade.tsgallery/packing-bitcast/packing-bitcast.shade.tsgallery/palette-const/palette-const.shade.tsgallery/pick-composite/pick-composite.shade.tsgallery/ray-class/ray-class.shade.tsgallery/shape-inheritance/shape-inheritance.shade.tsgallery/textured-quad/textured-quad.shade.ts