Table of Contents

NAME

QccPointPrint, QccPointCopy, QccPointAffineTransform, - miscellaneous 2D point routines

SYNOPSIS

#include "libQccPack.h"

void QccPointPrint(const QccPoint *point);

void QccPointCopy(QccPoint *point1, const QccPoint *point2);

void QccPointAffineTransform(const QccPoint *point1, QccPoint *point2, QccMatrix affine_transform);

DESCRIPTION

QccPack provides the QccPoint data structure to represent a point in the 2D plane.

DATA STRUCTURE

QccPoint data structure is defined as:

typedef struct
{
double x;
double y;
} QccPoint;

The fields of QccPoint are as follows:

x
The horizontal coordinate of the point.
y
The vertical coordinate of the point.

ROUTINES

QccPointPrint() prints point to stdout.

QccPointCopy() copies point2 to point1.

QccPointAffineTransform() passes point1 through the affine transform given by affine_transform, returning the resulting, transform point as point2. affine_transform is assumed to be a 3 x 3 matrix representing the affine transform in homogeneous coordinates.

SEE ALSO

QccPack(3)

AUTHOR

Copyright (C) 1997-2021 James E. Fowler


Table of Contents



Get QccPack at SourceForge.net. Fast, secure and Free Open Source software downloads