UNPKG

@needle-tools/engine

Version:

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.

44 lines (34 loc) 865 B
// automatically generated by the FlatBuffers compiler, do not modify import * as flatbuffers from 'flatbuffers'; export class Vec4 { bb: flatbuffers.ByteBuffer|null = null; bb_pos = 0; __init(i:number, bb:flatbuffers.ByteBuffer):Vec4 { this.bb_pos = i; this.bb = bb; return this; } x():number { return this.bb!.readFloat32(this.bb_pos); } y():number { return this.bb!.readFloat32(this.bb_pos + 4); } z():number { return this.bb!.readFloat32(this.bb_pos + 8); } w():number { return this.bb!.readFloat32(this.bb_pos + 12); } static sizeOf():number { return 16; } static createVec4(builder:flatbuffers.Builder, x: number, y: number, z: number, w: number):flatbuffers.Offset { builder.prep(4, 16); builder.writeFloat32(w); builder.writeFloat32(z); builder.writeFloat32(y); builder.writeFloat32(x); return builder.offset(); } }