Unit General

Classes

Functions

bIsRectOffScreen - Method to determine if the given rectangle is off of the screen.
bIsVertexWithinPolygon -
bPolygonsIntersect -
bRectsIntersect - Rectagnel and polygon intersection algorithms.
clrGetBackgroundColor - Method to get the default background color of the screen.
fDistance - Method to compute the distance between the given points.
fGetNow - Function to return the current Windows time, in seconds.
fMax -
fMin - Min and Max functions.
iMidScreenX -
iMidScreenY -
iScreenHeight -
iScreenWidth - Methods to return logical screen atrributes.
iSign - Method to find the sign of the given value.
szDecode -
szEncode - Methods to encode/decode the given string.

Types

Constants

Variables


Functions


function bIsRectOffScreen(rectCheck: TRect): Boolean;

Method to determine if the given rectangle is off of the screen.

function bIsVertexWithinPolygon(vtxPoint: TVertex; listEdge: TList): Boolean;


function bPolygonsIntersect(listVertex, listEdge: TList): Boolean;


function bRectsIntersect(rect1, rect2: TRect): Boolean;

Rectagnel and polygon intersection algorithms.

function clrGetBackgroundColor: TColor;

Method to get the default background color of the screen.

function fDistance(X1, Y1, X2, Y2: Real): Real;

Method to compute the distance between the given points.

function fGetNow: Real;

Function to return the current Windows time, in seconds.

function fMax(fValue1, fValue2: Real): Real;


function fMin(fValue1, fValue2: Real): Real;

Min and Max functions.

function iMidScreenX: Integer;


function iMidScreenY: Integer;


function iScreenHeight: Integer;


function iScreenWidth: Integer;

Methods to return logical screen atrributes.

If we've crossed the positive X axis an odd number of times then } { the point lies within the polygon.


function iSign(fValue: Real): Integer;

Method to find the sign of the given value.

function szDecode(szString: String): String;


function szEncode(szString: String): String;

Methods to encode/decode the given string.

Types


Constants


Variables