direction method
Returns angle of the line in radians
Implementation
double direction() {
final diff = to - from;
return math.atan(diff.dy / diff.dx);
}
Returns angle of the line in radians
double direction() {
final diff = to - from;
return math.atan(diff.dy / diff.dx);
}