Quad¶
The TQuad type is a record which stores four TPoints (Top, Right, Bottom, Left)
See: https://en.wikipedia.org/wiki/Quadrilateral
Topis the “most” top point (lowest Y)Rightis the “most” right point (highest X)Bottomis the “most” bottom point (highest Y)Leftis the “most” left point (lowest X)
TQuad.Create¶
function TQuad.Create(ATop, ARight, ABottom, ALeft: TPoint): TQuad; static;
TQuad.Create¶
function TQuad.Create(Box: TBox): TQuad; static;
TQuad.Create¶
function TQuad.Create(Points: TPointArray): TQuad; static;
TQuad.Rotate¶
function TQuad.Rotate(Angle: Double): TQuad;
TQuad.Contains¶
function TQuad.Contains(P: TPoint): Boolean;
TQuad.Offset¶
function TQuad.Offset(P: TPoint): TQuad;
TQuad.Expand¶
function TQuad.Expand(Amount: Integer): TQuad;
TQuad.NearestEdge¶
function TQuad.NearestEdge(P: TPoint): TPoint;
TQuad.Normalize¶
function TQuad.Normalize: TQuad;
TQuad.RandomPoint¶
function TQuad.RandomPoint: TPoint;
Returns a completely random point in the quad.
TQuad.RandomPointCenter¶
function TQuad.RandomPointCenter: TPoint;
Returns a random point in the quad which is weighted torwards the quad’s center.
TQuad.Area¶
property TQuad.Area: Integer;
TQuad.Corners¶
property TQuad.Corners: TPointArray;
TQuad.Bounds¶
property TQuad.Bounds: TBox;
TQuad.ShortSideLen¶
property TQuad.ShortSideLen: Integer;
TQuad.LongSideLen¶
property TQuad.LongSideLen: Integer;
TQuad.Mean¶
property TQuad.Mean: TPoint;
TQuadArray.Merge¶
function TQuadArray.Merge: TQuadArray;
TQuadArray.Means¶
function TQuadArray.Means: TPointArray;
TQuadArray.Offset¶
function TQuadArray.Offset(P: TPoint): TQuadArray;
TQuadArray.Expand¶
function TQuadArray.Expand(Amount: Integer): TQuadArray;
TQuadArray.ContainsPoint¶
function TQuadArray.ContainsPoint(P: TPoint): Integer;
TQuadArray.SortFrom¶
function TQuadArray.SortFrom(P: TPoint): TQuadArray;
TQuadArray.SortByShortSide¶
function TQuadArray.SortByShortSide(LowToHigh: Boolean = True): TQuadArray;
TQuadArray.SortByLongSide¶
function TQuadArray.SortByLongSide(LowToHigh: Boolean = True): TQuadArray;
TQuadArray.SortByArea¶
function TQuadArray.SortByArea(LowToHigh: Boolean = True): TQuadArray;
in¶
operator in(Left: TPoint; Right: TQuad): Boolean;