Skip to content

Commit

Permalink
V2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RusMermaid committed Oct 20, 2022
1 parent e1535ac commit 158772f
Show file tree
Hide file tree
Showing 42 changed files with 137 additions and 76 deletions.
Binary file added .DS_Store
Binary file not shown.
22 changes: 22 additions & 0 deletions .vs/HilbertsCurve_CS/xs/UserPrefs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<Properties>
<MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore />
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MultiItemStartupConfigurations />
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
<MonoDevelop.Ide.Workbench>
<Pads>
<Pad Id="ProjectPad">
<State name="__root__">
<Node name="HilbertsCurve_CS" expanded="True">
<Node name="HilbertsCurve_CS" selected="True" />
</Node>
</State>
</Pad>
<Pad Id="MonoDevelop.Debugger.WatchPad">
<State />
</Pad>
</Pads>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
</Properties>
27 changes: 27 additions & 0 deletions .vs/Hilberts_Curve_CS/xs/UserPrefs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<Properties>
<MonoDevelop.Ide.DebuggingService.Breakpoints>
<BreakpointStore />
</MonoDevelop.Ide.DebuggingService.Breakpoints>
<MultiItemStartupConfigurations />
<MonoDevelop.Ide.Workspace ActiveConfiguration="Debug" />
<MonoDevelop.Ide.Workbench ActiveDocument="Hilberts_Curve.cs">
<Files>
<File FileName="Hilberts_Curve.cs" Line="1" Column="1" />
</Files>
<Pads>
<Pad Id="ProjectPad">
<State name="__root__">
<Node name="Hilberts_Curve_CS" expanded="True">
<Node name="Hilberts_Curve_CS" expanded="True">
<Node name="Hilberts_Curve.cs" selected="True" />
</Node>
</Node>
</State>
</Pad>
<Pad Id="MonoDevelop.Debugger.WatchPad">
<State />
</Pad>
</Pads>
</MonoDevelop.Ide.Workbench>
<MonoDevelop.Ide.DebuggingService.PinnedWatches />
</Properties>

Large diffs are not rendered by default.

Binary file added HilbertsCurve_Python/.DS_Store
Binary file not shown.
10 changes: 10 additions & 0 deletions HilbertsCurve_Python/tester.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

from hilbertcurve import HilbertCurve, _binary_repr
p=2; n=2
a = [(0, 0), (0, 1), (1, 0), (1, 1)]
new_order_arr = []
hilbert_curve = HilbertCurve(p, n)

print(_binary_repr(10, 2*2))
print(hilbert_curve.distance_from_point([6, 9]))
#print(hilbert_curve.point_from_distance(6))
3 changes: 2 additions & 1 deletion HilbertsCurve.cs → Hilberts_Curve.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography;

namespace HilbertsCurve_CS
{
Expand Down
File renamed without changes.
25 changes: 25 additions & 0 deletions Hilberts_Curve_CS.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 25.0.1703.6
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Hilberts_Curve_CS", "Hilberts_Curve_CS.csproj", "{1BFD289A-F7C2-4475-88B6-A7D2EC4A7B6F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{1BFD289A-F7C2-4475-88B6-A7D2EC4A7B6F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1BFD289A-F7C2-4475-88B6-A7D2EC4A7B6F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1BFD289A-F7C2-4475-88B6-A7D2EC4A7B6F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1BFD289A-F7C2-4475-88B6-A7D2EC4A7B6F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {3C9EC47A-4C78-458C-83AD-CBC1448FD878}
EndGlobalSection
EndGlobal
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@
"compilationOptions": {},
"targets": {
".NETCoreApp,Version=v6.0": {
"HilbertsCurve_CS/1.0.0": {
"Hilberts_Curve_CS/1.0.0": {
"runtime": {
"HilbertsCurve_CS.dll": {}
"Hilberts_Curve_CS.dll": {}
}
}
}
},
"libraries": {
"HilbertsCurve_CS/1.0.0": {
"Hilberts_Curve_CS/1.0.0": {
"type": "project",
"serviceable": false,
"sha512": ""
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
1 change: 0 additions & 1 deletion obj/Debug/net6.0/HilbertsCurve_CS.AssemblyInfoInputs.cache

This file was deleted.

Binary file not shown.

This file was deleted.

12 changes: 0 additions & 12 deletions obj/Debug/net6.0/HilbertsCurve_CS.csproj.FileListAbsolute.txt

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
using System;
using System.Reflection;

[assembly: System.Reflection.AssemblyCompanyAttribute("HilbertsCurve_CS")]
[assembly: System.Reflection.AssemblyCompanyAttribute("Hilberts_Curve_CS")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("HilbertsCurve_CS")]
[assembly: System.Reflection.AssemblyTitleAttribute("HilbertsCurve_CS")]
[assembly: System.Reflection.AssemblyProductAttribute("Hilberts_Curve_CS")]
[assembly: System.Reflection.AssemblyTitleAttribute("Hilberts_Curve_CS")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]

// Generated by the MSBuild WriteCodeFragment class.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
5422f7f04140b8e4b86422005d48bafb3df0eb5d
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ build_property.ProjectTypeGuids =
build_property.InvariantGlobalization =
build_property.PlatformNeutralAssembly =
build_property._SupportedPlatformList = Linux,macOS,Windows
build_property.RootNamespace = HilbertsCurve_CS
build_property.ProjectDir = /Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/HilbertsCurve_CS/HilbertsCurve_CS/
build_property.RootNamespace = Hilberts_Curve_CS
build_property.ProjectDir = /Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
39b9f0f6893dcc590e3f5ad8289f072bfaf9fae7
24 changes: 24 additions & 0 deletions obj/Debug/net6.0/Hilberts_Curve_CS.csproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS/bin/Debug/net6.0/Hilberts_Curve_CS.deps.json
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS/bin/Debug/net6.0/Hilberts_Curve_CS.dll
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS/bin/Debug/net6.0/Hilberts_Curve_CS.pdb
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS/obj/Debug/net6.0/Hilberts_Curve_CS.csproj.AssemblyReference.cache
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS/obj/Debug/net6.0/Hilberts_Curve_CS.GeneratedMSBuildEditorConfig.editorconfig
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS/obj/Debug/net6.0/Hilberts_Curve_CS.AssemblyInfoInputs.cache
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS/obj/Debug/net6.0/Hilberts_Curve_CS.AssemblyInfo.cs
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS/obj/Debug/net6.0/Hilberts_Curve_CS.csproj.CoreCompileInputs.cache
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS/obj/Debug/net6.0/Hilberts_Curve_CS.dll
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS/obj/Debug/net6.0/refint/Hilberts_Curve_CS.dll
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS/obj/Debug/net6.0/Hilberts_Curve_CS.pdb
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS/obj/Debug/net6.0/ref/Hilberts_Curve_CS.dll
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/bin/Debug/net6.0/Hilberts_Curve_CS.deps.json
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/bin/Debug/net6.0/Hilberts_Curve_CS.dll
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/bin/Debug/net6.0/Hilberts_Curve_CS.pdb
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/obj/Debug/net6.0/Hilberts_Curve_CS.csproj.AssemblyReference.cache
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/obj/Debug/net6.0/Hilberts_Curve_CS.GeneratedMSBuildEditorConfig.editorconfig
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/obj/Debug/net6.0/Hilberts_Curve_CS.AssemblyInfoInputs.cache
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/obj/Debug/net6.0/Hilberts_Curve_CS.AssemblyInfo.cs
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/obj/Debug/net6.0/Hilberts_Curve_CS.csproj.CoreCompileInputs.cache
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/obj/Debug/net6.0/Hilberts_Curve_CS.dll
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/obj/Debug/net6.0/refint/Hilberts_Curve_CS.dll
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/obj/Debug/net6.0/Hilberts_Curve_CS.pdb
/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/obj/Debug/net6.0/ref/Hilberts_Curve_CS.dll
Binary file not shown.
Binary file not shown.
Binary file removed obj/Debug/net6.0/ref/HilbertsCurve_CS.dll
Binary file not shown.
Binary file added obj/Debug/net6.0/ref/Hilberts_Curve_CS.dll
Binary file not shown.
Binary file removed obj/Debug/net6.0/refint/HilbertsCurve_CS.dll
Binary file not shown.
Binary file added obj/Debug/net6.0/refint/Hilberts_Curve_CS.dll
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{
"format": 1,
"restore": {
"/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/HilbertsCurve_CS/HilbertsCurve_CS/HilbertsCurve_CS.csproj": {}
"/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS.csproj": {}
},
"projects": {
"/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/HilbertsCurve_CS/HilbertsCurve_CS/HilbertsCurve_CS.csproj": {
"/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/HilbertsCurve_CS/HilbertsCurve_CS/HilbertsCurve_CS.csproj",
"projectName": "HilbertsCurve_CS",
"projectPath": "/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/HilbertsCurve_CS/HilbertsCurve_CS/HilbertsCurve_CS.csproj",
"projectUniqueName": "/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS.csproj",
"projectName": "Hilberts_Curve_CS",
"projectPath": "/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS.csproj",
"packagesPath": "/Users/rus_mermaid/.nuget/packages/",
"outputPath": "/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/HilbertsCurve_CS/HilbertsCurve_CS/obj/",
"outputPath": "/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/Users/rus_mermaid/.nuget/NuGet/NuGet.Config"
Expand Down
File renamed without changes.
File renamed without changes.
22 changes: 0 additions & 22 deletions obj/Release/net6.0/HilbertsCurve_CS.AssemblyInfo.cs

This file was deleted.

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions obj/Release/net6.0/HilbertsCurve_CS.GlobalUsings.g.cs

This file was deleted.

Binary file removed obj/Release/net6.0/HilbertsCurve_CS.assets.cache
Binary file not shown.
Binary file not shown.
8 changes: 4 additions & 4 deletions obj/project.assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/HilbertsCurve_CS/HilbertsCurve_CS/HilbertsCurve_CS.csproj",
"projectName": "HilbertsCurve_CS",
"projectPath": "/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/HilbertsCurve_CS/HilbertsCurve_CS/HilbertsCurve_CS.csproj",
"projectUniqueName": "/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS.csproj",
"projectName": "Hilberts_Curve_CS",
"projectPath": "/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS.csproj",
"packagesPath": "/Users/rus_mermaid/.nuget/packages/",
"outputPath": "/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/HilbertsCurve_CS/HilbertsCurve_CS/obj/",
"outputPath": "/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/obj/",
"projectStyle": "PackageReference",
"configFilePaths": [
"/Users/rus_mermaid/.nuget/NuGet/NuGet.Config"
Expand Down
4 changes: 2 additions & 2 deletions obj/project.nuget.cache
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version": 2,
"dgSpecHash": "qoLcw850jiJfPD92NXyh6rdtcd0/lNDOZ+1Fv0V3z01iEfdXNUH+JDdHmP941F1dtCKmjpSJbUKZzIzn7qHbTQ==",
"dgSpecHash": "EMtbsD9PZWIafv+t60LwbofazajGiyq+nuhbsvOH/OezEkOXeBuAWbGmIV0Oo/fsMB5p4NNw9pseAuSpgvJ0mA==",
"success": true,
"projectFilePath": "/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/HilbertsCurve_CS/HilbertsCurve_CS/HilbertsCurve_CS.csproj",
"projectFilePath": "/Users/rus_mermaid/Desktop/Hard_Drive_SSD/Macbook_ProM1_2022/CP_projects/Hilberts_Curve_CS/Hilberts_Curve_CS.csproj",
"expectedPackageFiles": [],
"logs": []
}

0 comments on commit 158772f

Please sign in to comment.