예제 #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);
        }
예제 #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;
 }
예제 #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;
 }
예제 #4
0
 public void AddRow(OurPoint inputPoint)
 {
     secondListOfPoints.Add(new OurPoint(inputPoint.X, inputPoint.Y, inputPoint.H));
 }
예제 #5
0
 public void AddNode(OurPoint point)
 {
     listOfPoints.Add(point);
 }