Applies transformations to the given vector.

Type signature

(space: {
    a: number;
    c: number;
    e: number;
    b: number;
    d: number;
    f: number;
}) => ([x, y]: [number, number]) => number[]

Examples

convertSpace(rotate(Math.PI))([
  2, 3,
]);
// ⇒ [-2, -3]
Try in REPL

Questions

  • How to transform a vector with a matrix?

TypeScript sourceJavaScript source