示例#1
0
        public Coordinate AnalyzePosition(int commandRotate)
        {
            AngleRotation actualRotate = CurrentRotate + commandRotate;
            Coordinate    newPosition  = actualRotate.GetRotation();

            return(Position + newPosition);
        }
示例#2
0
 public StereoPair(string nameImage1, string nameImage2, Coordinates cameraCoordinates, AngleRotation cameraAngleRotation, Settings properties)
 {
     NameImage1          = nameImage1;
     NameImage2          = nameImage2;
     CameraCoordinates   = cameraCoordinates;
     CameraAngleRotation = cameraAngleRotation;
     Properties          = properties;
 }
示例#3
0
 public SectionAngle(string Name, double h, double b, double t, AngleRotation AngleRotation, AngleOrientation AngleOrientation)
     : base(Name)
 {
     Set_b_and_h(b, h, AngleOrientation);
     //this._d = h;
     //this._b = b;
     this._t = t;
     this.AngleOrientation = AngleOrientation;
     this.AngleRotation    = AngleRotation;
 }
示例#4
0
        public BeamAngle(ISteelSection section, ICalcLog CalcLog, AngleRotation AngleRotation, MomentAxis MomentAxis,
                         AngleOrientation AngleOrientation = AngleOrientation.ShortLegVertical)
            : base(section, CalcLog, AngleOrientation)
        {
            this.AngleRotation    = AngleRotation;
            this.AngleOrientation = AngleOrientation;
            this.MomentAxis       = MomentAxis;

            GetSectionValues();
        }
示例#5
0
 public SectionAngle(string Name, double h, double b, double t, AngleRotation AngleRotation,  AngleOrientation AngleOrientation)
     : base(Name)
 {
     Set_b_and_h(b, h, AngleOrientation);
     //this._d = h;
     //this._b = b;
     this._t = t;
     this.AngleOrientation = AngleOrientation;
     this.AngleRotation = AngleRotation;
 }
示例#6
0
        public ISection GetShape(string ShapeId, ShapeTypeSteel shapeType, AngleOrientation AngleOrientation = AngleOrientation.LongLegVertical, AngleRotation AngleRotation = AngleRotation.FlatLegBottom)
        { 

            string DEFAULT_EXCEPTION_STRING = "Selected shape is not supported. Specify a different shape.";
            AiscCatalogShape cs = new AiscCatalogShape(ShapeId,null);
            CalcLog log = new CalcLog();
            ISection sec = null;

            switch (shapeType)
            {
                case ShapeTypeSteel.IShapeRolled:
                    sec = new PredefinedSectionI(cs);
                    break;
                case ShapeTypeSteel.IShapeBuiltUp:
                    throw new Exception(DEFAULT_EXCEPTION_STRING);
                    break;
                case ShapeTypeSteel.Channel:
                    sec = new PredefinedSectionChannel(cs);
                    break;
                case ShapeTypeSteel.Angle:
                    sec = new PredefinedSectionAngle(cs, AngleOrientation,AngleRotation);
                    break;
                case ShapeTypeSteel.TeeRolled:
                    throw new Exception(DEFAULT_EXCEPTION_STRING);
                    break;
                case ShapeTypeSteel.TeeBuiltUp:
                    throw new Exception(DEFAULT_EXCEPTION_STRING);
                    break;
                case ShapeTypeSteel.DoubleAngle:
                    throw new Exception(DEFAULT_EXCEPTION_STRING);
                    break;
                case ShapeTypeSteel.CircularHSS:
                    sec = new PredefinedSectionCHS(cs);
                    break;
                case ShapeTypeSteel.RectangularHSS:
                    sec = new PredefinedSectionRHS(cs);
                    break;
                case ShapeTypeSteel.Box:
                    throw new Exception(DEFAULT_EXCEPTION_STRING);
                    break;
                case ShapeTypeSteel.Rectangular:
                    throw new Exception(DEFAULT_EXCEPTION_STRING);
                    break;
                case ShapeTypeSteel.Circular:
                    throw new Exception(DEFAULT_EXCEPTION_STRING);
                    break;
                case ShapeTypeSteel.IShapeAsym:
                    throw new Exception(DEFAULT_EXCEPTION_STRING);
                    break;
                default:
                    break;
            }

            return sec;
        }
        public PredefinedSectionAngle(AiscCatalogShape section, AngleOrientation AngleOrientation, AngleRotation AngleRotation)
            : base(section)
        {
            //this._d = section.d;
            //this._b = section.b;
            Set_b_and_d(section.d, section.b, AngleOrientation);
            this._t = section.t;
            this.AngleOrientation = AngleOrientation;
            this.AngleRotation = AngleRotation;
 
        }
示例#8
0
        public BeamAngle(ISteelSection section, ICalcLog CalcLog, AngleRotation AngleRotation,  MomentAxis MomentAxis, 
            AngleOrientation AngleOrientation= AngleOrientation.ShortLegVertical)
            : base(section, CalcLog, AngleOrientation)
        {
            this.AngleRotation = AngleRotation;
            this.AngleOrientation = AngleOrientation;
            this.MomentAxis = MomentAxis;

            GetSectionValues();

        }
示例#9
0
        public BeamDoubleAngle(ISteelSection section, ICalcLog CalcLog, AngleRotation AngleRotation, AngleOrientation AngleOrientation)
            : base(section, CalcLog, AngleOrientation)
        {
            if (section is ISectionDoubleAngle)
            {
                SectionDoubleAngle = section as ISectionDoubleAngle;
            }
            else
            {
                throw new SectionWrongTypeException(typeof(ISectionTube));
            }
            this.AngleOrientation = AngleOrientation;
            this.AngleRotation    = AngleRotation;

            GetSectionValues();
        }
示例#10
0
        public int[][] RotateMatrix(int[][] matrix, bool clockwise = true, AngleRotation angleRotation = AngleRotation.Angle_90)
        {
            ValidateMatrix(matrix);
            var n = matrix.Length;
            var p = n / 2;

            for (int i = 0; i < p; i++)
            {
                for (int j = i; j < n - 1 - i; j++)
                {
                    var temp = matrix[i][j];
                    matrix[i][j]                 = matrix[n - j - 1][i];
                    matrix[n - j - 1][i]         = matrix[n - i - 1][n - j - 1];
                    matrix[n - i - 1][n - j - 1] = matrix[j][n - i - 1];
                    matrix[j][n - i - 1]         = temp;
                }
            }
            return(matrix);
        }
示例#11
0
        public BeamDoubleAngle(ISteelSection section, ICalcLog CalcLog, AngleRotation AngleRotation, AngleOrientation AngleOrientation)
            : base(section, CalcLog, AngleOrientation)
        {

            if (section is ISectionDoubleAngle)
            {

                    SectionDoubleAngle = section as ISectionDoubleAngle;


            }
            else
            {
                throw new SectionWrongTypeException(typeof(ISectionTube));
            }
            this.AngleOrientation = AngleOrientation;
            this.AngleRotation = AngleRotation;

            GetSectionValues();
        }
示例#12
0
 public GenericCell(ICellBrain brain)
 {
     CurrentRotate = new AngleRotation(0);
     Health        = 100;
     Brain         = brain;
 }
示例#13
0
 public PredefinedSectionAngle(AiscCatalogShape section, AngleOrientation AngleOrientation, AngleRotation AngleRotation)
     : base(section)
 {
     //this._d = section.d;
     //this._b = section.b;
     Set_b_and_d(section.d, section.b, AngleOrientation);
     this._t = section.t;
     this.AngleOrientation = AngleOrientation;
     this.AngleRotation    = AngleRotation;
 }
示例#14
0
        public ISection GetShape(string ShapeId, ShapeTypeSteel shapeType, AngleOrientation AngleOrientation = AngleOrientation.LongLegVertical, AngleRotation AngleRotation = AngleRotation.FlatLegBottom)
        {
            string           DEFAULT_EXCEPTION_STRING = "Selected shape is not supported. Specify a different shape.";
            AiscCatalogShape cs  = new AiscCatalogShape(ShapeId, null);
            CalcLog          log = new CalcLog();
            ISection         sec = null;

            switch (shapeType)
            {
            case ShapeTypeSteel.IShapeRolled:
                sec = new PredefinedSectionI(cs);
                break;

            case ShapeTypeSteel.IShapeBuiltUp:
                throw new Exception(DEFAULT_EXCEPTION_STRING);
                break;

            case ShapeTypeSteel.Channel:
                sec = new PredefinedSectionChannel(cs);
                break;

            case ShapeTypeSteel.Angle:
                sec = new PredefinedSectionAngle(cs, AngleOrientation, AngleRotation);
                break;

            case ShapeTypeSteel.TeeRolled:
                throw new Exception(DEFAULT_EXCEPTION_STRING);
                break;

            case ShapeTypeSteel.TeeBuiltUp:
                throw new Exception(DEFAULT_EXCEPTION_STRING);
                break;

            case ShapeTypeSteel.DoubleAngle:
                throw new Exception(DEFAULT_EXCEPTION_STRING);
                break;

            case ShapeTypeSteel.CircularHSS:
                sec = new PredefinedSectionCHS(cs);
                break;

            case ShapeTypeSteel.RectangularHSS:
                sec = new PredefinedSectionRHS(cs);
                break;

            case ShapeTypeSteel.Box:
                throw new Exception(DEFAULT_EXCEPTION_STRING);
                break;

            case ShapeTypeSteel.Rectangular:
                throw new Exception(DEFAULT_EXCEPTION_STRING);
                break;

            case ShapeTypeSteel.Circular:
                throw new Exception(DEFAULT_EXCEPTION_STRING);
                break;

            case ShapeTypeSteel.IShapeAsym:
                throw new Exception(DEFAULT_EXCEPTION_STRING);
                break;

            default:
                break;
            }

            return(sec);
        }
示例#15
0
        public ISection GetShape(string ShapeId, AngleOrientation AngleOrientation = AngleOrientation.LongLegVertical, AngleRotation AngleRotation = AngleRotation.FlatLegBottom)
        {
            ShapeTypeSteel shapeType = DetermineShapeType(ShapeId);

            return(GetShape(ShapeId, shapeType, AngleOrientation, AngleRotation));
        }
示例#16
0
 public ISection GetShape(string ShapeId, AngleOrientation AngleOrientation = AngleOrientation.LongLegVertical, AngleRotation AngleRotation = AngleRotation.FlatLegBottom)
 {
     ShapeTypeSteel shapeType = DetermineShapeType(ShapeId);
     return  GetShape( ShapeId, shapeType,  AngleOrientation, AngleRotation);
 }