2
0

all nodes animated

This commit is contained in:
2018-08-14 13:56:32 +02:00
parent 6f21849c85
commit 2e15897b8b
6 changed files with 70 additions and 42 deletions

View File

@@ -66,7 +66,7 @@ export class GraphService {
}
}
public shiftPoint(point: Point, radians: number, spacing: number) {
public shiftPoint(point: Point, radians: number, spacing: number): Point {
return {
x: Math.sin(radians * Math.PI) * spacing + point.x,
y: Math.cos(radians * Math.PI) * spacing + point.y