/// <summary> /// Method to Initialize the <see cref="KO_AdjToolParams.NominalCoordinates"/> of the <see cref="KO_MasterAdjs"/> Dictionary using the <see cref="VehicleCornerParams.InboardAssembly"/> and the <see cref="VehicleCornerParams.OutboardAssembly"/> /// </summary> /// <param name="_vCornerParams">Object of the <see cref="VehicleCornerParams"/> Class used to initalize the <see cref="KO_AdjToolParams.NominalCoordinates"/></param> public void Initialize_AdjusterCoordinates(VehicleCornerParams _vCornerParams) { foreach (string coordinate in KO_MasterAdjs.Keys) { foreach (string outboardCoord in _vCornerParams.OutboardAssembly.Keys) { if (outboardCoord == coordinate) { KO_MasterAdjs[coordinate].NominalCoordinates = _vCornerParams.OutboardAssembly[outboardCoord]; KO_MasterAdjs[coordinate].OptimizedCoordinates = _vCornerParams.OutboardAssembly[outboardCoord]; } } foreach (string coordName in KO_MasterAdjs.Keys) { foreach (string inboardCoord in _vCornerParams.InboardAssembly.Keys) { if (inboardCoord == coordName) { KO_MasterAdjs[coordName].NominalCoordinates = _vCornerParams.InboardAssembly[inboardCoord]; KO_MasterAdjs[coordName].OptimizedCoordinates = _vCornerParams.InboardAssembly[inboardCoord]; } } } } }
/// <summary> /// Constructor /// </summary> public KO_CornverVariables(VehicleCorner _vCorner) { VCorner = _vCorner; KO_MasterAdjs = new Dictionary <string, KO_AdjToolParams>(); KO_ReqParams = new List <SuspensionParameters>(); KO_ReqParams_Importance = new Dictionary <SuspensionParameters, double>(); BumpSteerCurve = new CustomBumpSteerParams(); CamberCurve = new CustomCamberCurve(); Caster = new Angle(); KPI = new Angle(); VCornerParams = new VehicleCornerParams(); Initialize_Default_MotionProfile(); //ContactPatch = new Point3D(); }