Unit 'GraphMath' Package
[Overview][Types][Procedures and functions][Index] [#lazutils]

Quadrant

Determine the Quadrant of any point, given the Center.

Declaration

Source position: graphmath.pp line 100

function Quadrant(

  const PT: TPoint;

  const Center: TPoint

):Integer;

Description

Use Quadrant to determine the Quadrant of any point, given the Center. It is primarily for use in other routines such as EccentricAngle. A result of 1-4 represents the primary 4 quadrants. A result of 5-8 means the point lies on one of the Axis, 5 = -Y Axis, 6 = +X Axis, 7 = +Y Axis, and 8 = -X Axis. A result of -1 means that it does not fall in any quadrant, that is, it is the Center.


Version 4.4 Generated 2025-11-08 Home