You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Found this odd result while working on a simple canvas game.
var line1 = new toxi.geom.Line2D(
new toxi.geom.Vec2D({x: 280, y: 319}),
new toxi.geom.Vec2D({x: 280, y: 332}));
var line2 = new toxi.geom.Line2D(
new toxi.geom.Vec2D({x: 280, y: 75}),
new toxi.geom.Vec2D({x: 280, y: 325}));
var intersection = line1.intersectLine(line2);
console.log(intersection);
intersection.type is null.
Looking at the Line2D code on line 149 there's the following:
isec = new Line2D.LineIntersection(Type.COINCIDENT_NO_INTERSECT, undefined);
but Type.COINCIDENT_NO_INTERSECT isn't declared. I'd guess that's where the null is coming from.
The text was updated successfully, but these errors were encountered:
Hey,
Found this odd result while working on a simple canvas game.
intersection.type
is null.Looking at the Line2D code on line 149 there's the following:
isec = new Line2D.LineIntersection(Type.COINCIDENT_NO_INTERSECT, undefined);
but
Type.COINCIDENT_NO_INTERSECT
isn't declared. I'd guess that's where the null is coming from.The text was updated successfully, but these errors were encountered: