Added missing summeries #1

This commit is contained in:
Michel Fedde 2021-03-17 17:09:59 +01:00
parent 03d99ea28e
commit 8665b5b709
104 changed files with 1165 additions and 821 deletions

View file

@ -6,7 +6,7 @@ using System.Reflection;
#endregion
namespace SM.Utility
namespace SM.Base.Utility
{
/// <summary>
/// Contains utility functions for handling with assemblies.

View file

@ -1,4 +1,4 @@
namespace SM.Utility
namespace SM.Base.Utility
{
/// <summary>
/// A assistant to control the delta time.

View file

@ -1,5 +1,8 @@
namespace SM.Utility
namespace SM.Base.Utility
{
/// <summary>
///
/// </summary>
public interface IInitializable
{
bool IsInitialized { get; set; }

View file

@ -1,13 +1,11 @@
#region usings
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
#endregion
namespace SM.Utility
namespace SM.Base.Utility
{
/// <summary>
/// A global helper class for randomization.
@ -85,7 +83,7 @@ namespace SM.Utility
}
/// <summary>
/// Gets a random item from the provided list.
/// Gets a random item from the provided list.
/// </summary>
public static TSource GetRandomItem<TSource>(this IList<TSource> list)
{

View file

@ -1,11 +1,12 @@
using System;
using System.Windows;
#region usings
using System;
using OpenTK;
using SM.Base.Drawing;
using SM.Base.Scene;
using SM.OGL.Mesh;
namespace SM.Utility
#endregion
namespace SM.Base.Utility
{
public struct Ray
{
@ -23,9 +24,9 @@ namespace SM.Utility
distance = 0.0f;
float tMin = 0.0f;
float tMax = 100000.0f;
Vector3 delta = modelMatrix.Row3.Xyz - Position;
for (int i = 0; i < 3; i++)
{
Vector3 axis = new Vector3(modelMatrix[i, 0], modelMatrix[i, 1], modelMatrix[i, 2]);
@ -35,7 +36,6 @@ namespace SM.Utility
if (Math.Abs(f) > 0.001f)
{
float t1 = (e + box.Min[i]) / f;
float t2 = (e + box.Max[i]) / f;
@ -54,7 +54,7 @@ namespace SM.Utility
}
else
{
if (-e + box.Min[i] > 0.0f || -e + box.Max[i] < 0.0f)
if (-e + box.Min[i] > 0.0f || -e + box.Max[i] < 0.0f)
return false;
}
}

View file

@ -5,7 +5,7 @@ using OpenTK;
#endregion
namespace SM.Utility
namespace SM.Base.Utility
{
/// <summary>
/// Utilitys for rotations

View file

@ -1,7 +1,6 @@
namespace SM.Utility
namespace SM.Base.Utility
{
public class ShaderUtility
{
}
}

View file

@ -1,6 +1,10 @@
using System;
#region usings
namespace SM.Utility
using System;
#endregion
namespace SM.Base.Utility
{
public class Util
{
@ -11,6 +15,7 @@ namespace SM.Utility
obj.Initialization();
obj.IsInitialized = true;
}
obj.Activate();
}