Class MonotoneMountain
- Assembly
- Alis.dll
The monotone mountain class
internal class MonotoneMountainInheritance
Inherited Members
Constructors
MonotoneMountain()
Initializes a new instance of the Alis.Core.Physic.Common.Decomposition.Seidel.MonotoneMountain class
public MonotoneMountain()Fields
PiSlop
The pi slop
private const float PiSlop = 3.1Field Value
Triangles
The triangles
public List<List<Point>> TrianglesField Value
_convexPoints
The convex points
private readonly HashSet<Point> _convexPointsField Value
_head
The head
private Point _headField Value
_monoPoly
The mono poly
private readonly List<Point> _monoPolyField Value
_positive
The positive
private bool _positiveField Value
_size
The size
private int _sizeField Value
_tail
The tail
private Point _tailField Value
Methods
Add(Point)
Adds the point
public void Add(Point point)Parameters
pointPoint-
The point
Angle(Point)
Angles the p
private float Angle(Point p)Parameters
pPoint-
The
Returns
- float
-
The float
AngleSign()
Describes whether this instance angle sign
private bool AngleSign()Returns
- bool
-
The bool
GenMonoPoly()
Gens the mono poly
private void GenMonoPoly()IsConvex(Point)
Describes whether this instance is convex
private bool IsConvex(Point p)Parameters
pPoint-
The
Returns
- bool
-
The bool
Process()
Processes this instance
public void Process()Remove(Point)
Removes the point
public void Remove(Point point)Parameters
pointPoint-
The point
Triangulate()
Triangulates this instance
private void Triangulate()Valid(Point)
Describes whether this instance valid
private bool Valid(Point p)Parameters
pPoint-
The
Returns
- bool
-
The bool