Skip to content

TypeError: Line.create is not a function #10

@hakatashi

Description

@hakatashi

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
smart-cube-timer@1.0.0 C:\Users\denjj\Documents\GitHub\smart-cube-timer
`-- sylvester@0.0.21

$ 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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions