Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Line.create is not a function #10

Open
hakatashi opened this issue Sep 11, 2018 · 0 comments
Open

TypeError: Line.create is not a function #10

hakatashi opened this issue Sep 11, 2018 · 0 comments

Comments

@hakatashi
Copy link

I'm getting this error when I use plane.intersectionWith.

repro:

const {Plane} = require('sylvester');

const plane1 = Plane.create([0, 0, 0], [0, 1, 0]);
const plane2 = Plane.create([0, 0, 0], [0, 0, 1]);
plane1.intersectionWith(plane2);
$ npm ls sylvester
[email protected] C:\Users\denjj\Documents\GitHub\smart-cube-timer
`-- [email protected]

$ node --version
v10.3.0

$ node temp.js
C:\Users\denjj\Documents\GitHub\smart-cube-timer\node_modules\sylvester\lib\node-sylvester\plane.js:126
      return Line.create(anchor, direction);
                  ^

TypeError: Line.create is not a function
    at Plane.intersectionWith (C:\Users\denjj\Documents\GitHub\smart-cube-timer\node_modules\sylvester\lib\node-sylvester\plane.js:126:19)
    at Object.<anonymous> (C:\Users\denjj\Documents\GitHub\smart-cube-timer\temp.js:5:8)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:238:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant