public PolarGraphicCoordinate(GraphicCoordinate origin, GraphicCoordinate target) { double x = target.X - origin.X; double y = target.Y - origin.Y; this.Origin = origin; Distance = Math.Sqrt((x * x) + (y * y)); AngleDegree = Math.Atan2(y, x) * 180 / Math.PI + 180; }
public Segment(GraphicCoordinate origin, GraphicCoordinate target, Color color, double width, uint priority) { this.Origin = origin; this.Target = target; this.Color = color; this.Width = width; this.Priority = priority; LoadGraphics(); }
public PolarGraphicCoordinate(GraphicCoordinate origin, double distance, double angledegree) { this.Origin = origin; this.Distance = distance; this.AngleDegree = angledegree; }