Esempio n. 1
0
        public OurPoint WorldToScreen(OurPoint inputPoint)
        {
            var point = new OurPoint();

            point.X = (inputPoint.X + pictureBox1.Width / 2);
            point.Y = -inputPoint.Y + pictureBox1.Height / 2;
            return(point);
        }
Esempio n. 2
0
 public Circle(OurPoint center, float radius, float angle1, float angle2)
 {
     Center   = new OurPoint();
     Center.X = center.X;
     Center.Y = center.Y;
     Radius   = radius;
     Angle1   = angle1;
     Angle2   = angle2;
 }
Esempio n. 3
0
 public Line(OurPoint start, OurPoint end)
 {
     pointStart   = new OurPoint();
     pointEnd     = new OurPoint();
     pointStart.X = start.X;
     pointStart.Y = start.Y;
     pointEnd.X   = end.X;
     pointEnd.Y   = end.Y;
 }
Esempio n. 4
0
 public void AddRow(OurPoint inputPoint)
 {
     secondListOfPoints.Add(new OurPoint(inputPoint.X, inputPoint.Y, inputPoint.H));
 }
Esempio n. 5
0
 public void AddNode(OurPoint point)
 {
     listOfPoints.Add(point);
 }