Skip to content

Commit

Permalink
Renamed repo
Browse files Browse the repository at this point in the history
  • Loading branch information
SommerEngineering committed Jan 12, 2020
1 parent df7c9e1 commit 141b9a6
Show file tree
Hide file tree
Showing 12 changed files with 62 additions and 62 deletions.
2 changes: 1 addition & 1 deletion NoiseEngine/Contracts/INoiseEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace CubicNoise.Contracts
namespace NoiseEngine.Contracts
{
/// <summary>
/// An interface which each noise generator must implement.
Expand Down
2 changes: 1 addition & 1 deletion NoiseEngine/Contracts/IParameterName.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace CubicNoise.Contracts
namespace NoiseEngine.Contracts
{
/// <summary>
/// An interface which gets used to provide arbitrary parameter names
Expand Down
4 changes: 2 additions & 2 deletions NoiseEngine/EngineParameters.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Text;
using CubicNoise.Contracts;
using NoiseEngine.Contracts;

namespace CubicNoise
namespace NoiseEngine
{
/// <summary>
/// This class stores all parameters needed to create a noise engine instance.
Expand Down
4 changes: 2 additions & 2 deletions NoiseEngine/Extensions.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Text;
using CubicNoise.Noisers;
using NoiseEngine.Noisers;

namespace CubicNoise
namespace NoiseEngine
{
/// <summary>
/// Extension methods for this library.
Expand Down
48 changes: 24 additions & 24 deletions NoiseEngine/NoiseEngine.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions NoiseEngine/NoiseEngine.cs → NoiseEngine/NoiseProcessor.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;
using CubicNoise.Contracts;
using CubicNoise.Noisers;
using NoiseEngine.Contracts;
using NoiseEngine.Noisers;

namespace CubicNoise
namespace NoiseEngine
{
/// <summary>
/// The main class of the library. You should use it to generate a noise engine. This class is thread-safe.
Expand All @@ -14,11 +14,11 @@ namespace CubicNoise
///
/// Not only the factory method is thread-safe. Each instance of the class is thread-safe as well.
/// </summary>
public sealed class NoiseEngine : INoiseEngine
public sealed class NoiseProcessor : INoiseEngine
{
private readonly INoiseEngine engine;

private NoiseEngine(NoiseTypes type, int seed, IReadOnlyDictionary<IParameterName, int> intParameters)
private NoiseProcessor(NoiseTypes type, int seed, IReadOnlyDictionary<IParameterName, int> intParameters)
{
this.engine = type switch
{
Expand All @@ -36,7 +36,7 @@ private NoiseEngine(NoiseTypes type, int seed, IReadOnlyDictionary<IParameterNam
/// </summary>
/// <param name="parameters">The parameters for the desired noise engine.</param>
/// <returns>The desired noise engine instance.</returns>
public static NoiseEngine Create(EngineParameters parameters) => new NoiseEngine(parameters.Type, parameters.Seed, parameters?.IntParameters);
public static NoiseProcessor Create(EngineParameters parameters) => new NoiseProcessor(parameters.Type, parameters.Seed, parameters?.IntParameters);

/// <summary>
/// Yields a one-dimensional based noise value. This method is thread-safe as well. Call it from as
Expand Down
2 changes: 1 addition & 1 deletion NoiseEngine/NoiseTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Text;

namespace CubicNoise
namespace NoiseEngine
{
/// <summary>
/// All implemented noise generators.
Expand Down
4 changes: 2 additions & 2 deletions NoiseEngine/Noisers/CubicNoiseEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
using CubicNoise.Contracts;
using NoiseEngine.Contracts;

namespace CubicNoise.Noisers
namespace NoiseEngine.Noisers
{
/// <summary>
/// This is the cubic noise engine by Job Talle, cf. https://jobtalle.com/cubic_noise.html. It based on the
Expand Down
4 changes: 2 additions & 2 deletions NoiseEngine/Noisers/CubicNoiseIntParameters.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Text;
using CubicNoise.Contracts;
using NoiseEngine.Contracts;

namespace CubicNoise.Noisers
namespace NoiseEngine.Noisers
{
/// <summary>
/// This class contains all known cubic noise's parameters.
Expand Down
4 changes: 2 additions & 2 deletions NoiseEngine/Noisers/RandomNumberEngine.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using System;
using System.Collections.Generic;
using System.Text;
using CubicNoise.Contracts;
using NoiseEngine.Contracts;

namespace CubicNoise.Noisers
namespace NoiseEngine.Noisers
{
/// <summary>
/// This is the random number engine which gets used in case that the UNKNOWN type was used.
Expand Down
22 changes: 11 additions & 11 deletions NoiseEngineTests/CubicNoiseTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using CubicNoise;
using CubicNoise.Contracts;
using CubicNoise.Noisers;
using NoiseEngine;
using NoiseEngine.Contracts;
using NoiseEngine.Noisers;
using NUnit.Framework;

namespace CubicNoiseTests
namespace NoiseEngineTests
{
public class CubicNoiseTests
public class NoiseEngineTests
{
[Test]
public void TestValidity()
{
var engineO57PX12PY16 = NoiseEngine.Create(new EngineParameters
var engineO57PX12PY16 = NoiseProcessor.Create(new EngineParameters
{
Seed = "test seed".GetDeterministicHashCode(),
Type = NoiseTypes.CUBIC_NOISE,
Expand All @@ -26,7 +26,7 @@ public void TestValidity()
},
});

var engineO45PX16PY99 = NoiseEngine.Create(new EngineParameters
var engineO45PX16PY99 = NoiseProcessor.Create(new EngineParameters
{
Seed = "test seed".GetDeterministicHashCode(),
Type = NoiseTypes.CUBIC_NOISE,
Expand Down Expand Up @@ -113,7 +113,7 @@ public void Performance1Second2D()
var counter = 0;
var sum = 0L;

var engine = NoiseEngine.Create(new EngineParameters
var engine = NoiseProcessor.Create(new EngineParameters
{
Seed = "test seed".GetHashCode(),
Type = NoiseTypes.CUBIC_NOISE,
Expand Down Expand Up @@ -154,7 +154,7 @@ public void Performance30Seconds2D()
var counter = 0;
var sum = 0L;

var engine = NoiseEngine.Create(new EngineParameters
var engine = NoiseProcessor.Create(new EngineParameters
{
Seed = "test seed".GetHashCode(),
Type = NoiseTypes.CUBIC_NOISE,
Expand Down Expand Up @@ -195,7 +195,7 @@ public void Performance1Second1D()
var counter = 0;
var sum = 0L;

var engine = NoiseEngine.Create(new EngineParameters
var engine = NoiseProcessor.Create(new EngineParameters
{
Seed = "test seed".GetHashCode(),
Type = NoiseTypes.CUBIC_NOISE,
Expand Down Expand Up @@ -235,7 +235,7 @@ public void Performance30Seconds1D()
var counter = 0;
var sum = 0L;

var engine = NoiseEngine.Create(new EngineParameters
var engine = NoiseProcessor.Create(new EngineParameters
{
Seed = "test seed".GetHashCode(),
Type = NoiseTypes.CUBIC_NOISE,
Expand Down
Loading

0 comments on commit 141b9a6

Please sign in to comment.