Basic implementations

This commit is contained in:
Mal
2020-01-22 22:50:45 +01:00
parent 893c226fe4
commit fb762d1778
17 changed files with 424 additions and 13 deletions

View File

@@ -21,6 +21,11 @@ export default class GeometryStroke extends GeometryLine
return new GeometryLine(this.pointA, this.pointB);
}
getLength()
{
return this.pointA.getDistanceToPoint(this.pointB);
}
getIntersectionWithStroke(stroke)
{
let intersection = super.getIntersectionWithLine(stroke);