Skip to content

VECTOR_PACKAGE

const VECTOR_PACKAGE: IEnginePackage;

Defined in: packages/engine/src/packages/vector/VectorPackage.ts:13

Vector literals vec2(x, y)/vec3(x, y, z)/vec4(x, y, z, w) plus float literals, legacy construction sugar kept working after the Calca-parity Matrix rewrite; each just builds a 1xN row-vector ValueType.Matrix via OpCode.MAT_NEW (see vm/MatrixOps.ts). The bracket literal [x, y, z] (packages/matrix/) is the primary, Calca-parity construction syntax going forward.