NAME

Rivl_Point, Rivl_PointCreate, Rivl_UnitPoint, Rivl_PointEqual - procedures to manipulate point structures

SYNOPSIS

#include <rivl.h>
Rivl_Point
Rivl_PointCreate (newx, newy)
Rivl_Point
Rivl_UnitPoint ()
int
Rivl_PointEqual (point1, point2)

ARGUMENTS

Rivl_Point point1, point2 (in)
Two points to be compared.
double newx, newy (in)
Coordinates of the new point.

DESCRIPTION

A point is a set of two real-valued coordinates, defined as
typedef struct {
    double x, y;
} Rivl_Point;
The following procedures can save a few keystrokes for common tasks involving points.

Rivl_PointCreate returns a point structure containing newx and newy.

Rivl_UnitPoint returns a point structure containing 1.0 for both coordinates.

Rivl_PointEqual returns 1 if p1.x equals p2.x and p1.y equals p2.y.