Class Trapezoid
- Assembly
- Alis.dll
The trapezoid class
internal class Trapezoid
Inheritance
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
leftPoint
Point-
The left point
rightPoint
Point-
The right point
top
Edge-
The top
bottom
Edge-
The bottom
Fields
Bottom
The bottom
public Edge Bottom
Field Value
Inside
The inside
public bool Inside
Field Value
LeftPoint
The left point
public Point LeftPoint
Field Value
LowerLeft
The lower left
public Trapezoid LowerLeft
Field Value
LowerRight
The lower right
public Trapezoid LowerRight
Field Value
RightPoint
The right point
public Point RightPoint
Field Value
Sink
The sink
public Sink Sink
Field Value
Top
The top
public Edge Top
Field Value
UpperLeft
The upper left
public Trapezoid UpperLeft
Field Value
UpperRight
The upper right
public Trapezoid UpperRight
Field Value
Methods
AddPoints()
Adds the points
public void AddPoints()
Contains(Point)
Describes whether this instance contains
public bool Contains(Point point)
Parameters
point
Point-
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)