ftp.nice.ch/pub/next/unix/developer/oobr.2.8.6.tar.gz#/oobr/tree-nx/Line.m

This is Line.m in view mode; [Download] [Up]

#import "Line.h"

@implementation Line

- setStart:(NXPoint *)s end:(NXPoint *)e
{
	start.x = s->x;
	start.y = s->y;
	end.x = e->x;
	end.y = e->y;
	return self;
}

- render
{
	PSmoveto(start.x, start.y);
	PSlineto(end.x, end.y);
	PSstroke();
	return self;
}

@end

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