public Coordinate AnalyzePosition(int commandRotate) { AngleRotation actualRotate = CurrentRotate + commandRotate; Coordinate newPosition = actualRotate.GetRotation(); return(Position + newPosition); }
public StereoPair(string nameImage1, string nameImage2, Coordinates cameraCoordinates, AngleRotation cameraAngleRotation, Settings properties) { NameImage1 = nameImage1; NameImage2 = nameImage2; CameraCoordinates = cameraCoordinates; CameraAngleRotation = cameraAngleRotation; Properties = properties; }
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; }
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(); }
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; }
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(); }
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(); }
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); }
public GenericCell(ICellBrain brain) { CurrentRotate = new AngleRotation(0); Health = 100; Brain = brain; }
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 ISection GetShape(string ShapeId, AngleOrientation AngleOrientation = AngleOrientation.LongLegVertical, AngleRotation AngleRotation = AngleRotation.FlatLegBottom) { ShapeTypeSteel shapeType = DetermineShapeType(ShapeId); return(GetShape(ShapeId, shapeType, AngleOrientation, AngleRotation)); }
public ISection GetShape(string ShapeId, AngleOrientation AngleOrientation = AngleOrientation.LongLegVertical, AngleRotation AngleRotation = AngleRotation.FlatLegBottom) { ShapeTypeSteel shapeType = DetermineShapeType(ShapeId); return GetShape( ShapeId, shapeType, AngleOrientation, AngleRotation); }