XRPOINT(3X)

NAME
XrAddPt, XrSubPt, XrSetPt, XrCopyPt, XrEqualPt - calculations with points.

SYNOPSIS
#include <X/Xlib.h>
#include <Xr/Xrlib.h>

XrAddPt (srcPt, dstPt)
POINT * srcPt;
POINT * dstPt;

XrSubPt (srcPt, dstPt)
POINT * srcPt;
POINT * dstPt;

XrSetPt (pt, x, y)
POINT * pt;
INT16 x;
INT16 y;

XrOffsetPt (pt, x, y)
POINT * pt;
INT16 x;
INT16 y;

XrCopyPt (srcPt, dstPt)
POINT * srcPt;
POINT * dstPt;

XrEqualPt (ptA, ptB)
POINT * ptA;
POINT * ptB;

DESCRIPTION

XrAddPt
    Add the coordinates of srcPt to the coordinates of dstPt, and return the result in dstPt.

XrSubPt
    Subtract the coordinates of srcPt from the coordinates of dstPt, and return the result in dstPt.

XrSetPt
    Assign the two coordinates to a variable of type POINT.

XrOffsetPt
    Change the values of the point structure pt by adding the x and y offsets to the members of pt.

XrCopyPt
    Copy srcPt into dstPt.

XrEqualPt
    Compare the two points and return TRUE if they are equal or FALSE if not.