MCPcopy Create free account
hub / github.com/microsoft/SandDance / zSwap

Function zSwap

packages/vega-deck.gl/src/zaxis.ts:7–14  ·  view source on GitHub ↗
(v3: Vec3 | Position)

Source from the content-addressed store, hash-verified

5import { Vec3 } from './interfaces';
6
7export function zSwap(v3: Vec3 | Position) {
8 const temp = -v3[1]; //negeative y to positive z
9 if(v3[0]===lineZ) {
10 v3[0] = 0;
11 }
12 v3[1] = v3[2];
13 v3[2] = temp;
14}

Callers 2

markStagerFunction · 0.90
markStagerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected