mirror of
https://github.com/jwetzell/psn-js.git
synced 2026-08-17 05:13:39 +00:00
10 lines
239 B
TypeScript
10 lines
239 B
TypeScript
import chunk from '../chunk';
|
|
|
|
export default (x: number, y: number, z: number): Buffer => {
|
|
const buf = Buffer.alloc(12);
|
|
buf.writeFloatLE(x);
|
|
buf.writeFloatLE(y, 4);
|
|
buf.writeFloatLE(z, 8);
|
|
return chunk(0x0001, buf, false);
|
|
};
|