Table of Contents

Class Trapezoid

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

Edge

Inside

The inside

public bool Inside

Field Value

bool

LeftPoint

The left point

public Point LeftPoint

Field Value

Point

LowerLeft

The lower left

public Trapezoid LowerLeft

Field Value

Trapezoid

LowerRight

The lower right

public Trapezoid LowerRight

Field Value

Trapezoid

RightPoint

The right point

public Point RightPoint

Field Value

Point

Sink

The sink

public Sink Sink

Field Value

Sink

Top

The top

public Edge Top

Field Value

Edge

UpperLeft

The upper left

public Trapezoid UpperLeft

Field Value

Trapezoid

UpperRight

The upper right

public Trapezoid UpperRight

Field Value

Trapezoid

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

List<Point>

The verts

LineIntersect(Edge, float)

Lines the intersect using the specified edge

private Point LineIntersect(Edge edge, float x)

Parameters

edge Edge

The edge

x float

The

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

ul Trapezoid

The ul

ll Trapezoid

The ll

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

ul Trapezoid

The ul

ll Trapezoid

The ll

ur Trapezoid

The ur

lr Trapezoid

The lr

UpdateRight(Trapezoid, Trapezoid)

Updates the right using the specified ur

public void UpdateRight(Trapezoid ur, Trapezoid lr)

Parameters

ur Trapezoid

The ur

lr Trapezoid

The lr