This module is helperful to deal with 3d/2d coordinated system switch in threejs
npm install planehelper
or
yarn add planehelper
import { PlaneHelper } from 'planhelper';
const planeHp = PlaneHelper.createPlane(normal, origin, xRay)
planeHp.converTo2D(...)
planeHp.converTo3D(...)
createPlane
convertTo2D
convertTo3D
convertTo2DVec
converTo3DVec
intersectInfinityLine
intesectLine
intersectSegment
projectPoint
applyMatrix4
copy
getTransMatrix
toMetaData
loadMetaData