C# Class Ensage.Common.Algorithm

Static class for holding general algorithm implementations
Exibir arquivo Open project: EnsageSharp/Ensage.Common

Public Methods

Method Description
MaximalEnclosingCircle ( uint>.List vector, float radius ) : System.Vector2

Finds a circle enclosing the maximum possible number of given vectors, with their weights.

MaximalEnclosingCircle ( List vector, float radius ) : System.Vector2

Finds a circle enclosing the maximum possible number of given vectors.

Private Methods

Method Description
MaximalEnclosingCircleCompare ( uint>.List vector, float radius, System.Vector2 candidate, System.Vector2 &oldCenter, uint &oldContain ) : void

Method Details

MaximalEnclosingCircle() public static method

Finds a circle enclosing the maximum possible number of given vectors, with their weights.
Thrown when vector list is empty or radius is negative
public static MaximalEnclosingCircle ( uint>.List vector, float radius ) : System.Vector2
vector uint>.List List of the Tuples containing vectors and weight of the vector.
radius float Radius of the enclosing circle
return System.Vector2

MaximalEnclosingCircle() public static method

Finds a circle enclosing the maximum possible number of given vectors.
Thrown when vector list is empty or radius is negative
public static MaximalEnclosingCircle ( List vector, float radius ) : System.Vector2
vector List List of the vectors.
radius float Radius of the enclosing circle
return System.Vector2