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(); }
public void SetAfter(Vector2 after) { toAfter = Utilities.Direction.Of(after - this.Position); this.updateConvex(); }
public void SetBefore(Vector2 before) { toBefore = Utilities.Direction.Of(before - this.Position); this.updateConvex(); }