Esempio n. 1
0
 public AnnotatedVertex(ushort id, Vector2 position, Vector2 before, Vector2 after)
 {
     this.Id       = id;
     this.Position = position;
     toBefore      = Utilities.Direction.Of(before - position);
     toAfter       = Utilities.Direction.Of(after - position);
     this.updateConvex();
 }
Esempio n. 2
0
 public void SetAfter(Vector2 after)
 {
     toAfter = Utilities.Direction.Of(after - this.Position);
     this.updateConvex();
 }
Esempio n. 3
0
 public void SetBefore(Vector2 before)
 {
     toBefore = Utilities.Direction.Of(before - this.Position);
     this.updateConvex();
 }