add arc display for direction visualization

This commit is contained in:
interfisch 2019-06-12 14:14:02 +02:00
commit b7dd466f02
3 changed files with 3 additions and 3 deletions

View file

@ -300,7 +300,7 @@ public class Direction extends Visualization {
ellipseMode(RADIUS); //centerx, centery, width,height for ellipse
ellipse(super.posOrigin.x, super.posOrigin.y, this.size,this.size);
}else{
arc(super.posOrigin.x, super.posOrigin.y, this.size*2,this.size*2, 0+this.angleoffset-PI, 2*PI+this.angleoffset-PI, PIE);
arc(super.posOrigin.x, super.posOrigin.y, this.size*2,this.size*2, this.angleoffset+2*PI -this.minvisiblevalue/super.valueMin*PI, 2*PI+this.angleoffset +this.maxvisiblevalue/super.valueMax*PI, PIE);
}
stroke(super.cmain);