Skip to content

v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:580

Interface representing its WGSL vector type counterpart: vec4f or vec4. A vector with 4 elements of type f32

  • Tuple4<number>.Swizzle4<v2f, v3f, v4f>.vecInfixNotation<v4f>

[n: number]: number

readonly [$internal]: true

Defined in: packages/typegpu/src/data/wgslTypes.ts:582


readonly [unscopables]: object

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:97

Is an object whose properties have the value ‘true’ when they will be absent when used in a ‘with’ statement.

[key: number]: undefined | boolean

optional [iterator]: boolean

readonly optional [unscopables]: boolean

Is an object whose properties have the value ‘true’ when they will be absent when used in a ‘with’ statement.

optional at: boolean

optional concat: boolean

optional copyWithin: boolean

optional entries: boolean

optional every: boolean

optional fill: boolean

optional filter: boolean

optional find: boolean

optional findIndex: boolean

optional findLast: boolean

optional findLastIndex: boolean

optional flat: boolean

optional flatMap: boolean

optional forEach: boolean

optional includes: boolean

optional indexOf: boolean

optional join: boolean

optional keys: boolean

optional lastIndexOf: boolean

optional length: boolean

Gets or sets the length of the array. This is a number one higher than the highest index in the array.

optional map: boolean

optional pop: boolean

optional push: boolean

optional reduce: boolean

optional reduceRight: boolean

optional reverse: boolean

optional shift: boolean

optional slice: boolean

optional some: boolean

optional sort: boolean

optional splice: boolean

optional toLocaleString: boolean

optional toReversed: boolean

optional toSorted: boolean

optional toSpliced: boolean

optional toString: boolean

optional unshift: boolean

optional values: boolean

optional with: boolean

Tuple4.[unscopables]


0: number

Tuple4.0


1: number

Tuple4.1


2: number

Tuple4.2


3: number

Tuple4.3


readonly kind: "vec4f"

Defined in: packages/typegpu/src/data/wgslTypes.ts:584

use to distinguish between vectors of the same size on the type level


length: 4

Tuple4.length


w: number

Defined in: packages/typegpu/src/data/wgslTypes.ts:588


readonly ww: v2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:258

Swizzle4.ww


readonly www: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:290

Swizzle4.www


readonly wwww: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:436

Swizzle4.wwww


readonly wwwx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:433

Swizzle4.wwwx


readonly wwwy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:434

Swizzle4.wwwy


readonly wwwz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:435

Swizzle4.wwwz


readonly wwx: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:287

Swizzle4.wwx


readonly wwxw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:429

Swizzle4.wwxw


readonly wwxx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:426

Swizzle4.wwxx


readonly wwxy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:427

Swizzle4.wwxy


readonly wwxz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:428

Swizzle4.wwxz


readonly wwy: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:288

Swizzle4.wwy


readonly wwyy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:430

Swizzle4.wwyy


readonly wwyz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:431

Swizzle4.wwyz


readonly wwz: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:289

Swizzle4.wwz


readonly wwzz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:432

Swizzle4.wwzz


readonly wx: v2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:255

Swizzle4.wx


readonly wxww: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:402

Swizzle4.wxww


readonly wxwx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:399

Swizzle4.wxwx


readonly wxwy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:400

Swizzle4.wxwy


readonly wxwz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:401

Swizzle4.wxwz


readonly wxx: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:281

Swizzle4.wxx


readonly wxxw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:390

Swizzle4.wxxw


readonly wxxx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:387

Swizzle4.wxxx


readonly wxxy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:388

Swizzle4.wxxy


readonly wxxz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:389

Swizzle4.wxxz


readonly wxy: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:283

Swizzle4.wxy


readonly wxyw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:394

Swizzle4.wxyw


readonly wxyx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:391

Swizzle4.wxyx


readonly wxyy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:392

Swizzle4.wxyy


readonly wxyz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:393

Swizzle4.wxyz


readonly wxz: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:282

Swizzle4.wxz


readonly wxzw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:398

Swizzle4.wxzw


readonly wxzx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:395

Swizzle4.wxzx


readonly wxzy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:396

Swizzle4.wxzy


readonly wxzz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:397

Swizzle4.wxzz


readonly wy: v2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:256

Swizzle4.wy


readonly wyww: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:413

Swizzle4.wyww


readonly wywx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:410

Swizzle4.wywx


readonly wywy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:411

Swizzle4.wywy


readonly wywz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:412

Swizzle4.wywz


readonly wyxw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:406

Swizzle4.wyxw


readonly wyxx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:403

Swizzle4.wyxx


readonly wyxy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:404

Swizzle4.wyxy


readonly wyxz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:405

Swizzle4.wyxz


readonly wyy: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:284

Swizzle4.wyy


readonly wyyy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:407

Swizzle4.wyyy


readonly wyyz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:408

Swizzle4.wyyz


readonly wyz: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:285

Swizzle4.wyz


readonly wyzw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:409

Swizzle4.wyzw


readonly wz: v2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:257

Swizzle4.wz


readonly wzww: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:425

Swizzle4.wzww


readonly wzwx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:422

Swizzle4.wzwx


readonly wzwy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:423

Swizzle4.wzwy


readonly wzwz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:424

Swizzle4.wzwz


readonly wzxw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:417

Swizzle4.wzxw


readonly wzxx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:414

Swizzle4.wzxx


readonly wzxy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:415

Swizzle4.wzxy


readonly wzxz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:416

Swizzle4.wzxz


readonly wzyy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:418

Swizzle4.wzyy


readonly wzyz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:419

Swizzle4.wzyz


readonly wzz: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:286

Swizzle4.wzz


readonly wzzw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:421

Swizzle4.wzzw


readonly wzzy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:420

Swizzle4.wzzy


x: number

Defined in: packages/typegpu/src/data/wgslTypes.ts:585


readonly xww: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:266

Swizzle4.xww


readonly xwww: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:322

Swizzle4.xwww


readonly xwwx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:319

Swizzle4.xwwx


readonly xwwy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:320

Swizzle4.xwwy


readonly xwwz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:321

Swizzle4.xwwz


readonly xwx: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:263

Swizzle4.xwx


readonly xwxx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:313

Swizzle4.xwxx


readonly xwxy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:314

Swizzle4.xwxy


readonly xwxz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:315

Swizzle4.xwxz


readonly xwy: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:264

Swizzle4.xwy


readonly xwyy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:316

Swizzle4.xwyy


readonly xwyz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:317

Swizzle4.xwyz


readonly xwz: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:265

Swizzle4.xwz


readonly xwzz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:318

Swizzle4.xwzz


readonly xx: v2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:126

Swizzle4.xx


readonly xxw: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:260

Swizzle4.xxw


readonly xxww: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:298

Swizzle4.xxww


readonly xxwx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:295

Swizzle4.xxwx


readonly xxwy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:296

Swizzle4.xxwy


readonly xxwz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:297

Swizzle4.xxwz


readonly xxx: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:131

Swizzle4.xxx


readonly xxxw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:292

Swizzle4.xxxw


readonly xxxx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:140

Swizzle4.xxxx


readonly xxxy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:141

Swizzle4.xxxy


readonly xxxz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:185

Swizzle4.xxxz


readonly xxy: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:132

Swizzle4.xxy


readonly xxyw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:293

Swizzle4.xxyw


readonly xxyx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:142

Swizzle4.xxyx


readonly xxyy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:143

Swizzle4.xxyy


readonly xxyz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:186

Swizzle4.xxyz


readonly xxz: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:165

Swizzle4.xxz


readonly xxzw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:294

Swizzle4.xxzw


readonly xxzx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:187

Swizzle4.xxzx


readonly xxzy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:188

Swizzle4.xxzy


readonly xxzz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:189

Swizzle4.xxzz


readonly xy: v2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:127

Swizzle4.xy


readonly xyw: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:261

Swizzle4.xyw


readonly xyww: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:305

Swizzle4.xyww


readonly xywx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:302

Swizzle4.xywx


readonly xywy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:303

Swizzle4.xywy


readonly xywz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:304

Swizzle4.xywz


readonly xyx: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:133

Swizzle4.xyx


readonly xyxw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:299

Swizzle4.xyxw


readonly xyxx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:144

Swizzle4.xyxx


readonly xyxy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:145

Swizzle4.xyxy


readonly xyxz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:190

Swizzle4.xyxz


readonly xyy: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:134

Swizzle4.xyy


readonly xyyw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:300

Swizzle4.xyyw


readonly xyyx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:146

Swizzle4.xyyx


readonly xyyy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:147

Swizzle4.xyyy


readonly xyyz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:191

Swizzle4.xyyz


readonly xyz: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:166

Swizzle4.xyz


readonly xyzw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:301

Swizzle4.xyzw


readonly xyzx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:192

Swizzle4.xyzx


readonly xyzy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:193

Swizzle4.xyzy


readonly xyzz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:194

Swizzle4.xyzz


readonly xz: v2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:159

Swizzle4.xz


readonly xzw: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:262

Swizzle4.xzw


readonly xzww: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:312

Swizzle4.xzww


readonly xzwx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:309

Swizzle4.xzwx


readonly xzwy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:310

Swizzle4.xzwy


readonly xzwz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:311

Swizzle4.xzwz


readonly xzx: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:167

Swizzle4.xzx


readonly xzxw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:306

Swizzle4.xzxw


readonly xzxx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:195

Swizzle4.xzxx


readonly xzxy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:196

Swizzle4.xzxy


readonly xzxz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:197

Swizzle4.xzxz


readonly xzy: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:168

Swizzle4.xzy


readonly xzyw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:307

Swizzle4.xzyw


readonly xzyx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:198

Swizzle4.xzyx


readonly xzyy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:199

Swizzle4.xzyy


readonly xzyz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:200

Swizzle4.xzyz


readonly xzz: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:169

Swizzle4.xzz


readonly xzzw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:308

Swizzle4.xzzw


readonly xzzx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:201

Swizzle4.xzzx


readonly xzzy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:202

Swizzle4.xzzy


readonly xzzz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:203

Swizzle4.xzzz


y: number

Defined in: packages/typegpu/src/data/wgslTypes.ts:586


readonly yw: v2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:253

Swizzle4.yw


readonly yww: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:273

Swizzle4.yww


readonly ywww: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:354

Swizzle4.ywww


readonly ywwx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:351

Swizzle4.ywwx


readonly ywwy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:352

Swizzle4.ywwy


readonly ywwz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:353

Swizzle4.ywwz


readonly ywx: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:270

Swizzle4.ywx


readonly ywxw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:347

Swizzle4.ywxw


readonly ywxx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:344

Swizzle4.ywxx


readonly ywxy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:345

Swizzle4.ywxy


readonly ywxz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:346

Swizzle4.ywxz


readonly ywy: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:271

Swizzle4.ywy


readonly ywyy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:348

Swizzle4.ywyy


readonly ywyz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:349

Swizzle4.ywyz


readonly ywz: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:272

Swizzle4.ywz


readonly ywzz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:350

Swizzle4.ywzz


readonly yx: v2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:128

Swizzle4.yx


readonly yxw: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:267

Swizzle4.yxw


readonly yxww: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:329

Swizzle4.yxww


readonly yxwx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:326

Swizzle4.yxwx


readonly yxwy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:327

Swizzle4.yxwy


readonly yxwz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:328

Swizzle4.yxwz


readonly yxx: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:135

Swizzle4.yxx


readonly yxxw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:323

Swizzle4.yxxw


readonly yxxx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:148

Swizzle4.yxxx


readonly yxxy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:149

Swizzle4.yxxy


readonly yxxz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:204

Swizzle4.yxxz


readonly yxy: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:136

Swizzle4.yxy


readonly yxyw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:324

Swizzle4.yxyw


readonly yxyx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:150

Swizzle4.yxyx


readonly yxyy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:151

Swizzle4.yxyy


readonly yxyz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:205

Swizzle4.yxyz


readonly yxz: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:170

Swizzle4.yxz


readonly yxzw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:325

Swizzle4.yxzw


readonly yxzx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:206

Swizzle4.yxzx


readonly yxzy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:207

Swizzle4.yxzy


readonly yxzz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:208

Swizzle4.yxzz


readonly yy: v2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:129

Swizzle4.yy


readonly yyw: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:268

Swizzle4.yyw


readonly yyww: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:336

Swizzle4.yyww


readonly yywx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:333

Swizzle4.yywx


readonly yywy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:334

Swizzle4.yywy


readonly yywz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:335

Swizzle4.yywz


readonly yyx: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:137

Swizzle4.yyx


readonly yyxw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:330

Swizzle4.yyxw


readonly yyxx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:152

Swizzle4.yyxx


readonly yyxy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:153

Swizzle4.yyxy


readonly yyxz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:209

Swizzle4.yyxz


readonly yyy: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:138

Swizzle4.yyy


readonly yyyw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:331

Swizzle4.yyyw


readonly yyyx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:154

Swizzle4.yyyx


readonly yyyy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:155

Swizzle4.yyyy


readonly yyyz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:210

Swizzle4.yyyz


readonly yyz: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:171

Swizzle4.yyz


readonly yyzw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:332

Swizzle4.yyzw


readonly yyzx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:211

Swizzle4.yyzx


readonly yyzy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:212

Swizzle4.yyzy


readonly yyzz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:213

Swizzle4.yyzz


readonly yz: v2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:160

Swizzle4.yz


readonly yzw: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:269

Swizzle4.yzw


readonly yzww: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:343

Swizzle4.yzww


readonly yzwx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:340

Swizzle4.yzwx


readonly yzwy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:341

Swizzle4.yzwy


readonly yzwz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:342

Swizzle4.yzwz


readonly yzx: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:172

Swizzle4.yzx


readonly yzxw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:337

Swizzle4.yzxw


readonly yzxx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:214

Swizzle4.yzxx


readonly yzxy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:215

Swizzle4.yzxy


readonly yzxz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:216

Swizzle4.yzxz


readonly yzy: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:173

Swizzle4.yzy


readonly yzyw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:338

Swizzle4.yzyw


readonly yzyx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:217

Swizzle4.yzyx


readonly yzyy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:218

Swizzle4.yzyy


readonly yzyz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:219

Swizzle4.yzyz


readonly yzz: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:174

Swizzle4.yzz


readonly yzzw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:339

Swizzle4.yzzw


readonly yzzx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:220

Swizzle4.yzzx


readonly yzzy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:221

Swizzle4.yzzy


readonly yzzz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:222

Swizzle4.yzzz


z: number

Defined in: packages/typegpu/src/data/wgslTypes.ts:587


readonly zw: v2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:254

Swizzle4.zw


readonly zww: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:280

Swizzle4.zww


readonly zwww: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:386

Swizzle4.zwww


readonly zwwx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:383

Swizzle4.zwwx


readonly zwwy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:384

Swizzle4.zwwy


readonly zwwz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:385

Swizzle4.zwwz


readonly zwx: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:277

Swizzle4.zwx


readonly zwxw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:379

Swizzle4.zwxw


readonly zwxx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:376

Swizzle4.zwxx


readonly zwxy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:377

Swizzle4.zwxy


readonly zwxz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:378

Swizzle4.zwxz


readonly zwy: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:278

Swizzle4.zwy


readonly zwyy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:380

Swizzle4.zwyy


readonly zwyz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:381

Swizzle4.zwyz


readonly zwz: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:279

Swizzle4.zwz


readonly zwzz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:382

Swizzle4.zwzz


readonly zx: v2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:161

Swizzle4.zx


readonly zxw: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:274

Swizzle4.zxw


readonly zxww: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:361

Swizzle4.zxww


readonly zxwx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:358

Swizzle4.zxwx


readonly zxwy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:359

Swizzle4.zxwy


readonly zxwz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:360

Swizzle4.zxwz


readonly zxx: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:175

Swizzle4.zxx


readonly zxxw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:355

Swizzle4.zxxw


readonly zxxx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:223

Swizzle4.zxxx


readonly zxxy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:224

Swizzle4.zxxy


readonly zxxz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:225

Swizzle4.zxxz


readonly zxy: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:176

Swizzle4.zxy


readonly zxyw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:356

Swizzle4.zxyw


readonly zxyx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:226

Swizzle4.zxyx


readonly zxyy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:227

Swizzle4.zxyy


readonly zxyz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:228

Swizzle4.zxyz


readonly zxz: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:177

Swizzle4.zxz


readonly zxzw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:357

Swizzle4.zxzw


readonly zxzx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:229

Swizzle4.zxzx


readonly zxzy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:230

Swizzle4.zxzy


readonly zxzz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:231

Swizzle4.zxzz


readonly zy: v2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:162

Swizzle4.zy


readonly zyw: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:275

Swizzle4.zyw


readonly zyww: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:368

Swizzle4.zyww


readonly zywx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:365

Swizzle4.zywx


readonly zywy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:366

Swizzle4.zywy


readonly zywz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:367

Swizzle4.zywz


readonly zyx: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:178

Swizzle4.zyx


readonly zyxw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:362

Swizzle4.zyxw


readonly zyxx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:232

Swizzle4.zyxx


readonly zyxy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:233

Swizzle4.zyxy


readonly zyxz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:234

Swizzle4.zyxz


readonly zyy: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:179

Swizzle4.zyy


readonly zyyw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:363

Swizzle4.zyyw


readonly zyyx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:235

Swizzle4.zyyx


readonly zyyy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:236

Swizzle4.zyyy


readonly zyyz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:237

Swizzle4.zyyz


readonly zyz: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:180

Swizzle4.zyz


readonly zyzw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:364

Swizzle4.zyzw


readonly zyzx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:238

Swizzle4.zyzx


readonly zyzy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:239

Swizzle4.zyzy


readonly zyzz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:240

Swizzle4.zyzz


readonly zz: v2f

Defined in: packages/typegpu/src/data/wgslTypes.ts:163

Swizzle4.zz


readonly zzw: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:276

Swizzle4.zzw


readonly zzww: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:375

Swizzle4.zzww


readonly zzwx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:372

Swizzle4.zzwx


readonly zzwy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:373

Swizzle4.zzwy


readonly zzwz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:374

Swizzle4.zzwz


readonly zzx: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:181

Swizzle4.zzx


readonly zzxw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:369

Swizzle4.zzxw


readonly zzxx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:241

Swizzle4.zzxx


readonly zzxy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:242

Swizzle4.zzxy


readonly zzxz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:243

Swizzle4.zzxz


readonly zzy: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:182

Swizzle4.zzy


readonly zzyw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:370

Swizzle4.zzyw


readonly zzyx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:244

Swizzle4.zzyx


readonly zzyy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:245

Swizzle4.zzyy


readonly zzyz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:246

Swizzle4.zzyz


readonly zzz: v3f

Defined in: packages/typegpu/src/data/wgslTypes.ts:183

Swizzle4.zzz


readonly zzzw: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:371

Swizzle4.zzzw


readonly zzzx: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:247

Swizzle4.zzzx


readonly zzzy: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:248

Swizzle4.zzzy


readonly zzzz: v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:249

Swizzle4.zzzz

[iterator](): ArrayIterator<number>

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.iterable.d.ts:78

Iterator

ArrayIterator<number>

Tuple4.[iterator]


add(other): v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:51

number

v4f

vecInfixNotation.add

add(other): v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:52

v4f

v4f

vecInfixNotation.add


at(index): undefined | number

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2022.array.d.ts:24

Returns the item located at the specified index.

number

The zero-based index of the desired code unit. A negative index will count back from the last item.

undefined | number

Tuple4.at


concat(…items): number[]

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1350

Combines two or more arrays. This method returns a new array without modifying any existing arrays.

ConcatArray<number>[]

Additional arrays and/or items to add to the end of the array.

number[]

Tuple4.concat

concat(…items): number[]

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1356

Combines two or more arrays. This method returns a new array without modifying any existing arrays.

…(number | ConcatArray<number>)[]

Additional arrays and/or items to add to the end of the array.

number[]

Tuple4.concat


copyWithin(target, start, end?): this

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.core.d.ts:62

Returns the this object after copying a section of the array identified by start and end to the same array starting at position target

number

If target is negative, it is treated as length+target where length is the length of the array.

number

If start is negative, it is treated as length+start. If end is negative, it is treated as length+end.

number

If not specified, length of the this object is used as its default value.

this

Tuple4.copyWithin


div(other): v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:61

number

v4f

vecInfixNotation.div

div(other): v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:62

v4f

v4f

vecInfixNotation.div


entries(): ArrayIterator<[number, number]>

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.iterable.d.ts:83

Returns an iterable of key, value pairs for every entry in the array

ArrayIterator<[number, number]>

Tuple4.entries


every<S>(predicate, thisArg?): this is S[]

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1433

Determines whether all the members of an array satisfy the specified test.

S extends number

(value, index, array) => value is S

A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.

any

An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

this is S[]

Tuple4.every

every(predicate, thisArg?): boolean

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1442

Determines whether all the members of an array satisfy the specified test.

(value, index, array) => unknown

A function that accepts up to three arguments. The every method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value false, or until the end of the array.

any

An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

boolean

Tuple4.every


fill(value, start?, end?): this

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.core.d.ts:51

Changes all array elements from start to end index to a static value and returns the modified array

number

value to fill array section with

number

index to start filling the array at. If start is negative, it is treated as length+start where length is the length of the array.

number

index to stop filling the array at. If end is negative, it is treated as length+end.

this

Tuple4.fill


filter<S>(predicate, thisArg?): S[]

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1469

Returns the elements of an array that meet the condition specified in a callback function.

S extends number

(value, index, array) => value is S

A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

any

An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

S[]

Tuple4.filter

filter(predicate, thisArg?): number[]

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1475

Returns the elements of an array that meet the condition specified in a callback function.

(value, index, array) => unknown

A function that accepts up to three arguments. The filter method calls the predicate function one time for each element in the array.

any

An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

number[]

Tuple4.filter


find<S>(predicate, thisArg?): undefined | S

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.core.d.ts:29

Returns the value of the first element in the array where predicate is true, and undefined otherwise.

S extends number

(value, index, obj) => value is S

find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, find immediately returns that element value. Otherwise, find returns undefined.

any

If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

undefined | S

Tuple4.find

find(predicate, thisArg?): undefined | number

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.core.d.ts:30

(value, index, obj) => unknown

any

undefined | number

Tuple4.find


findIndex(predicate, thisArg?): number

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.core.d.ts:41

Returns the index of the first element in the array where predicate is true, and -1 otherwise.

(value, index, obj) => unknown

find calls predicate once for each element of the array, in ascending order, until it finds one where predicate returns true. If such an element is found, findIndex immediately returns that element index. Otherwise, findIndex returns -1.

any

If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

number

Tuple4.findIndex


findLast<S>(predicate, thisArg?): undefined | S

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2023.array.d.ts:29

Returns the value of the last element in the array where predicate is true, and undefined otherwise.

S extends number

(value, index, array) => value is S

findLast calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLast immediately returns that element value. Otherwise, findLast returns undefined.

any

If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

undefined | S

Tuple4.findLast

findLast(predicate, thisArg?): undefined | number

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2023.array.d.ts:30

(value, index, array) => unknown

any

undefined | number

Tuple4.findLast


findLastIndex(predicate, thisArg?): number

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2023.array.d.ts:41

Returns the index of the last element in the array where predicate is true, and -1 otherwise.

(value, index, array) => unknown

findLastIndex calls predicate once for each element of the array, in descending order, until it finds one where predicate returns true. If such an element is found, findLastIndex immediately returns that element index. Otherwise, findLastIndex returns -1.

any

If provided, it will be used as the this value for each invocation of predicate. If it is not provided, undefined is used instead.

number

Tuple4.findLastIndex


flat<A, D>(this, depth?): FlatArray<A, D>[]

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2019.array.d.ts:75

Returns a new array with all sub-array elements concatenated into it recursively up to the specified depth.

A

D extends number = 1

A

D

The maximum recursion depth

FlatArray<A, D>[]

Tuple4.flat


flatMap<U, This>(callback, thisArg?): U[]

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2019.array.d.ts:64

Calls a defined callback function on each element of an array. Then, flattens the result into a new array. This is identical to a map followed by flat with depth 1.

U

This = undefined

(this, value, index, array) => U | readonly U[]

A function that accepts up to three arguments. The flatMap method calls the callback function one time for each element in the array.

This

An object to which the this keyword can refer in the callback function. If thisArg is omitted, undefined is used as the this value.

U[]

Tuple4.flatMap


forEach(callbackfn, thisArg?): void

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1457

Performs the specified action for each element in an array.

(value, index, array) => void

A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.

any

An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

void

Tuple4.forEach


includes(searchElement, fromIndex?): boolean

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2016.array.include.d.ts:25

Determines whether an array includes a certain element, returning true or false as appropriate.

number

The element to search for.

number

The position in this array at which to begin searching for searchElement.

boolean

Tuple4.includes


indexOf(searchElement, fromIndex?): number

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1418

Returns the index of the first occurrence of a value in an array, or -1 if it is not present.

number

The value to locate in the array.

number

The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.

number

Tuple4.indexOf


join(separator?): string

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1361

Adds all the elements of an array into a string, separated by the specified separator string.

string

A string used to separate one element of the array from the next in the resulting string. If omitted, the array elements are separated with a comma.

string

Tuple4.join


keys(): ArrayIterator<number>

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.iterable.d.ts:88

Returns an iterable of keys in the array

ArrayIterator<number>

Tuple4.keys


lastIndexOf(searchElement, fromIndex?): number

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1424

Returns the index of the last occurrence of a specified value in an array, or -1 if it is not present.

number

The value to locate in the array.

number

The array index at which to begin searching backward. If fromIndex is omitted, the search starts at the last index in the array.

number

Tuple4.lastIndexOf


map<U>(callbackfn, thisArg?): U[]

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1463

Calls a defined callback function on each element of an array, and returns an array that contains the results.

U

(value, index, array) => U

A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.

any

An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.

U[]

Tuple4.map


mul(other): v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:57

number

v4f

vecInfixNotation.mul

mul(other): v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:58

v4f

v4f

vecInfixNotation.mul

mul(other): v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:59

m4x4f

v4f

vecInfixNotation.mul


pop(): undefined | number

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1339

Removes the last element from an array and returns it. If the array is empty, undefined is returned and the array is not modified.

undefined | number

Tuple4.pop


push(…items): number

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1344

Appends new elements to the end of an array, and returns the new length of the array.

number[]

New elements to add to the array.

number

Tuple4.push


reduce(callbackfn): number

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1481

Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

(previousValue, currentValue, currentIndex, array) => number

A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

number

Tuple4.reduce

reduce(callbackfn, initialValue): number

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1482

(previousValue, currentValue, currentIndex, array) => number

number

number

Tuple4.reduce

reduce<U>(callbackfn, initialValue): U

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1488

Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

U

(previousValue, currentValue, currentIndex, array) => U

A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.

U

If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

U

Tuple4.reduce


reduceRight(callbackfn): number

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1494

Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

(previousValue, currentValue, currentIndex, array) => number

A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

number

Tuple4.reduceRight

reduceRight(callbackfn, initialValue): number

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1495

(previousValue, currentValue, currentIndex, array) => number

number

number

Tuple4.reduceRight

reduceRight<U>(callbackfn, initialValue): U

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1501

Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.

U

(previousValue, currentValue, currentIndex, array) => U

A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.

U

If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.

U

Tuple4.reduceRight


reverse(): number[]

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1366

Reverses the elements in an array in place. This method mutates the array and returns a reference to the same array.

number[]

Tuple4.reverse


shift(): undefined | number

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1371

Removes the first element from an array and returns it. If the array is empty, undefined is returned and the array is not modified.

undefined | number

Tuple4.shift


slice(start?, end?): number[]

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1381

Returns a copy of a section of an array. For both start and end, a negative index can be used to indicate an offset from the end of the array. For example, -2 refers to the second to last element of the array.

number

The beginning index of the specified portion of the array. If start is undefined, then the slice begins at index 0.

number

The end index of the specified portion of the array. This is exclusive of the element at the index ‘end’. If end is undefined, then the slice extends to the end of the array.

number[]

Tuple4.slice


some(predicate, thisArg?): boolean

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1451

Determines whether the specified callback function returns true for any element of an array.

(value, index, array) => unknown

A function that accepts up to three arguments. The some method calls the predicate function for each element in the array until the predicate returns a value which is coercible to the Boolean value true, or until the end of the array.

any

An object to which the this keyword can refer in the predicate function. If thisArg is omitted, undefined is used as the this value.

boolean

Tuple4.some


sort(compareFn?): this

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1392

Sorts an array in place. This method mutates the array and returns a reference to the same array.

(a, b) => number

Function used to determine the order of the elements. It is expected to return a negative value if the first argument is less than the second argument, zero if they’re equal, and a positive value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.

[11,2,22,1].sort((a, b) => a - b)

this

Tuple4.sort


splice(start, deleteCount?): number[]

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1399

Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

number

The zero-based location in the array from which to start removing elements.

number

The number of elements to remove.

number[]

An array containing the elements that were deleted.

Tuple4.splice

splice(start, deleteCount, …items): number[]

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1407

Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.

number

The zero-based location in the array from which to start removing elements.

number

The number of elements to remove.

number[]

Elements to insert into the array in place of the deleted elements.

number[]

An array containing the elements that were deleted.

Tuple4.splice


sub(other): v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:54

number

v4f

vecInfixNotation.sub

sub(other): v4f

Defined in: packages/typegpu/src/data/wgslTypes.ts:55

v4f

v4f

vecInfixNotation.sub


toLocaleString(): string

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1334

Returns a string representation of an array. The elements are converted to string using their toLocaleString methods.

string

Tuple4.toLocaleString

toLocaleString(locales, options?): string

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.core.d.ts:64

string | string[]

NumberFormatOptions & DateTimeFormatOptions

string

Tuple4.toLocaleString


toReversed(): number[]

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2023.array.d.ts:46

Returns a copy of an array with its elements reversed.

number[]

Tuple4.toReversed


toSorted(compareFn?): number[]

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2023.array.d.ts:57

Returns a copy of an array with its elements sorted.

(a, b) => number

Function used to determine the order of the elements. It is expected to return a negative value if the first argument is less than the second argument, zero if they’re equal, and a positive value otherwise. If omitted, the elements are sorted in ascending, UTF-16 code unit order.

[11, 2, 22, 1].toSorted((a, b) => a - b) // [1, 2, 11, 22]

number[]

Tuple4.toSorted


toSpliced(start, deleteCount, …items): number[]

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2023.array.d.ts:66

Copies an array and removes elements and, if necessary, inserts new elements in their place. Returns the copied array.

number

The zero-based location in the array from which to start removing elements.

number

The number of elements to remove.

number[]

Elements to insert into the copied array in place of the deleted elements.

number[]

The copied array.

Tuple4.toSpliced

toSpliced(start, deleteCount?): number[]

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2023.array.d.ts:74

Copies an array and removes elements while returning the remaining elements.

number

The zero-based location in the array from which to start removing elements.

number

The number of elements to remove.

number[]

A copy of the original array with the remaining elements.

Tuple4.toSpliced


toString(): string

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1330

Returns a string representation of an array.

string

Tuple4.toString


unshift(…items): number

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es5.d.ts:1412

Inserts new elements at the start of an array, and returns the new length of the array.

number[]

Elements to insert at the start of the array.

number

Tuple4.unshift


values(): ArrayIterator<number>

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2015.iterable.d.ts:93

Returns an iterable of values in the array

ArrayIterator<number>

Tuple4.values


with(index, value): number[]

Defined in: node_modules/.pnpm/[email protected]/node_modules/typescript/lib/lib.es2023.array.d.ts:85

Copies an array, then overwrites the value at the provided index with the given value. If the index is negative, then it replaces from the end of the array.

number

The index of the value to overwrite. If the index is negative, then it replaces from the end of the array.

number

The value to write into the copied array.

number[]

The copied array with the updated value.

Tuple4.with