ftp.nice.ch/pub/next/tools/screen/backspace/Roaches.1.1.s.tar.gz#/Roaches/point.h

This is point.h in view mode; [Download] [Up]

/* RoachesView is Copyright 1994 by Brian Hill <bhill@physics.ucla.edu>. */

#import <appkit/appkit.h>

/* Probably a lot of this functionality is already available in the appkit. */

BOOL nonZero(const NXPoint *point);
BOOL insideBounds(const NXPoint *point, const NXRect *bounds, NXCoord buffer);
float length(const NXPoint *point);
BOOL normalizeTo(NXPoint *point, NXCoord length); /* NO is failure. */
void zero(NXPoint *point);
void set(NXPoint *point, const NXPoint *anotherPoint);
void translate(NXPoint *point, const NXPoint *anotherPoint);
float squareDistance(const NXPoint *point, const NXPoint *anotherPoint);
void scale(NXPoint *point, NXCoord scalar);
void rotate(NXPoint *point, float angle); /* Counterclockwise, in radians. */
void unitVector(NXPoint *point, float angle);

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.