planehelper
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

This module is helperful to deal with 3d/2d coordinated system switch in threejs

Installation

npm install planehelper 
or
yarn add planehelper

Quick Used

import { PlaneHelper } from 'planhelper';

const planeHp = PlaneHelper.createPlane(normal, origin, xRay)

planeHp.converTo2D(...)
planeHp.converTo3D(...)

API

createPlane
convertTo2D
convertTo3D
convertTo2DVec
converTo3DVec
intersectInfinityLine
intesectLine
intersectSegment
projectPoint
applyMatrix4
copy
getTransMatrix
toMetaData
loadMetaData

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i planehelper

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

159 kB

Total Files

9

Last publish

Collaborators

  • vivihoo03