Skip to content

Commit f009d93

Browse files
committed
update comments
1 parent 38f84dd commit f009d93

26 files changed

+78
-19
lines changed

Advanced.Algorithms/Binary/BaseConversion.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
namespace Advanced.Algorithms.Binary
55
{
6+
/// <summary>
7+
/// Base conversion implementation.
8+
/// </summary>
69
public class BaseConversion
710
{
811
/// <summary>

Advanced.Algorithms/Binary/Logarithm.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
namespace Advanced.Algorithms.Binary
22
{
3+
/// <summary>
4+
/// Logarithm calculator.
5+
/// </summary>
36
public class Logarithm
47
{
58
public static int CalcBase2LogFloor(int x)

Advanced.Algorithms/Combinatorics/Combination.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace Advanced.Algorithms.Combinatorics
44
{
5+
/// <summary>
6+
/// Combinations computer.
7+
/// </summary>
58
public class Combination
69
{
710
public static List<List<T>> Find<T>(List<T> input, int r, bool withRepetition)

Advanced.Algorithms/Combinatorics/Permutation.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace Advanced.Algorithms.Combinatorics
44
{
5+
/// <summary>
6+
/// Permutation computer.
7+
/// </summary>
58
public class Permutation
69
{
710
public static List<List<T>> Find<T>(List<T> input, int r, bool withRepetition = false)

Advanced.Algorithms/Combinatorics/Subset.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace Advanced.Algorithms.Combinatorics
44
{
5+
/// <summary>
6+
/// Subset computer.
7+
/// </summary>
58
public class Subset
69
{
710
public static List<List<T>> Find<T>(List<T> input)

Advanced.Algorithms/Distributed/LRUCache.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55

66
namespace Advanced.Algorithms.Distributed
77
{
8+
/// <summary>
9+
/// A least recently used cache implemetation.
10+
/// </summary>
811
public class LRUCache<K, V>
912
{
1013
private readonly int capacity;

Advanced.Algorithms/Geometry/ClosestPointPair.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
namespace Advanced.Algorithms.Geometry
66
{
7+
/// <summary>
8+
/// Closest-point pair finder.
9+
/// </summary>
710
public class ClosestPointPair
811
{
912
public static double Find(List<int[]> points)

Advanced.Algorithms/Geometry/LineIntersection.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
using System;
2-
using System.Linq;
32

43
namespace Advanced.Algorithms.Geometry
54
{
5+
/// <summary>
6+
/// Line intersection computer.
7+
/// </summary>
68
public class LineIntersection
79
{
810
/// <summary>
@@ -197,6 +199,9 @@ private static bool IsInsideLine(Line line, Point p, double tolerance)
197199

198200
}
199201

202+
/// <summary>
203+
/// Line extensions.
204+
/// </summary>
200205
public static class LineExtensions
201206
{
202207
public static bool Intersects(this Line lineA, Line lineB, int precision = 5)

Advanced.Algorithms/Geometry/PointInsidePolygon.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
namespace Advanced.Algorithms.Geometry
22
{
3-
3+
/// <summary>
4+
/// Implementesa method tp Check whether a given point is inside given polygon.
5+
/// </summary>
46
public class PointInsidePolygon
57
{
6-
/// <summary>
7-
/// Checks whether the given point is inside given polygon.
8-
/// </summary>
98
public static bool IsInside(Polygon polygon, Point point)
109
{
1110
//a imaginary ray line from point to right infinity

Advanced.Algorithms/Geometry/PointRotation.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
namespace Advanced.Algorithms.Geometry
44
{
5+
/// <summary>
6+
/// Rotates given point by given angle about given center.
7+
/// </summary>
58
public class PointRotation
69
{
710
public static Point Rotate(Point center, Point point, int angle)

0 commit comments

Comments
 (0)