[Up] Reference for unit 'GraphMath' (#lazutils)

GraphMath Operators.

This Unit contains a number of routines for calculating and converting series of graphic points from one coordinate system to another.

A fundamental type is introduced, called TFloatPoint. It is an extended precision record containing an X and a Y coordinate for a graphic point. Its structure is as follows:

type
  TFloatPoint = record
    X, Y: Extended;
  end;

The Unit contains definitions for mathematical operators which extend the normal definitions of addition, subtraction, multiplication, division and comparison to cover manipulations with TFloatPoints, allowing, for example, addition or multiplication of two TFloatPoints, a TFloatPoint and a TPoint, or a TFloatPoint and an Extended precision number.


Version 4.0 Generated 2025-05-03 Home