commit 70f3e458d40fcbfdfc0a9a36d2711599d0d5d83d Author: josephroy99 Date: Tue Jun 6 23:56:56 2023 +0100 Initial commit diff --git a/.idea/.idea.LensSimulator/.idea/.gitignore b/.idea/.idea.LensSimulator/.idea/.gitignore new file mode 100644 index 0000000..bd68886 --- /dev/null +++ b/.idea/.idea.LensSimulator/.idea/.gitignore @@ -0,0 +1,13 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/.idea.LensSimulator.iml +/contentModel.xml +/projectSettingsUpdater.xml +/modules.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/.idea.LensSimulator/.idea/indexLayout.xml b/.idea/.idea.LensSimulator/.idea/indexLayout.xml new file mode 100644 index 0000000..7b08163 --- /dev/null +++ b/.idea/.idea.LensSimulator/.idea/indexLayout.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/.idea.LensSimulator/.idea/vcs.xml b/.idea/.idea.LensSimulator/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/.idea.LensSimulator/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ImplementationTest/ImplementationTest.csproj b/ImplementationTest/ImplementationTest.csproj new file mode 100644 index 0000000..fede340 --- /dev/null +++ b/ImplementationTest/ImplementationTest.csproj @@ -0,0 +1,14 @@ + + + + Exe + net7.0 + enable + enable + + + + + + + diff --git a/ImplementationTest/Program.cs b/ImplementationTest/Program.cs new file mode 100644 index 0000000..9c46ad1 --- /dev/null +++ b/ImplementationTest/Program.cs @@ -0,0 +1,46 @@ +// See https://aka.ms/new-console-template for more information + +using System.Diagnostics; +using LensSimulatorCore; +using LensSimulatorCore.Optical; +using LensSimulatorCore.Shapes; +using LensSimulatorCore.Workspace; + + +var ellipse = new Ellipse(0.2,3,4,new Point(1,3)); +var result = ellipse.GetIntersectionPoints(new Line(-2, 3)); + +var ListOfPointsOnCircle = (double n) => +{ + List points = new List(); + + for (int i = 0; i < n; i++) + { + var radians = Math.PI * 2 / n * i; + + var x = Math.Cos(radians); + var y = Math.Sin(radians); + + points.Add(new Point(x, y)); + } + + return points; +}; + +var test = ListOfPointsOnCircle(8); + +var sellmeier = new SellmeierCoefficients(1.03961212, 0.00600069867, 0.231792344, 0.0200179144, 0, 103); + +var material = new Material(sellmeier); + +var s = new Stopwatch(); s.Start(); + +var reflectivity = material.Reflectivity(45, 1.00027717, 450); +var transmissivity = material.Transmissivity(45, 1.00027717, 450); + +s.Stop(); +var time = s.ElapsedMilliseconds; + + + +Console.Write("F"); \ No newline at end of file diff --git a/ImplementationTest/bin/Debug/net7.0/ImplementationTest.deps.json b/ImplementationTest/bin/Debug/net7.0/ImplementationTest.deps.json new file mode 100644 index 0000000..07da912 --- /dev/null +++ b/ImplementationTest/bin/Debug/net7.0/ImplementationTest.deps.json @@ -0,0 +1,36 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v7.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v7.0": { + "ImplementationTest/1.0.0": { + "dependencies": { + "LensSimulatorCore": "1.0.0" + }, + "runtime": { + "ImplementationTest.dll": {} + } + }, + "LensSimulatorCore/1.0.0": { + "runtime": { + "LensSimulatorCore.dll": {} + } + } + } + }, + "libraries": { + "ImplementationTest/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + }, + "LensSimulatorCore/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/ImplementationTest/bin/Debug/net7.0/ImplementationTest.dll b/ImplementationTest/bin/Debug/net7.0/ImplementationTest.dll new file mode 100644 index 0000000..8d1a11d Binary files /dev/null and b/ImplementationTest/bin/Debug/net7.0/ImplementationTest.dll differ diff --git a/ImplementationTest/bin/Debug/net7.0/ImplementationTest.exe b/ImplementationTest/bin/Debug/net7.0/ImplementationTest.exe new file mode 100644 index 0000000..d758b9d Binary files /dev/null and b/ImplementationTest/bin/Debug/net7.0/ImplementationTest.exe differ diff --git a/ImplementationTest/bin/Debug/net7.0/ImplementationTest.pdb b/ImplementationTest/bin/Debug/net7.0/ImplementationTest.pdb new file mode 100644 index 0000000..d5e00ad Binary files /dev/null and b/ImplementationTest/bin/Debug/net7.0/ImplementationTest.pdb differ diff --git a/ImplementationTest/bin/Debug/net7.0/ImplementationTest.runtimeconfig.json b/ImplementationTest/bin/Debug/net7.0/ImplementationTest.runtimeconfig.json new file mode 100644 index 0000000..184be8b --- /dev/null +++ b/ImplementationTest/bin/Debug/net7.0/ImplementationTest.runtimeconfig.json @@ -0,0 +1,9 @@ +{ + "runtimeOptions": { + "tfm": "net7.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "7.0.0" + } + } +} \ No newline at end of file diff --git a/ImplementationTest/bin/Debug/net7.0/LensSimulatorCore.dll b/ImplementationTest/bin/Debug/net7.0/LensSimulatorCore.dll new file mode 100644 index 0000000..00e8554 Binary files /dev/null and b/ImplementationTest/bin/Debug/net7.0/LensSimulatorCore.dll differ diff --git a/ImplementationTest/bin/Debug/net7.0/LensSimulatorCore.pdb b/ImplementationTest/bin/Debug/net7.0/LensSimulatorCore.pdb new file mode 100644 index 0000000..8831f5c Binary files /dev/null and b/ImplementationTest/bin/Debug/net7.0/LensSimulatorCore.pdb differ diff --git a/ImplementationTest/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs b/ImplementationTest/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs new file mode 100644 index 0000000..4257f4b --- /dev/null +++ b/ImplementationTest/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")] diff --git a/ImplementationTest/obj/Debug/net7.0/ImplementationTest.AssemblyInfo.cs b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.AssemblyInfo.cs new file mode 100644 index 0000000..9f2e734 --- /dev/null +++ b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("ImplementationTest")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("ImplementationTest")] +[assembly: System.Reflection.AssemblyTitleAttribute("ImplementationTest")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/ImplementationTest/obj/Debug/net7.0/ImplementationTest.AssemblyInfoInputs.cache b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.AssemblyInfoInputs.cache new file mode 100644 index 0000000..1e5d289 --- /dev/null +++ b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +8975356774c8b6d47099d5dcc7ee8414b0c2c371 diff --git a/ImplementationTest/obj/Debug/net7.0/ImplementationTest.GeneratedMSBuildEditorConfig.editorconfig b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..2b86776 --- /dev/null +++ b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,11 @@ +is_global = true +build_property.TargetFramework = net7.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = ImplementationTest +build_property.ProjectDir = C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\ diff --git a/ImplementationTest/obj/Debug/net7.0/ImplementationTest.GlobalUsings.g.cs b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/ImplementationTest/obj/Debug/net7.0/ImplementationTest.assets.cache b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.assets.cache new file mode 100644 index 0000000..6153bd9 Binary files /dev/null and b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.assets.cache differ diff --git a/ImplementationTest/obj/Debug/net7.0/ImplementationTest.csproj.AssemblyReference.cache b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.csproj.AssemblyReference.cache new file mode 100644 index 0000000..2876ce9 Binary files /dev/null and b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.csproj.AssemblyReference.cache differ diff --git a/ImplementationTest/obj/Debug/net7.0/ImplementationTest.csproj.CopyComplete b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.csproj.CopyComplete new file mode 100644 index 0000000..e69de29 diff --git a/ImplementationTest/obj/Debug/net7.0/ImplementationTest.csproj.CoreCompileInputs.cache b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..eaa1720 --- /dev/null +++ b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +ae7ec3cd86a909b8f9ba49744000515440fee29c diff --git a/ImplementationTest/obj/Debug/net7.0/ImplementationTest.csproj.FileListAbsolute.txt b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..1716a5a --- /dev/null +++ b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.csproj.FileListAbsolute.txt @@ -0,0 +1,18 @@ +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\bin\Debug\net7.0\ImplementationTest.exe +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\bin\Debug\net7.0\ImplementationTest.deps.json +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\bin\Debug\net7.0\ImplementationTest.runtimeconfig.json +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\bin\Debug\net7.0\ImplementationTest.dll +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\bin\Debug\net7.0\ImplementationTest.pdb +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\bin\Debug\net7.0\LensSimulatorCore.dll +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\bin\Debug\net7.0\LensSimulatorCore.pdb +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\obj\Debug\net7.0\ImplementationTest.csproj.AssemblyReference.cache +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\obj\Debug\net7.0\ImplementationTest.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\obj\Debug\net7.0\ImplementationTest.AssemblyInfoInputs.cache +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\obj\Debug\net7.0\ImplementationTest.AssemblyInfo.cs +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\obj\Debug\net7.0\ImplementationTest.csproj.CoreCompileInputs.cache +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\obj\Debug\net7.0\ImplementationTest.csproj.CopyComplete +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\obj\Debug\net7.0\ImplementationTest.dll +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\obj\Debug\net7.0\refint\ImplementationTest.dll +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\obj\Debug\net7.0\ImplementationTest.pdb +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\obj\Debug\net7.0\ImplementationTest.genruntimeconfig.cache +C:\Users\tango\RiderProjects\LensSimulator\ImplementationTest\obj\Debug\net7.0\ref\ImplementationTest.dll diff --git a/ImplementationTest/obj/Debug/net7.0/ImplementationTest.dll b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.dll new file mode 100644 index 0000000..8d1a11d Binary files /dev/null and b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.dll differ diff --git a/ImplementationTest/obj/Debug/net7.0/ImplementationTest.genruntimeconfig.cache b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.genruntimeconfig.cache new file mode 100644 index 0000000..4033820 --- /dev/null +++ b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.genruntimeconfig.cache @@ -0,0 +1 @@ +c7d32dde6215c49d7a6f303cb22ed4bd115060e1 diff --git a/ImplementationTest/obj/Debug/net7.0/ImplementationTest.pdb b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.pdb new file mode 100644 index 0000000..d5e00ad Binary files /dev/null and b/ImplementationTest/obj/Debug/net7.0/ImplementationTest.pdb differ diff --git a/ImplementationTest/obj/Debug/net7.0/apphost.exe b/ImplementationTest/obj/Debug/net7.0/apphost.exe new file mode 100644 index 0000000..d758b9d Binary files /dev/null and b/ImplementationTest/obj/Debug/net7.0/apphost.exe differ diff --git a/ImplementationTest/obj/Debug/net7.0/ref/ImplementationTest.dll b/ImplementationTest/obj/Debug/net7.0/ref/ImplementationTest.dll new file mode 100644 index 0000000..185d2c1 Binary files /dev/null and b/ImplementationTest/obj/Debug/net7.0/ref/ImplementationTest.dll differ diff --git a/ImplementationTest/obj/Debug/net7.0/refint/ImplementationTest.dll b/ImplementationTest/obj/Debug/net7.0/refint/ImplementationTest.dll new file mode 100644 index 0000000..185d2c1 Binary files /dev/null and b/ImplementationTest/obj/Debug/net7.0/refint/ImplementationTest.dll differ diff --git a/ImplementationTest/obj/ImplementationTest.csproj.nuget.dgspec.json b/ImplementationTest/obj/ImplementationTest.csproj.nuget.dgspec.json new file mode 100644 index 0000000..4c98b28 --- /dev/null +++ b/ImplementationTest/obj/ImplementationTest.csproj.nuget.dgspec.json @@ -0,0 +1,132 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\tango\\RiderProjects\\LensSimulator\\ImplementationTest\\ImplementationTest.csproj": {} + }, + "projects": { + "C:\\Users\\tango\\RiderProjects\\LensSimulator\\ImplementationTest\\ImplementationTest.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\ImplementationTest\\ImplementationTest.csproj", + "projectName": "ImplementationTest", + "projectPath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\ImplementationTest\\ImplementationTest.csproj", + "packagesPath": "C:\\Users\\tango\\.nuget\\packages\\", + "outputPath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\ImplementationTest\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\tango\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net7.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "projectReferences": { + "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj": { + "projectPath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj" + } + } + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.201\\RuntimeIdentifierGraph.json" + } + } + }, + "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj", + "projectName": "LensSimulatorCore", + "projectPath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj", + "packagesPath": "C:\\Users\\tango\\.nuget\\packages\\", + "outputPath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\tango\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net7.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.201\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/ImplementationTest/obj/ImplementationTest.csproj.nuget.g.props b/ImplementationTest/obj/ImplementationTest.csproj.nuget.g.props new file mode 100644 index 0000000..4f8cd19 --- /dev/null +++ b/ImplementationTest/obj/ImplementationTest.csproj.nuget.g.props @@ -0,0 +1,16 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\tango\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + PackageReference + 6.5.0 + + + + + + \ No newline at end of file diff --git a/ImplementationTest/obj/ImplementationTest.csproj.nuget.g.targets b/ImplementationTest/obj/ImplementationTest.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/ImplementationTest/obj/ImplementationTest.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/ImplementationTest/obj/project.assets.json b/ImplementationTest/obj/project.assets.json new file mode 100644 index 0000000..38aa9d8 --- /dev/null +++ b/ImplementationTest/obj/project.assets.json @@ -0,0 +1,97 @@ +{ + "version": 3, + "targets": { + "net7.0": { + "LensSimulatorCore/1.0.0": { + "type": "project", + "framework": ".NETCoreApp,Version=v7.0", + "compile": { + "bin/placeholder/LensSimulatorCore.dll": {} + }, + "runtime": { + "bin/placeholder/LensSimulatorCore.dll": {} + } + } + } + }, + "libraries": { + "LensSimulatorCore/1.0.0": { + "type": "project", + "path": "../LensSimulatorCore/LensSimulatorCore.csproj", + "msbuildProject": "../LensSimulatorCore/LensSimulatorCore.csproj" + } + }, + "projectFileDependencyGroups": { + "net7.0": [ + "LensSimulatorCore >= 1.0.0" + ] + }, + "packageFolders": { + "C:\\Users\\tango\\.nuget\\packages\\": {}, + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\ImplementationTest\\ImplementationTest.csproj", + "projectName": "ImplementationTest", + "projectPath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\ImplementationTest\\ImplementationTest.csproj", + "packagesPath": "C:\\Users\\tango\\.nuget\\packages\\", + "outputPath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\ImplementationTest\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\tango\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net7.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "projectReferences": { + "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj": { + "projectPath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj" + } + } + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.201\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/ImplementationTest/obj/project.nuget.cache b/ImplementationTest/obj/project.nuget.cache new file mode 100644 index 0000000..6610d58 --- /dev/null +++ b/ImplementationTest/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "zzfWPpLxovBUeUaIeRuHv1gdRHaxAE9iflB77E2K2wNSPVTM2JgQIGd4I5550BR8+2tEI2pOQ7mS0QVnFHrFjw==", + "success": true, + "projectFilePath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\ImplementationTest\\ImplementationTest.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/ImplementationTest/obj/project.packagespec.json b/ImplementationTest/obj/project.packagespec.json new file mode 100644 index 0000000..718561d --- /dev/null +++ b/ImplementationTest/obj/project.packagespec.json @@ -0,0 +1 @@ +"restore":{"projectUniqueName":"C:\\Users\\tango\\RiderProjects\\LensSimulator\\ImplementationTest\\ImplementationTest.csproj","projectName":"ImplementationTest","projectPath":"C:\\Users\\tango\\RiderProjects\\LensSimulator\\ImplementationTest\\ImplementationTest.csproj","outputPath":"C:\\Users\\tango\\RiderProjects\\LensSimulator\\ImplementationTest\\obj\\","projectStyle":"PackageReference","fallbackFolders":["C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"],"originalTargetFrameworks":["net7.0"],"sources":{"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\":{},"C:\\Program Files\\dotnet\\library-packs":{},"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net7.0":{"targetAlias":"net7.0","projectReferences":{"C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj":{"projectPath":"C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj"}}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net7.0":{"targetAlias":"net7.0","imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"C:\\Program Files\\dotnet\\sdk\\7.0.201\\RuntimeIdentifierGraph.json"}} \ No newline at end of file diff --git a/ImplementationTest/obj/rider.project.restore.info b/ImplementationTest/obj/rider.project.restore.info new file mode 100644 index 0000000..b8f3184 --- /dev/null +++ b/ImplementationTest/obj/rider.project.restore.info @@ -0,0 +1 @@ +16859980894694798 \ No newline at end of file diff --git a/LensSimulator.sln b/LensSimulator.sln new file mode 100644 index 0000000..7b76e17 --- /dev/null +++ b/LensSimulator.sln @@ -0,0 +1,28 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LensSimulatorCore", "LensSimulatorCore\LensSimulatorCore.csproj", "{D40A259B-E5C3-4735-8363-F59539DF4146}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ImplementationTest", "ImplementationTest\ImplementationTest.csproj", "{CA24EDE5-4FDA-482A-A2D4-6670CB420124}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LensSimulatorWindows", "LensSimulatorWindows\LensSimulatorWindows.csproj", "{ACDB5AA7-0C3D-4923-9843-E850C3807041}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {D40A259B-E5C3-4735-8363-F59539DF4146}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D40A259B-E5C3-4735-8363-F59539DF4146}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D40A259B-E5C3-4735-8363-F59539DF4146}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D40A259B-E5C3-4735-8363-F59539DF4146}.Release|Any CPU.Build.0 = Release|Any CPU + {CA24EDE5-4FDA-482A-A2D4-6670CB420124}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CA24EDE5-4FDA-482A-A2D4-6670CB420124}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CA24EDE5-4FDA-482A-A2D4-6670CB420124}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CA24EDE5-4FDA-482A-A2D4-6670CB420124}.Release|Any CPU.Build.0 = Release|Any CPU + {ACDB5AA7-0C3D-4923-9843-E850C3807041}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {ACDB5AA7-0C3D-4923-9843-E850C3807041}.Debug|Any CPU.Build.0 = Debug|Any CPU + {ACDB5AA7-0C3D-4923-9843-E850C3807041}.Release|Any CPU.ActiveCfg = Release|Any CPU + {ACDB5AA7-0C3D-4923-9843-E850C3807041}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection +EndGlobal diff --git a/LensSimulator.sln.DotSettings.user b/LensSimulator.sln.DotSettings.user new file mode 100644 index 0000000..65b33a1 --- /dev/null +++ b/LensSimulator.sln.DotSettings.user @@ -0,0 +1,3 @@ + + INFO + True \ No newline at end of file diff --git a/LensSimulatorCore/Class1.cs b/LensSimulatorCore/Class1.cs new file mode 100644 index 0000000..27583e0 --- /dev/null +++ b/LensSimulatorCore/Class1.cs @@ -0,0 +1,15 @@ +using LensSimulatorCore.Shapes; + +namespace LensSimulatorCore; + +public class RayCastHitInfo +{ + public RayCastHitInfo(Point? hitPosition, double angleOfIncidence) + { + HitPosition = hitPosition; + AngleOfIncidence = angleOfIncidence; + } + + public Point? HitPosition { get; } + public double AngleOfIncidence { get; } +} \ No newline at end of file diff --git a/LensSimulatorCore/LensSimulatorCore.csproj b/LensSimulatorCore/LensSimulatorCore.csproj new file mode 100644 index 0000000..6836c68 --- /dev/null +++ b/LensSimulatorCore/LensSimulatorCore.csproj @@ -0,0 +1,9 @@ + + + + net7.0 + enable + enable + + + diff --git a/LensSimulatorCore/LightPathProperties.cs b/LensSimulatorCore/LightPathProperties.cs new file mode 100644 index 0000000..561adea --- /dev/null +++ b/LensSimulatorCore/LightPathProperties.cs @@ -0,0 +1,6 @@ +namespace LensSimulatorCore; + +public class LightPathProperties +{ + public double WaveLength { get; set; } +} \ No newline at end of file diff --git a/LensSimulatorCore/LightPathSection.cs b/LensSimulatorCore/LightPathSection.cs new file mode 100644 index 0000000..5f8b12a --- /dev/null +++ b/LensSimulatorCore/LightPathSection.cs @@ -0,0 +1,23 @@ +using LensSimulatorCore.Shapes; + +namespace LensSimulatorCore; + +public class LightPathSection +{ + public LightPathSection(PointVector initialPointVector, LightPathProperties properties) + { + _properties = properties; + _initialPointVector = initialPointVector; + } + + private readonly LightPathProperties _properties; + private readonly PointVector _initialPointVector; + + public Point Begin => _initialPointVector.Point; + public Point? End => GetRayCastHitInfo().HitPosition; + + private RayCastHitInfo GetRayCastHitInfo() + { + return true ? new RayCastHitInfo(new (4,5), 3) : null; + } +} \ No newline at end of file diff --git a/LensSimulatorCore/MathsLib/CoreMaths.cs b/LensSimulatorCore/MathsLib/CoreMaths.cs new file mode 100644 index 0000000..a057052 --- /dev/null +++ b/LensSimulatorCore/MathsLib/CoreMaths.cs @@ -0,0 +1,53 @@ +namespace LensSimulatorCore.MathsLib; + +public static class CoreMaths +{ + public static double CalculateLCM(double num1, double num2) + { + // Find the greater and lesser numbers + double greaterNum = Math.Max(num1, num2); + double lesserNum = Math.Min(num1, num2); + + // Calculate LCM using the formula: LCM = (num1 * num2) / GCD(num1, num2) + double lcm = (greaterNum * lesserNum) / CalculateGCD(greaterNum, lesserNum); + + // Return the LCM + return lcm; + } + + public static double CalculateGCD(double num1, double num2) + { + // Euclidean algorithm to calculate GCD + while (num2 != 0) + { + double temp = num2; + num2 = num1 % num2; + num1 = temp; + } + + // Return the GCD + return num1; + } + + public static List SolveQuadratic(double a, double b, double c) + { + var solutions = new List(); + + double discriminant = b * b - 4 * a * c; + if (discriminant < 0) + { + // If the discriminant is less than zero, then there are no real solutions + return solutions; + } + else + { + // Calculate both solutions + double sqrtDiscriminant = Math.Sqrt(discriminant); + double solution1 = (-b + sqrtDiscriminant) / (2 * a); + double solution2 = (-b - sqrtDiscriminant) / (2 * a); + solutions.Add(solution1); + solutions.Add(solution2); + return solutions; + } + } +} \ No newline at end of file diff --git a/LensSimulatorCore/Optical/Element.cs b/LensSimulatorCore/Optical/Element.cs new file mode 100644 index 0000000..9c8379e --- /dev/null +++ b/LensSimulatorCore/Optical/Element.cs @@ -0,0 +1,66 @@ +using LensSimulatorCore.Shapes; + +namespace LensSimulatorCore.Optical; + +/// +/// An Element contains two surfaces and material coefficients. +/// +public class Element +{ + //This section is for display and rendering + public List Polygon { get; set; } + + + //This section is for calculation + + private Material _material; + private readonly Surface[] _surfaces = new Surface[2]; + + + public Surface[] Surfaces => _surfaces; + + public Point Position { get; set; } + + public bool IsValid => !(Polygon[(Polygon.Count / 2) - 1].X > Polygon[(Polygon.Count / 2)].X); + public double Depth { get; } + public double Diameter { get; } + + public Element(Material material) + { + + } + + /// + /// + /// + /// Element Position + /// Total Element depth at the centre. + /// Diameter of the lens + /// + /// + /// + public Element(Point position, double depth, double diameter, Surface frontSurface, Surface rearSurface, Material material) + { + Polygon = new List(); + Surfaces[0] = frontSurface; + Surfaces[0].Parent = this; + Surfaces[0].IsFront = true; + + Surfaces[1] = rearSurface; + Surfaces[1].Parent = this; + Surfaces[1].IsFront = false; + + Depth = depth; + Diameter = diameter; + _material = material; + Position = position; + + foreach (var surface in Surfaces) + { + surface.UpdateSurfacePositions(); + surface.GeneratePolyLine(); + + Polygon.AddRange(surface.PolyLine); + } + } +} \ No newline at end of file diff --git a/LensSimulatorCore/Optical/FlatRefractive.cs b/LensSimulatorCore/Optical/FlatRefractive.cs new file mode 100644 index 0000000..ab43209 --- /dev/null +++ b/LensSimulatorCore/Optical/FlatRefractive.cs @@ -0,0 +1,44 @@ +using LensSimulatorCore.Shapes; + +namespace LensSimulatorCore.Optical; + +class FlatRefractive : SphericalSurface +{ + public FlatRefractive(Element parent) : base(parent) + { + + } + + public override void Calculate(Point hitPosition, Ray ray, SellmeierCoefficients s) + { + double n1, n2; + switch (IsFront) + { + case true: + n1 = s.AirRefractiveIndex(ray.Wavelength); + n2 = s.CalculateRefractiveIndex(ray.Wavelength); + break; + case false: + n1 = s.CalculateRefractiveIndex(ray.Wavelength); + n2 = s.AirRefractiveIndex(ray.Wavelength); + break; + default: + n1 = 0; + n2 = 0; + break; + } + + //need to convert vector to angle correctly + var count = ray.PointVectors.Count - 1; + var lineAngle = -Math.Atan2(ray.PointVectors[count].Vector.Y, ray.PointVectors[count].Vector.X); + const double normalAngle = 0; //Math.Asin(hitPosition.Y / (QuadraticSign * face.Radius)); + var angleOfIncidence = normalAngle + lineAngle; + var angleOfRefractionFromCentreline = Math.Asin((n1 * Math.Sin(angleOfIncidence)) / n2); + + var b = Math.Tan(angleOfRefractionFromCentreline); + var c = hitPosition.Y - (hitPosition.X * b); + + ray.PointVectors.Add(new PointVector(new Point(hitPosition.X, hitPosition.Y), Point.AngleToVector(angleOfRefractionFromCentreline))); + ray.Lines.Add(new Line(b, c)); + } +} \ No newline at end of file diff --git a/LensSimulatorCore/Optical/FlatSurface.cs b/LensSimulatorCore/Optical/FlatSurface.cs new file mode 100644 index 0000000..3d01daf --- /dev/null +++ b/LensSimulatorCore/Optical/FlatSurface.cs @@ -0,0 +1,65 @@ +using LensSimulatorCore.Shapes; +using static System.Double; + +namespace LensSimulatorCore.Optical; + +/// +/// Contains the function to find intersection of two Lines. +/// +class FlatSurface : Surface +{ + public override void UpdateSurfacePositions() + { + SideSign = IsFront ? -1 : 1; + _face = new Line(0, SideSign * Parent.Depth / 2); + } + + //This line is defined as x = by+c. It will need converting to y = bx+c. + private Line _face; + + /// + /// This function takes a PointVector and checks if there a collision between itself and a Line. + /// + /// A PointVector where (1,0) is 0 rad. + /// + public override Point FindIntersection(PointVector pointVector) + { + //Converts point vector to a line. + Line line = pointVector.ToLine(); + //This is where the conversion takes place to make it y = bx + c. + Line surfaceLine = new Line(1 / _face.B, (1 / _face.B) * _face.C); + + double x, y, t, u; + + //If C is infinity it means the line is vertical and can be solved by inserting x into the equation. + if (IsInfinity(surfaceLine.C)) + { + y = (line.B * _face.C) + line.C; + x = _face.C; + } + else //If not it means it is angled and therefore needs solving by substitution. + { + t = line.B + surfaceLine.B; + u = line.C + surfaceLine.C; + + x = t / u; + y = (line.B * x) + line.C; + } + + return new Point(x, y); + } + + /// + /// Generates a PolyLine, which can be merged with another to make a full element shape. + /// + public override void GeneratePolyLine() + { + PolyLine.Add(new Point(-SideSign * Parent.Depth / 2, SideSign * -Parent.Diameter / 2)); + PolyLine.Add(new Point(-SideSign * Parent.Depth / 2, SideSign * Parent.Diameter / 2)); + } + + protected FlatSurface(Element parent) : base(parent) + { + + } +} \ No newline at end of file diff --git a/LensSimulatorCore/Optical/Material.cs b/LensSimulatorCore/Optical/Material.cs new file mode 100644 index 0000000..118f4ae --- /dev/null +++ b/LensSimulatorCore/Optical/Material.cs @@ -0,0 +1,68 @@ +namespace LensSimulatorCore.Optical; + +public class Material +{ + public SellmeierCoefficients Sellmeier { get; set; } + + public double RefractiveIndex(double wavelength) + { + return Sellmeier.CalculateRefractiveIndex(wavelength); + } + + private readonly Func _reflectivity; + private readonly Func _transmissivity; + + public Material(SellmeierCoefficients sellmeierCoefficients) + { + Sellmeier = sellmeierCoefficients; + _reflectivity = ComputeReflectivity; + _transmissivity = (angle, n1, wavelength) => 1.0 - Reflectivity(angle, n1, wavelength); + } + + private double ComputeReflectivity(double angleDegrees, double n1, double wavelength) + { + // Convert angle to radians + var angleRadians = angleDegrees * Math.PI / 180.0; + + // Check for total internal reflection + var criticalAngle = Math.Asin(RefractiveIndex(wavelength) / n1); + if (angleRadians > criticalAngle) + { + return 1.0; + } + + var rs = ComputeFresnelCoefficient(angleRadians, n1, wavelength, isSPolarized: true); + var rp = ComputeFresnelCoefficient(angleRadians, n1, wavelength, isSPolarized: false); + return (rs + rp) / 2.0; + } + + private double ComputeFresnelCoefficient(double angle, double n1, double wavelength, bool isSPolarized) + { + double numerator; + double denominator; + + if (isSPolarized) + { + numerator = n1 * Math.Cos(angle) - RefractiveIndex(wavelength) * Math.Sqrt(1 - Math.Pow((n1 / RefractiveIndex(wavelength) * Math.Sin(angle)), 2)); + denominator = n1 * Math.Cos(angle) + RefractiveIndex(wavelength) * Math.Sqrt(1 - Math.Pow((n1 / RefractiveIndex(wavelength) * Math.Sin(angle)), 2)); + } + else + { + numerator = n1 * Math.Sqrt(1 - Math.Pow((n1 / RefractiveIndex(wavelength) * Math.Sin(angle)), 2)) - RefractiveIndex(wavelength) * Math.Cos(angle); + denominator = n1 * Math.Sqrt(1 - Math.Pow((n1 / RefractiveIndex(wavelength) * Math.Sin(angle)), 2)) + RefractiveIndex(wavelength) * Math.Cos(angle); + } + + return Math.Pow(numerator / denominator, 2); + } + + // ReSharper disable once MemberCanBePrivate.Global + public double Reflectivity(double angle, double n1, double wavelength) + { + return _reflectivity(angle, n1, wavelength); + } + + public double Transmissivity(double angle, double n1, double wavelength) + { + return _transmissivity(angle, n1, wavelength); + } +} \ No newline at end of file diff --git a/LensSimulatorCore/Optical/Optical.cs b/LensSimulatorCore/Optical/Optical.cs new file mode 100644 index 0000000..e774abb --- /dev/null +++ b/LensSimulatorCore/Optical/Optical.cs @@ -0,0 +1,16 @@ +using LensSimulatorCore.Shapes; + +namespace LensSimulatorCore.Optical +{ + public struct ElementHit + { + public Point hitPosition; + public Surface hitSurface; + + ElementHit(Point position, Surface surface) + { + hitPosition = position; + hitSurface = surface; + } + } +} \ No newline at end of file diff --git a/LensSimulatorCore/Optical/Ray.cs b/LensSimulatorCore/Optical/Ray.cs new file mode 100644 index 0000000..ada2324 --- /dev/null +++ b/LensSimulatorCore/Optical/Ray.cs @@ -0,0 +1,46 @@ +using LensSimulatorCore.Shapes; + +namespace LensSimulatorCore.Optical; + +/// +/// A Ray contains a Wavelength, a list of hit points and a list of lines. +/// +public struct Ray +{ + /// + /// + /// + /// Wavelength in µm + /// Angle in Radians + /// + public Ray(double wavelength, double angle, Point startPosition) + { + Wavelength = wavelength; + Lines = new List(); + PointVectors = new List(); + + Lines.Add(new Line(Math.Tan(-angle), startPosition.Y - (startPosition.X * Math.Tan(-angle)))); + PointVectors.Add(new PointVector(startPosition, new Point(Math.Cos(-angle),Math.Sin(-angle)))); + } + + public double Wavelength { get; } + + public List Lines { get; } + + public List PointVectors { get; set; } + + public ElementHit Cast(List elements) + { + List allSurfaces = elements[0].Surfaces.ToList(); + Point hitPosition; + ElementHit hit = new ElementHit(); + + foreach (Element element in elements) + { + + } + + return hit; + } + +} \ No newline at end of file diff --git a/LensSimulatorCore/Optical/SellmeierCoefficients.cs b/LensSimulatorCore/Optical/SellmeierCoefficients.cs new file mode 100644 index 0000000..1120d2c --- /dev/null +++ b/LensSimulatorCore/Optical/SellmeierCoefficients.cs @@ -0,0 +1,35 @@ +namespace LensSimulatorCore.Optical; + +public struct SellmeierCoefficients +{ + double _B1, _B2, _B3, _C1, _C2, _C3; + + public SellmeierCoefficients(double B1, double C1, double B2, double C2, double B3, double C3) + { + _B1 = B1; + _B2 = B2; + _B3 = B3; + _C1 = C1; + _C2 = C2; + _C3 = C3; + } + + public double CalculateRefractiveIndex(double Wavelength) + { + double wavelenths2 = Math.Pow(Wavelength, 2); + double A1 = _C1 != 0 ? _B1 / (1 - _C1 / wavelenths2) : 0; + double A2 = _C2 != 0 ? _B2 / (1 - _C2 / wavelenths2) : 0; + double A3 = _C3 != 0 ? _B3 / (1 - _C3 / wavelenths2) : 0; + + return Math.Sqrt(1 + A1 + A2 + A3); + } + + public double AirRefractiveIndex(double Wavelength) + { + double wavelenths2 = Math.Pow(Wavelength, 2); + double A1 = 238.0185 != 0 ? 0.05792105 / (1 - 238.0185 / wavelenths2) : 0; + double A2 = 57.362 != 0 ? 0.00167917 / (1 - 57.362 / wavelenths2) : 0; + + return Math.Sqrt(1 + A1 + A2); + } +} \ No newline at end of file diff --git a/LensSimulatorCore/Optical/SphericalRefractive.cs b/LensSimulatorCore/Optical/SphericalRefractive.cs new file mode 100644 index 0000000..9d2f5b3 --- /dev/null +++ b/LensSimulatorCore/Optical/SphericalRefractive.cs @@ -0,0 +1,46 @@ +using LensSimulatorCore.Shapes; + +namespace LensSimulatorCore.Optical; + +class SphericalRefractive : SphericalSurface +{ + public SphericalRefractive(double radius, Element parent) : base(parent) + { + face.Radius = radius; + } + + public override void Calculate(Point hitPosition, Ray ray, SellmeierCoefficients s) + { + double n1, n2; + switch (IsFront) + { + case true: + n1 = s.AirRefractiveIndex(ray.Wavelength); + n2 = s.CalculateRefractiveIndex(ray.Wavelength); + break; + case false: + n1 = s.CalculateRefractiveIndex(ray.Wavelength); + n2 = s.AirRefractiveIndex(ray.Wavelength); + break; + default: + n1 = 0; + n2 = 0; + break; + } + + //need to convert vector to angle correctly + var count = ray.PointVectors.Count - 1; + var lineAngle = -Math.Atan2(ray.PointVectors[count].Vector.Y, ray.PointVectors[count].Vector.X); + var normalAngle = Math.Asin(hitPosition.Y / (QuadraticSign * face.Radius)); + var angleOfIncidence = normalAngle + lineAngle; + var angleOfRefraction = Math.Asin((n1 * Math.Sin(angleOfIncidence)) / n2); + var angleOfRefractionFromCentreline = angleOfRefraction - normalAngle; + + double b, c; + b = Math.Tan(angleOfRefractionFromCentreline); + c = hitPosition.Y - (hitPosition.X * b); + + ray.PointVectors.Add(new PointVector(new Point(hitPosition.X, hitPosition.Y), Point.AngleToVector(angleOfRefractionFromCentreline))); + ray.Lines.Add(new Line(b, c)); + } +} \ No newline at end of file diff --git a/LensSimulatorCore/Optical/SphericalSurface.cs b/LensSimulatorCore/Optical/SphericalSurface.cs new file mode 100644 index 0000000..28f220d --- /dev/null +++ b/LensSimulatorCore/Optical/SphericalSurface.cs @@ -0,0 +1,64 @@ +using LensSimulatorCore.Shapes; + +namespace LensSimulatorCore.Optical; + +internal abstract class SphericalSurface : Surface +{ + protected Circle face; + + public override void UpdateSurfacePositions() + { + SideSign = IsFront ? -1 : 1; + QuadraticSign = IsFront ? -1 * Math.Sign(face.Radius) : 1 * Math.Sign(face.Radius); + face.Position = new Point((IsFront ? 1 : -1) * (face.Radius - (Parent.Depth / 2)), 0); + } + + public override Point FindIntersection(PointVector pointVector) + { + //Convert point vector to a line. + + var line = pointVector.ToLine(); + + var xs2 = (face.Position.X * -2); + var ys2 = (face.Position.Y * -2); + + double a, b, c; + + //Creates a quadratic formula via substitution of a Line and a Circle equation. + a = 1 + (Math.Pow(line.B, 2)); + b = xs2 + (ys2 * line.B) + (line.B * line.C * 2); + c = Math.Pow(line.C, 2) + (line.C * ys2) + Math.Pow(face.Position.X * -1, 2) + Math.Pow(face.Position.Y * -1, 2) - Math.Pow(face.Radius, 2); + + var x = (-b + QuadraticSign * Math.Sqrt(Math.Pow(b, 2) - 4 * a * c)) / (2 * a); + var y = (x * line.B) + line.C; + + return new Point(x, y); + } + + /// + /// Generates a PolyLine, which can be merged with another to make a full element shape. + /// + public override void GeneratePolyLine() + { + const int resolution = 80; + + var arcTotalSweep = Math.Asin((Parent.Diameter / 2) / face.Radius) * 2; + var arcResolutionSweep = arcTotalSweep / (resolution - 1); + + var arcCentre = new Point(face.Position.X, face.Position.Y); + + for (var i = 0; i < resolution; i++) + { + var currentAngle = (SideSign * arcTotalSweep / 2) + -SideSign * (arcResolutionSweep * i); + + var x = Math.Cos(currentAngle) * SideSign * face.Radius + arcCentre.X; + var y = Math.Sin(currentAngle) * face.Radius; + + PolyLine.Add(new Point(x, y)); + } + } + + protected SphericalSurface(Element parent) : base(parent) + { + } +} \ No newline at end of file diff --git a/LensSimulatorCore/Optical/Surface.cs b/LensSimulatorCore/Optical/Surface.cs new file mode 100644 index 0000000..7818df6 --- /dev/null +++ b/LensSimulatorCore/Optical/Surface.cs @@ -0,0 +1,48 @@ +using LensSimulatorCore.Shapes; + +namespace LensSimulatorCore.Optical; + +public abstract class Surface +{ + protected Surface(Element parent) + { + Parent = parent; + } + + public bool IsFront { get; set; } + protected int SideSign { get; set; } + + //This is the sign for front or rear. 1 if it is the front, -1 if it is the rear. + protected double QuadraticSign; + + /// + /// Parent Element of the Surface. + /// + public Element Parent { get; set; } + /// + /// All points go clockwise from the element centre. + /// + public List PolyLine { get; } = new(); + + /// + /// This function calculates the lines and points through a reflective element and applies this to the Ray given the glass properties. + /// + /// This defines if it is the front or rear surface, -1 if it is the front, 1 if it is the rear. + /// The Ray that will contain the results + public virtual void Calculate(int sign, Ray ray) { } + + /// + /// This function calculates the lines and points through a refractive element and applies this to the Ray given the glass properties. + /// + /// + /// This is the Ray that will contain the results + /// Sellmeier Coefficients + public virtual void Calculate(Point hitPosition, Ray ray, SellmeierCoefficients sellmeierCoefficients) { } + + //Functions + public abstract Point FindIntersection(PointVector pointVector); + + public abstract void UpdateSurfacePositions(); + + public abstract void GeneratePolyLine(); +} \ No newline at end of file diff --git a/LensSimulatorCore/Shapes/Circle.cs b/LensSimulatorCore/Shapes/Circle.cs new file mode 100644 index 0000000..fcef737 --- /dev/null +++ b/LensSimulatorCore/Shapes/Circle.cs @@ -0,0 +1,13 @@ +namespace LensSimulatorCore.Shapes; + +public class Circle : Ellipse +{ + public Circle(double radius, Point position) : base(0, radius, radius, position) + { + Radius = radius; + Position = position; + } + + public double Radius { get; set; } + public Point Position { get; set; } +} \ No newline at end of file diff --git a/LensSimulatorCore/Shapes/Ellipse.cs b/LensSimulatorCore/Shapes/Ellipse.cs new file mode 100644 index 0000000..7818a23 --- /dev/null +++ b/LensSimulatorCore/Shapes/Ellipse.cs @@ -0,0 +1,57 @@ +using LensSimulatorCore.MathsLib; +using LensSimulatorCore.Shapes; + +namespace LensSimulatorCore.Shapes; + +public class Ellipse +{ + public Ellipse(double angle, double semiMajorAxis, double semiMinorAxis, Point position) + { + _radianAngle = angle;//* (180 / Math.PI); + _semiMajorAxis = semiMajorAxis; + _semiMinorAxis = semiMinorAxis; + _position = position; + } + + private readonly double _semiMajorAxis; + private readonly double _semiMinorAxis; + private readonly Point _position; + private readonly double _radianAngle = 0; + + public List GetIntersectionPoints(Line line) + { + var cosTheta = Math.Cos(_radianAngle); + var sinTheta = Math.Sin(_radianAngle); + + var majorSquared = _semiMajorAxis * _semiMajorAxis; + var minorSquared = _semiMinorAxis * _semiMinorAxis; + + var LCM = CoreMaths.CalculateLCM(majorSquared, minorSquared); + + var intersectionMinusXpos = line.C - _position.X; + + var intersectionMinusXposCosTheta = (intersectionMinusXpos * cosTheta); + var intersectionMinusXposSinTheta = (intersectionMinusXpos * sinTheta); + var ySinTheta = _position.Y * sinTheta; + var yCosTheta = _position.Y * cosTheta; + var slopeCosTheta = line.B * cosTheta; + var slopeSinTheta = line.B * sinTheta; + + var a1 = minorSquared * Math.Pow(slopeCosTheta - sinTheta, 2); + var b1 = minorSquared * (slopeCosTheta - sinTheta) * (intersectionMinusXposCosTheta + ySinTheta) * 2; + var c1 = minorSquared * Math.Pow(intersectionMinusXposCosTheta + ySinTheta, 2); + + var a2 = majorSquared * Math.Pow(slopeSinTheta + cosTheta, 2); + var b2 = majorSquared * (slopeSinTheta + cosTheta) * (intersectionMinusXposSinTheta - yCosTheta) * 2; + var c2 = majorSquared * Math.Pow(intersectionMinusXposSinTheta - yCosTheta, 2); + + var a = a1 + a2; + var b = b1 + b2; + var c = c1 + c2 - LCM; + + var y = CoreMaths.SolveQuadratic(a, b, c); + + return y.Select(y => new Point(line.B * y!.Value + line.C, y.Value)).ToList(); + } +} + diff --git a/LensSimulatorCore/Shapes/Shapes.cs b/LensSimulatorCore/Shapes/Shapes.cs new file mode 100644 index 0000000..2aa4479 --- /dev/null +++ b/LensSimulatorCore/Shapes/Shapes.cs @@ -0,0 +1,74 @@ +namespace LensSimulatorCore.Shapes; + +public struct Line +{ + public double B { get; set; } + public double C { get; set; } + + public Line(double b, double c) + { + B = b; + C = c; + } +} + +public class Point +{ + public Point(double x, double y) + { + X = x; + Y = y; + } + + public double X { get; set; } + + public double Y { get; set; } + + /// + /// Converts an angle in Radians to a Vector. + /// + /// + /// + public static Point AngleToVector(double angle) + { + return new(Math.Cos(-angle), Math.Sin(-angle)); + } +} + +public struct PointVector +{ + public PointVector(Point point, Point vector) + { + Point = point; + Vector = vector; + } + + public Point Point { get; set; } + public Point Vector { get; set; } + + public Line ToLine() + { + var angle = -Math.Atan2(this.Vector.Y, this.Vector.X); + + var b = Math.Tan(angle); + var c = this.Point.Y - (this.Point.X * b); + + return new Line(b, c); + } +} + +/// +/// A circle as defined by (x - a)² + (y - b)² = r². +/// +//public struct Circle +//{ +// public double Radius { get; set; } +// +// public Point Position { get; set; } +// +// public Circle(double radius, Point position) +// { +// Radius = radius; +// Position = position; +// } +//} diff --git a/LensSimulatorCore/Workspace/LightSource.cs b/LensSimulatorCore/Workspace/LightSource.cs new file mode 100644 index 0000000..0c2f46e --- /dev/null +++ b/LensSimulatorCore/Workspace/LightSource.cs @@ -0,0 +1,11 @@ +namespace LensSimulatorCore.Workspace; + +public class LightSource +{ + public LightSource(LightPathSection section) + { + Section = section; + } + + private LightPathSection Section { get; set; } +} \ No newline at end of file diff --git a/LensSimulatorCore/Workspace/Workspace.cs b/LensSimulatorCore/Workspace/Workspace.cs new file mode 100644 index 0000000..5ffcec5 --- /dev/null +++ b/LensSimulatorCore/Workspace/Workspace.cs @@ -0,0 +1,9 @@ +using LensSimulatorCore.Optical; + +namespace LensSimulatorCore.Workspace; + +public class Workspace +{ + public List Elements = new List(); + public List LightSources = new List(); +} \ No newline at end of file diff --git a/LensSimulatorCore/bin/Debug/net7.0/LensSimulatorCore.deps.json b/LensSimulatorCore/bin/Debug/net7.0/LensSimulatorCore.deps.json new file mode 100644 index 0000000..e3882d3 --- /dev/null +++ b/LensSimulatorCore/bin/Debug/net7.0/LensSimulatorCore.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v7.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v7.0": { + "LensSimulatorCore/1.0.0": { + "runtime": { + "LensSimulatorCore.dll": {} + } + } + } + }, + "libraries": { + "LensSimulatorCore/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/LensSimulatorCore/bin/Debug/net7.0/LensSimulatorCore.dll b/LensSimulatorCore/bin/Debug/net7.0/LensSimulatorCore.dll new file mode 100644 index 0000000..00e8554 Binary files /dev/null and b/LensSimulatorCore/bin/Debug/net7.0/LensSimulatorCore.dll differ diff --git a/LensSimulatorCore/bin/Debug/net7.0/LensSimulatorCore.pdb b/LensSimulatorCore/bin/Debug/net7.0/LensSimulatorCore.pdb new file mode 100644 index 0000000..8831f5c Binary files /dev/null and b/LensSimulatorCore/bin/Debug/net7.0/LensSimulatorCore.pdb differ diff --git a/LensSimulatorCore/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs b/LensSimulatorCore/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs new file mode 100644 index 0000000..4257f4b --- /dev/null +++ b/LensSimulatorCore/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")] diff --git a/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.AssemblyInfo.cs b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.AssemblyInfo.cs new file mode 100644 index 0000000..8202f59 --- /dev/null +++ b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.42000 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("LensSimulatorCore")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("LensSimulatorCore")] +[assembly: System.Reflection.AssemblyTitleAttribute("LensSimulatorCore")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.AssemblyInfoInputs.cache b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.AssemblyInfoInputs.cache new file mode 100644 index 0000000..84ef80a --- /dev/null +++ b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +a4b71101a57db2e7cc53aa3368d6967e1ad39701 diff --git a/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.GeneratedMSBuildEditorConfig.editorconfig b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..26e8333 --- /dev/null +++ b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,11 @@ +is_global = true +build_property.TargetFramework = net7.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = LensSimulatorCore +build_property.ProjectDir = C:\Users\tango\RiderProjects\LensSimulator\LensSimulatorCore\ diff --git a/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.GlobalUsings.g.cs b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.assets.cache b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.assets.cache new file mode 100644 index 0000000..8b65f9f Binary files /dev/null and b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.assets.cache differ diff --git a/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.csproj.AssemblyReference.cache b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.csproj.AssemblyReference.cache new file mode 100644 index 0000000..1bd3aab Binary files /dev/null and b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.csproj.AssemblyReference.cache differ diff --git a/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.csproj.CoreCompileInputs.cache b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..c2391db --- /dev/null +++ b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +04bd4ca88629d5173ee0b51ca8fd93faa8aa5ffb diff --git a/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.csproj.FileListAbsolute.txt b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..4d8c1a8 --- /dev/null +++ b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.csproj.FileListAbsolute.txt @@ -0,0 +1,12 @@ +C:\Users\tango\RiderProjects\LensSimulator\LensSimulatorCore\bin\Debug\net7.0\LensSimulatorCore.deps.json +C:\Users\tango\RiderProjects\LensSimulator\LensSimulatorCore\bin\Debug\net7.0\LensSimulatorCore.dll +C:\Users\tango\RiderProjects\LensSimulator\LensSimulatorCore\bin\Debug\net7.0\LensSimulatorCore.pdb +C:\Users\tango\RiderProjects\LensSimulator\LensSimulatorCore\obj\Debug\net7.0\LensSimulatorCore.csproj.AssemblyReference.cache +C:\Users\tango\RiderProjects\LensSimulator\LensSimulatorCore\obj\Debug\net7.0\LensSimulatorCore.GeneratedMSBuildEditorConfig.editorconfig +C:\Users\tango\RiderProjects\LensSimulator\LensSimulatorCore\obj\Debug\net7.0\LensSimulatorCore.AssemblyInfoInputs.cache +C:\Users\tango\RiderProjects\LensSimulator\LensSimulatorCore\obj\Debug\net7.0\LensSimulatorCore.AssemblyInfo.cs +C:\Users\tango\RiderProjects\LensSimulator\LensSimulatorCore\obj\Debug\net7.0\LensSimulatorCore.csproj.CoreCompileInputs.cache +C:\Users\tango\RiderProjects\LensSimulator\LensSimulatorCore\obj\Debug\net7.0\LensSimulatorCore.dll +C:\Users\tango\RiderProjects\LensSimulator\LensSimulatorCore\obj\Debug\net7.0\refint\LensSimulatorCore.dll +C:\Users\tango\RiderProjects\LensSimulator\LensSimulatorCore\obj\Debug\net7.0\LensSimulatorCore.pdb +C:\Users\tango\RiderProjects\LensSimulator\LensSimulatorCore\obj\Debug\net7.0\ref\LensSimulatorCore.dll diff --git a/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.dll b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.dll new file mode 100644 index 0000000..00e8554 Binary files /dev/null and b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.dll differ diff --git a/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.pdb b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.pdb new file mode 100644 index 0000000..8831f5c Binary files /dev/null and b/LensSimulatorCore/obj/Debug/net7.0/LensSimulatorCore.pdb differ diff --git a/LensSimulatorCore/obj/Debug/net7.0/ref/LensSimulatorCore.dll b/LensSimulatorCore/obj/Debug/net7.0/ref/LensSimulatorCore.dll new file mode 100644 index 0000000..18dce07 Binary files /dev/null and b/LensSimulatorCore/obj/Debug/net7.0/ref/LensSimulatorCore.dll differ diff --git a/LensSimulatorCore/obj/Debug/net7.0/refint/LensSimulatorCore.dll b/LensSimulatorCore/obj/Debug/net7.0/refint/LensSimulatorCore.dll new file mode 100644 index 0000000..18dce07 Binary files /dev/null and b/LensSimulatorCore/obj/Debug/net7.0/refint/LensSimulatorCore.dll differ diff --git a/LensSimulatorCore/obj/LensSimulatorCore.csproj.nuget.dgspec.json b/LensSimulatorCore/obj/LensSimulatorCore.csproj.nuget.dgspec.json new file mode 100644 index 0000000..61a2df1 --- /dev/null +++ b/LensSimulatorCore/obj/LensSimulatorCore.csproj.nuget.dgspec.json @@ -0,0 +1,68 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj": {} + }, + "projects": { + "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj", + "projectName": "LensSimulatorCore", + "projectPath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj", + "packagesPath": "C:\\Users\\tango\\.nuget\\packages\\", + "outputPath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\tango\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net7.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.201\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/LensSimulatorCore/obj/LensSimulatorCore.csproj.nuget.g.props b/LensSimulatorCore/obj/LensSimulatorCore.csproj.nuget.g.props new file mode 100644 index 0000000..4f8cd19 --- /dev/null +++ b/LensSimulatorCore/obj/LensSimulatorCore.csproj.nuget.g.props @@ -0,0 +1,16 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\tango\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + PackageReference + 6.5.0 + + + + + + \ No newline at end of file diff --git a/LensSimulatorCore/obj/LensSimulatorCore.csproj.nuget.g.targets b/LensSimulatorCore/obj/LensSimulatorCore.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/LensSimulatorCore/obj/LensSimulatorCore.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/LensSimulatorCore/obj/project.assets.json b/LensSimulatorCore/obj/project.assets.json new file mode 100644 index 0000000..15ddd6a --- /dev/null +++ b/LensSimulatorCore/obj/project.assets.json @@ -0,0 +1,74 @@ +{ + "version": 3, + "targets": { + "net7.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net7.0": [] + }, + "packageFolders": { + "C:\\Users\\tango\\.nuget\\packages\\": {}, + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj", + "projectName": "LensSimulatorCore", + "projectPath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj", + "packagesPath": "C:\\Users\\tango\\.nuget\\packages\\", + "outputPath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\tango\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net7.0" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net7.0": { + "targetAlias": "net7.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.201\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/LensSimulatorCore/obj/project.nuget.cache b/LensSimulatorCore/obj/project.nuget.cache new file mode 100644 index 0000000..13e0de6 --- /dev/null +++ b/LensSimulatorCore/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "ELXZaLHeA3IsTYCqQkwLGNYurz6FePlxzL+hJrsoVI5FAJX5EGuAHPzCTYS/GslziBFyO44dObttce2pZ+NFkQ==", + "success": true, + "projectFilePath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/LensSimulatorCore/obj/project.packagespec.json b/LensSimulatorCore/obj/project.packagespec.json new file mode 100644 index 0000000..1e8287e --- /dev/null +++ b/LensSimulatorCore/obj/project.packagespec.json @@ -0,0 +1 @@ +"restore":{"projectUniqueName":"C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj","projectName":"LensSimulatorCore","projectPath":"C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\LensSimulatorCore.csproj","outputPath":"C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorCore\\obj\\","projectStyle":"PackageReference","fallbackFolders":["C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"],"originalTargetFrameworks":["net7.0"],"sources":{"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\":{},"C:\\Program Files\\dotnet\\library-packs":{},"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net7.0":{"targetAlias":"net7.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net7.0":{"targetAlias":"net7.0","imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"C:\\Program Files\\dotnet\\sdk\\7.0.201\\RuntimeIdentifierGraph.json"}} \ No newline at end of file diff --git a/LensSimulatorCore/obj/rider.project.restore.info b/LensSimulatorCore/obj/rider.project.restore.info new file mode 100644 index 0000000..9500d05 --- /dev/null +++ b/LensSimulatorCore/obj/rider.project.restore.info @@ -0,0 +1 @@ +16859882528181098 \ No newline at end of file diff --git a/LensSimulatorWindows/App.xaml b/LensSimulatorWindows/App.xaml new file mode 100644 index 0000000..fd2fb88 --- /dev/null +++ b/LensSimulatorWindows/App.xaml @@ -0,0 +1,9 @@ + + + + + diff --git a/LensSimulatorWindows/App.xaml.cs b/LensSimulatorWindows/App.xaml.cs new file mode 100644 index 0000000..6687d46 --- /dev/null +++ b/LensSimulatorWindows/App.xaml.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Data; +using System.Linq; +using System.Threading.Tasks; +using System.Windows; + +namespace LensSimulatorWindows +{ + /// + /// Interaction logic for App.xaml + /// + public partial class App : Application + { + } +} \ No newline at end of file diff --git a/LensSimulatorWindows/AssemblyInfo.cs b/LensSimulatorWindows/AssemblyInfo.cs new file mode 100644 index 0000000..4a05c7d --- /dev/null +++ b/LensSimulatorWindows/AssemblyInfo.cs @@ -0,0 +1,10 @@ +using System.Windows; + +[assembly: ThemeInfo( + ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located + //(used if a resource is not found in the page, + // or application resource dictionaries) + ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located + //(used if a resource is not found in the page, + // app, or any theme specific resource dictionaries) +)] \ No newline at end of file diff --git a/LensSimulatorWindows/LensSimulatorWindows.csproj b/LensSimulatorWindows/LensSimulatorWindows.csproj new file mode 100644 index 0000000..02bf8e8 --- /dev/null +++ b/LensSimulatorWindows/LensSimulatorWindows.csproj @@ -0,0 +1,10 @@ + + + + WinExe + net7.0-windows + enable + true + + + diff --git a/LensSimulatorWindows/MainWindow.xaml b/LensSimulatorWindows/MainWindow.xaml new file mode 100644 index 0000000..e7a5b3c --- /dev/null +++ b/LensSimulatorWindows/MainWindow.xaml @@ -0,0 +1,11 @@ + + + + diff --git a/LensSimulatorWindows/MainWindow.xaml.cs b/LensSimulatorWindows/MainWindow.xaml.cs new file mode 100644 index 0000000..0d617e9 --- /dev/null +++ b/LensSimulatorWindows/MainWindow.xaml.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace LensSimulatorWindows +{ + /// + /// Interaction logic for MainWindow.xaml + /// + public partial class MainWindow : Window + { + public MainWindow() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/LensSimulatorWindows/obj/Debug/net7.0-windows/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs b/LensSimulatorWindows/obj/Debug/net7.0-windows/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs new file mode 100644 index 0000000..4257f4b --- /dev/null +++ b/LensSimulatorWindows/obj/Debug/net7.0-windows/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")] diff --git a/LensSimulatorWindows/obj/Debug/net7.0-windows/App.g.cs b/LensSimulatorWindows/obj/Debug/net7.0-windows/App.g.cs new file mode 100644 index 0000000..f5c1458 --- /dev/null +++ b/LensSimulatorWindows/obj/Debug/net7.0-windows/App.g.cs @@ -0,0 +1,70 @@ +#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3E425E4B3F42BB166D9FF4C8B28F728A93B55702" +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using LensSimulatorWindows; +using System; +using System.Diagnostics; +using System.Windows; +using System.Windows.Automation; +using System.Windows.Controls; +using System.Windows.Controls.Primitives; +using System.Windows.Controls.Ribbon; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Ink; +using System.Windows.Input; +using System.Windows.Markup; +using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Media.Effects; +using System.Windows.Media.Imaging; +using System.Windows.Media.Media3D; +using System.Windows.Media.TextFormatting; +using System.Windows.Navigation; +using System.Windows.Shapes; +using System.Windows.Shell; + + +namespace LensSimulatorWindows { + + + /// + /// App + /// + public partial class App : System.Windows.Application { + + /// + /// InitializeComponent + /// + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.3.0")] + public void InitializeComponent() { + + #line 5 "..\..\..\App.xaml" + this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative); + + #line default + #line hidden + } + + /// + /// Application Entry Point. + /// + [System.STAThreadAttribute()] + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.3.0")] + public static void Main() { + LensSimulatorWindows.App app = new LensSimulatorWindows.App(); + app.InitializeComponent(); + app.Run(); + } + } +} + diff --git a/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows.AssemblyInfo.cs b/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows.AssemblyInfo.cs new file mode 100644 index 0000000..3a8bc8b --- /dev/null +++ b/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows.AssemblyInfo.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("LensSimulatorWindows")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("LensSimulatorWindows")] +[assembly: System.Reflection.AssemblyTitleAttribute("LensSimulatorWindows")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] +[assembly: System.Runtime.Versioning.TargetPlatformAttribute("Windows7.0")] +[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("Windows7.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows.AssemblyInfoInputs.cache b/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows.AssemblyInfoInputs.cache new file mode 100644 index 0000000..903f6c6 --- /dev/null +++ b/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +8d237d588aa3da25c5cc632e575a7f1756530966 diff --git a/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows.GeneratedMSBuildEditorConfig.editorconfig b/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..4de8cb0 --- /dev/null +++ b/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,11 @@ +is_global = true +build_property.TargetFramework = net7.0-windows +build_property.TargetPlatformMinVersion = 7.0 +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = LensSimulatorWindows +build_property.ProjectDir = C:\Users\tango\RiderProjects\LensSimulator\LensSimulatorWindows\ diff --git a/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows.assets.cache b/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows.assets.cache new file mode 100644 index 0000000..2e84d11 Binary files /dev/null and b/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows.assets.cache differ diff --git a/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows.csproj.AssemblyReference.cache b/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows.csproj.AssemblyReference.cache new file mode 100644 index 0000000..71ef5dd Binary files /dev/null and b/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows.csproj.AssemblyReference.cache differ diff --git a/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows_MarkupCompile.cache b/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows_MarkupCompile.cache new file mode 100644 index 0000000..ad5b056 --- /dev/null +++ b/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows_MarkupCompile.cache @@ -0,0 +1,20 @@ +LensSimulatorWindows + + +winexe +C# +.cs +C:\Users\tango\RiderProjects\LensSimulator\LensSimulatorWindows\obj\Debug\net7.0-windows\ +LensSimulatorWindows +none +false +TRACE;DEBUG;NET;NET7_0;NETCOREAPP +C:\Users\tango\RiderProjects\LensSimulator\LensSimulatorWindows\App.xaml +11407045341 + +3-1233169557 +1981462702791 +MainWindow.xaml; + +True + diff --git a/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows_MarkupCompile.lref b/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows_MarkupCompile.lref new file mode 100644 index 0000000..7f57c08 --- /dev/null +++ b/LensSimulatorWindows/obj/Debug/net7.0-windows/LensSimulatorWindows_MarkupCompile.lref @@ -0,0 +1,4 @@ + + +FC:\Users\tango\RiderProjects\LensSimulator\LensSimulatorWindows\MainWindow.xaml;; + diff --git a/LensSimulatorWindows/obj/Debug/net7.0-windows/MainWindow.g.cs b/LensSimulatorWindows/obj/Debug/net7.0-windows/MainWindow.g.cs new file mode 100644 index 0000000..cc5ef0e --- /dev/null +++ b/LensSimulatorWindows/obj/Debug/net7.0-windows/MainWindow.g.cs @@ -0,0 +1,75 @@ +#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "F00A131DD7A3DD8BE845A0DF7A7CAC5E61751361" +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using LensSimulatorWindows; +using System; +using System.Diagnostics; +using System.Windows; +using System.Windows.Automation; +using System.Windows.Controls; +using System.Windows.Controls.Primitives; +using System.Windows.Controls.Ribbon; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Ink; +using System.Windows.Input; +using System.Windows.Markup; +using System.Windows.Media; +using System.Windows.Media.Animation; +using System.Windows.Media.Effects; +using System.Windows.Media.Imaging; +using System.Windows.Media.Media3D; +using System.Windows.Media.TextFormatting; +using System.Windows.Navigation; +using System.Windows.Shapes; +using System.Windows.Shell; + + +namespace LensSimulatorWindows { + + + /// + /// MainWindow + /// + public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector { + + private bool _contentLoaded; + + /// + /// InitializeComponent + /// + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.3.0")] + public void InitializeComponent() { + if (_contentLoaded) { + return; + } + _contentLoaded = true; + System.Uri resourceLocater = new System.Uri("/LensSimulatorWindows;component/mainwindow.xaml", System.UriKind.Relative); + + #line 1 "..\..\..\MainWindow.xaml" + System.Windows.Application.LoadComponent(this, resourceLocater); + + #line default + #line hidden + } + + [System.Diagnostics.DebuggerNonUserCodeAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.3.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] + [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] + void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { + this._contentLoaded = true; + } + } +} + diff --git a/LensSimulatorWindows/obj/LensSimulatorWindows.csproj.nuget.dgspec.json b/LensSimulatorWindows/obj/LensSimulatorWindows.csproj.nuget.dgspec.json new file mode 100644 index 0000000..3aa70a6 --- /dev/null +++ b/LensSimulatorWindows/obj/LensSimulatorWindows.csproj.nuget.dgspec.json @@ -0,0 +1,71 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorWindows\\LensSimulatorWindows.csproj": {} + }, + "projects": { + "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorWindows\\LensSimulatorWindows.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorWindows\\LensSimulatorWindows.csproj", + "projectName": "LensSimulatorWindows", + "projectPath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorWindows\\LensSimulatorWindows.csproj", + "packagesPath": "C:\\Users\\tango\\.nuget\\packages\\", + "outputPath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorWindows\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\tango\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net7.0-windows" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net7.0-windows7.0": { + "targetAlias": "net7.0-windows", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net7.0-windows7.0": { + "targetAlias": "net7.0-windows", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + }, + "Microsoft.WindowsDesktop.App.WPF": { + "privateAssets": "none" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.201\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/LensSimulatorWindows/obj/LensSimulatorWindows.csproj.nuget.g.props b/LensSimulatorWindows/obj/LensSimulatorWindows.csproj.nuget.g.props new file mode 100644 index 0000000..4f8cd19 --- /dev/null +++ b/LensSimulatorWindows/obj/LensSimulatorWindows.csproj.nuget.g.props @@ -0,0 +1,16 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\tango\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + PackageReference + 6.5.0 + + + + + + \ No newline at end of file diff --git a/LensSimulatorWindows/obj/LensSimulatorWindows.csproj.nuget.g.targets b/LensSimulatorWindows/obj/LensSimulatorWindows.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/LensSimulatorWindows/obj/LensSimulatorWindows.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/LensSimulatorWindows/obj/project.assets.json b/LensSimulatorWindows/obj/project.assets.json new file mode 100644 index 0000000..73980a8 --- /dev/null +++ b/LensSimulatorWindows/obj/project.assets.json @@ -0,0 +1,77 @@ +{ + "version": 3, + "targets": { + "net7.0-windows7.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net7.0-windows7.0": [] + }, + "packageFolders": { + "C:\\Users\\tango\\.nuget\\packages\\": {}, + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorWindows\\LensSimulatorWindows.csproj", + "projectName": "LensSimulatorWindows", + "projectPath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorWindows\\LensSimulatorWindows.csproj", + "packagesPath": "C:\\Users\\tango\\.nuget\\packages\\", + "outputPath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorWindows\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\tango\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "net7.0-windows" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "C:\\Program Files\\dotnet\\library-packs": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net7.0-windows7.0": { + "targetAlias": "net7.0-windows", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "net7.0-windows7.0": { + "targetAlias": "net7.0-windows", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + }, + "Microsoft.WindowsDesktop.App.WPF": { + "privateAssets": "none" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.201\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/LensSimulatorWindows/obj/project.nuget.cache b/LensSimulatorWindows/obj/project.nuget.cache new file mode 100644 index 0000000..5421c7a --- /dev/null +++ b/LensSimulatorWindows/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "tMx/si8Azo8pLQQZ1y8LDLWgnL97KtIKP+QPux+NFbt94iuR3k9hdSwUFibdUVx1ZGCRbMScMdzjrA/JWDxs3w==", + "success": true, + "projectFilePath": "C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorWindows\\LensSimulatorWindows.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/LensSimulatorWindows/obj/project.packagespec.json b/LensSimulatorWindows/obj/project.packagespec.json new file mode 100644 index 0000000..a8d1c42 --- /dev/null +++ b/LensSimulatorWindows/obj/project.packagespec.json @@ -0,0 +1 @@ +"restore":{"projectUniqueName":"C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorWindows\\LensSimulatorWindows.csproj","projectName":"LensSimulatorWindows","projectPath":"C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorWindows\\LensSimulatorWindows.csproj","outputPath":"C:\\Users\\tango\\RiderProjects\\LensSimulator\\LensSimulatorWindows\\obj\\","projectStyle":"PackageReference","fallbackFolders":["C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"],"originalTargetFrameworks":["net7.0-windows"],"sources":{"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\":{},"C:\\Program Files\\dotnet\\library-packs":{},"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net7.0-windows7.0":{"targetAlias":"net7.0-windows","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net7.0-windows7.0":{"targetAlias":"net7.0-windows","imports":["net461","net462","net47","net471","net472","net48","net481"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"},"Microsoft.WindowsDesktop.App.WPF":{"privateAssets":"none"}},"runtimeIdentifierGraphPath":"C:\\Program Files\\dotnet\\sdk\\7.0.201\\RuntimeIdentifierGraph.json"}} \ No newline at end of file diff --git a/LensSimulatorWindows/obj/rider.project.restore.info b/LensSimulatorWindows/obj/rider.project.restore.info new file mode 100644 index 0000000..d8b654d --- /dev/null +++ b/LensSimulatorWindows/obj/rider.project.restore.info @@ -0,0 +1 @@ +16860059086001956 \ No newline at end of file