Exemple #1
0
        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;
        }
Exemple #2
0
 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();
 }
Exemple #3
0
 public PolarGraphicCoordinate(GraphicCoordinate origin, double distance, double angledegree)
 {
     this.Origin      = origin;
     this.Distance    = distance;
     this.AngleDegree = angledegree;
 }