UNPKG

@thi.ng/matrices

Version:

Matrix & quaternion operations for 2D/3D geometry processing

13 lines (12 loc) 328 B
import { concat } from "./concat.js"; import { rotation23 } from "./rotation.js"; import { translation23 } from "./translation.js"; const rotationAroundPoint23 = (out, pos, theta) => concat( out, translation23([], pos), rotation23([], theta), translation23([], [-pos[0], -pos[1]]) ); export { rotationAroundPoint23 };