Beispiel #1
0
        public void Direccionar_Ejes()
        {
            if (Direccion == eDireccion.Diagonal || Direccion == eDireccion.Horizontal) //Caso Horizontal Y Diagonal
            {
                if (Point1P.X > Point2P.X)
                {
                    Activar_Cambio_Ejes = true;
                }
            }
            else //Caso vertical
            {
                if (Point1P.Y > Point2P.Y)
                {
                    Activar_Cambio_Ejes = true;
                }
            }

            if (Activar_Cambio_Ejes)
            {
                cPoint PuntoAuxiliar1 = cFunctionsProgram.DeepClone(Point1P);
                cPoint PuntoAuxiliar2 = cFunctionsProgram.DeepClone(Point2P);
                Point1P = PuntoAuxiliar2;
                Point2P = PuntoAuxiliar1;

                float Offset_i = OffSetI;
                float offset_j = OffSetJ;

                OffSetI = offset_j;
                OffSetJ = Offset_i;
            }
        }
 public void CrearPuntosPlantaRealEtabsLine(cPoint Point1, cPoint Point2)
 {
     Planta_Real = new List <PointF>();
     Planta_Real.Add(new PointF(Point1.X, Point1.Y));
     Planta_Real.Add(new PointF(Point2.X, Point2.Y));
 }
Beispiel #3
0
 private PointF ConvertcPointToPointF(cPoint point)
 {
     return(new PointF(point.X, point.Y));
 }