Class Trapezoid
- Assembly
- Alis.dll
The trapezoid class
internal class TrapezoidInheritance
Inherited Members
Constructors
Trapezoid(Point, Point, Edge, Edge)
Initializes a new instance of the Alis.Core.Physic.Common.Decomposition.Seidel.Trapezoid class
public Trapezoid(Point leftPoint, Point rightPoint, Edge top, Edge bottom)Parameters
leftPointPoint-
The left point
rightPointPoint-
The right point
topEdge-
The top
bottomEdge-
The bottom
Fields
Bottom
The bottom
public Edge BottomField Value
Inside
The inside
public bool InsideField Value
LeftPoint
The left point
public Point LeftPointField Value
LowerLeft
The lower left
public Trapezoid LowerLeftField Value
LowerRight
The lower right
public Trapezoid LowerRightField Value
RightPoint
The right point
public Point RightPointField Value
Sink
The sink
public Sink SinkField Value
Top
The top
public Edge TopField Value
UpperLeft
The upper left
public Trapezoid UpperLeftField Value
UpperRight
The upper right
public Trapezoid UpperRightField Value
Methods
AddPoints()
Adds the points
public void AddPoints()Contains(Point)
Describes whether this instance contains
public bool Contains(Point point)Parameters
pointPoint-
The point
Returns
- bool
-
The bool
GetVertices()
Gets the vertices
public List<Point> GetVertices()Returns
LineIntersect(Edge, float)
Lines the intersect using the specified edge
private Point LineIntersect(Edge edge, float x)Parameters
Returns
- Point
-
The point
TrimNeighbors()
Trims the neighbors
public void TrimNeighbors()UpdateLeft(Trapezoid, Trapezoid)
Updates the left using the specified ul
public void UpdateLeft(Trapezoid ul, Trapezoid ll)Parameters
UpdateLeftRight(Trapezoid, Trapezoid, Trapezoid, Trapezoid)
Updates the left right using the specified ul
public void UpdateLeftRight(Trapezoid ul, Trapezoid ll, Trapezoid ur, Trapezoid lr)Parameters
UpdateRight(Trapezoid, Trapezoid)
Updates the right using the specified ur
public void UpdateRight(Trapezoid ur, Trapezoid lr)