Class MonotoneMountain
- Assembly
- Alis.dll
The monotone mountain class
internal class MonotoneMountain
Inheritance
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.1
Field Value
Triangles
The triangles
public List<List<Point>> Triangles
Field Value
_convexPoints
The convex points
private readonly HashSet<Point> _convexPoints
Field Value
_head
The head
private Point _head
Field Value
_monoPoly
The mono poly
private readonly List<Point> _monoPoly
Field Value
_positive
The positive
private bool _positive
Field Value
_size
The size
private int _size
Field Value
_tail
The tail
private Point _tail
Field Value
Methods
Add(Point)
Adds the point
public void Add(Point point)
Parameters
point
Point-
The point
Angle(Point)
Angles the p
private float Angle(Point p)
Parameters
p
Point-
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
p
Point-
The
Returns
- bool
-
The bool
Process()
Processes this instance
public void Process()
Remove(Point)
Removes the point
public void Remove(Point point)
Parameters
point
Point-
The point
Triangulate()
Triangulates this instance
private void Triangulate()
Valid(Point)
Describes whether this instance valid
private bool Valid(Point p)
Parameters
p
Point-
The
Returns
- bool
-
The bool