Commit 789e58e0 authored by Christian Winter's avatar Christian Winter

todos added

parent 3ea14a95
......@@ -59,6 +59,7 @@ Utilities = new class {
Application.redrawAllViews();
}
// TODO make part of Line class
distancePointToLine(position, line) {
let se = line.end.position.subtractVector(line.start.position);
let sp = position.subtractVector(line.start.position);
......@@ -113,6 +114,7 @@ Utilities = new class {
}
}
// TODO make private or extract into own class
addPointSorted(points, point) {
for (let i = 0; i < points.length; i++) {
if (this.eq(point.position.y, points[i].position.y) && this.eq(point.position.x, points[i].position.x)) {
......@@ -128,7 +130,8 @@ Utilities = new class {
}
points.push(point);
}
// TODO make private or extract into own class
// or make part of line class?
intersect(line1, line2) {
let points = [];
let v1 = line1.end.position.subtractVector(line1.start.position);
......@@ -171,6 +174,7 @@ Utilities = new class {
return points;
}
// TODO make part of selection class?
mergeSelectedPoints() {
let selection = Application.currentView.selection;
let endings = selection.getAllSelectedPoints();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment