Units
Class Hierarchy
Classes, Interfaces and Objects
Types
Variables
Constants
Functions and Procedures
Identifiers

Unit cUtilities

Description

ai.planet http://aiplanet.sourceforge.net Created by Dave Kerr (kerrdWARNING: @hotmail.com) $Id: cUtilities.pas,v 1.16 2003/09/25 19:46:18 uid105088 Exp $

Classes, Interfaces and Objects

NameDescription
Class TStopWatch  

Functions and Procedures

Overview

function AccumulativeSum(n:single; x:integer): single;
function AdjustValue(const aCurrent, aTarget, aAmount: single): single;
function Avg(const aNum1, aNum2, aNum3, aNum4: single): single; overload;
function Avg(const aNum1, aNum2: single): single; overload;
function BoolToGender(const aBoolean: boolean): string;
function BoolToStr(const aBoolean: boolean): string;
function BoolToYesNoStr(const aBoolean: boolean): string;
function Cap(const aNumber, aCap: integer): integer;
function ClockTime: comp;
procedure LimitVector(var aVect: TAffineVector; const aMax: single);
function Max(const aNum1, aNum2: single): single; overload;
function Max(const aNum1, aNum2, aNum3, aNum4, aNum5: single): single; overload;
function Max(const aNum1, aNum2, aNum3, aNum4, aNum5, aNum6, aNum7, aNum8, aNum9: single): single; overload;
function Max(const aNum1, aNum2, aNum3, aNum4: single): single; overload;
function Min(const aNum1, aNum2, aNum3: single): single; overload;
function Min(const aNum1, aNum2, aNum3, aNum4, aNum5: single): single; overload;
function Min(const aNum1, aNum2: single): single; overload;
function Min(const aNum1, aNum2, aNum3, aNum4: single): single; overload;
function Pluralize(aString: string): string;
function PtrToStr(const aPointer: pointer): string;
function RandomPolarity: integer;
function RandomSwing: single;
function readFileBoolean(var aFile: TextFile): boolean;
procedure readVector(var aFile: TextFile; var aVector: TAffineVector);
function StandardizeText(const aString: string): string;
function VectorToString(aVect: TVector): string; overload;
function VectorToString(aVect: TAffineVector): string; overload;
procedure writeFileBoolean(var aFile: TextFile; aBoolean: boolean);
procedure writeVector(var aFile: TextFile; var aVector: TAffineVector);

Description

function AccumulativeSum(n:single; x:integer): single;

 

function AdjustValue(const aCurrent, aTarget, aAmount: single): single;

 

function Avg(const aNum1, aNum2, aNum3, aNum4: single): single; overload;

 

function Avg(const aNum1, aNum2: single): single; overload;

 

function BoolToGender(const aBoolean: boolean): string;

 

function BoolToStr(const aBoolean: boolean): string;

 

function BoolToYesNoStr(const aBoolean: boolean): string;

 

function Cap(const aNumber, aCap: integer): integer;

 

function ClockTime: comp;

 

procedure LimitVector(var aVect: TAffineVector; const aMax: single);

 

function Max(const aNum1, aNum2: single): single; overload;

 

function Max(const aNum1, aNum2, aNum3, aNum4, aNum5: single): single; overload;

 

function Max(const aNum1, aNum2, aNum3, aNum4, aNum5, aNum6, aNum7, aNum8, aNum9: single): single; overload;

 

function Max(const aNum1, aNum2, aNum3, aNum4: single): single; overload;

 

function Min(const aNum1, aNum2, aNum3: single): single; overload;

 

function Min(const aNum1, aNum2, aNum3, aNum4, aNum5: single): single; overload;

 

function Min(const aNum1, aNum2: single): single; overload;

 

function Min(const aNum1, aNum2, aNum3, aNum4: single): single; overload;

 

function Pluralize(aString: string): string;

 

function PtrToStr(const aPointer: pointer): string;

 

function RandomPolarity: integer;

 

function RandomSwing: single;

 

function readFileBoolean(var aFile: TextFile): boolean;

 

procedure readVector(var aFile: TextFile; var aVector: TAffineVector);

 

function StandardizeText(const aString: string): string;

 

function VectorToString(aVect: TVector): string; overload;

 

function VectorToString(aVect: TAffineVector): string; overload;

 

procedure writeFileBoolean(var aFile: TextFile; aBoolean: boolean);

 

procedure writeVector(var aFile: TextFile; var aVector: TAffineVector);

 


Generated by PasDoc 0.8.7 on Wed 01/ Oct 2003 00:51:37