Glade Reference
A pointList represents a list (actually an array) of points.
Creates a pointList.
Creates a pointListfrom the points specified by the array pts with size num. If compress is true, the points will be sorted counterclockwise and colinear points removed.
Creates a pointList from the points specified by the arrays xpts and ypts with size num. If compress is true, the points will be sorted counterclockwise and colinear points removed.
Returns true if the two pointlists are equal.
Returns true if the two pointlists are not equal.
Returns true if one pointList is less than another. 'Less' is the case if any vertex X or Y coordinate is less than the other vertex.
Sets a pointList from the points specified by the array pts with size num. If compress is true, the points will be sorted counterclockwise and colinear points removed.
Sets a pointList from the points specified by the arrays xpts and ypts with size num. If compress is true, the points will be sorted counterclockwise and colinear points removed.
Sets a pointList with the 4 vertices of a rectangle (LL, LR, UR, UL).
Get the raw pointList as an array of Points.
Append the pointList with Point p.
Append the pointList with pointList
Get the Point p given by the index idx.
Get the number of points in the pointList.
Get the bounding box of the pointList.
Gets the area of the pointList. This assumes the pointListis closed, i.e. there is an edge between the last and first vertex.
Gets the perimeter of the pointList.This assumes the pointListis closed, i.e. there is an edge between the last and first vertex.
Transform all points in the pointListby trans.
Scales all points in a pointList by factor, snapping them to a grid grid (in database units)
Compresses all points in a pointList by removing all colinear points and ordering them counterclockwise. If ortho is true, points are assumed to be manhattan and are stored in a more compressed format. If xfirst is true, the pointList is ordered with the first point being least in X.
Returns true if the pointListis self intersecting.
Returns true if one pointList overlaps another. If touching is true, returns true if the pointlists touch.
Returns true if the pointList contains Point p. If touching is true, returns true if Point p touches an edge of the pointList.
Returns true if the pointList contains Rect r. If touching is true, returns true if a vertex of Rect r touches an edge of the pointList.
Returns true if the pointList is orthogonal i.e. manhattan.
Copyright © Peardrop Design 2024.