Skip to content

This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.

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.