1
0
Fork 0

construction: Ported to v0.29

This commit is contained in:
Joost De Cock 2019-01-27 12:54:18 +01:00
parent dee09139bf
commit 3f65251532
108 changed files with 1962 additions and 1940 deletions

View file

@ -0,0 +1,27 @@
export default part => {
let {
debug,
Point,
points,
Path,
paths,
Snippet,
snippets,
utils
} = part.shorthand();
points.A = new Point(10, 10);
points.B = new Point(50, 40);
points.C = new Point(15, 30);
points.D = new Point(60, 15);
paths.AB = new Path().move(points.A).line(points.B);
paths.CD = new Path().move(points.C).line(points.D);
snippets.X = new Snippet(
"x",
utils.linesIntersect(points.A, points.B, points.C, points.D)
);
return part;
};