Class MEC
Provides method to calculate the minimum enclosing circle.
Inheritance
System.Object
MEC
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Oasys.Common.Logic
Assembly: Oasys.Common.dll
Syntax
public static class MEC
Fields
g_MinMaxBox
The minimum maximum box
Declaration
public static RectangleF g_MinMaxBox
Field Value
Type | Description |
---|---|
SharpDX.RectangleF |
g_MinMaxCorners
The minimum maximum corners
Declaration
public static Vector2[] g_MinMaxCorners
Field Value
Type | Description |
---|---|
SharpDX.Vector2[] |
g_NonCulledPoints
The non culled points
Declaration
public static Vector2[] g_NonCulledPoints
Field Value
Type | Description |
---|---|
SharpDX.Vector2[] |
Methods
FindMinimalBoundingCircle(List<Vector2>, out Vector2, out Single)
Finds the minimal bounding circle.
Declaration
public static void FindMinimalBoundingCircle(List<Vector2> points, out Vector2 center, out float radius)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<SharpDX.Vector2> | points | The points. |
SharpDX.Vector2 | center | The center. |
System.Single | radius | The radius. |
GetMec(List<Vector2>)
Returns the mininimum enclosing circle from a list of points.
Declaration
public static MEC.MecCircle GetMec(List<Vector2> points)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<SharpDX.Vector2> | points | The points. |
Returns
Type | Description |
---|---|
MEC.MecCircle | MecCircle. |
MakeConvexHull(List<Vector2>)
Makes the convex hull.
Declaration
public static List<Vector2> MakeConvexHull(List<Vector2> points)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<SharpDX.Vector2> | points | The points. |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<SharpDX.Vector2> | Points that make up a polygon's convex hull.. |