This is torus.h in view mode; [Download] [Up]
/*
* torus.h
*
* Copyright (C) 1990, 1991, Mark Polipec, Craig E. Kolb
* All rights reserved.
*
* This software may be freely copied, modified, and redistributed
* provided that this copyright notice is preserved on all copies.
*
* You may not distribute this software, in whole or in part, as part of
* any commercial product without the express consent of the authors.
*
* There is no warranty or other guarantee of fitness of this software
* for any purpose. It is provided solely "as is".
*
* $Id$
*
* $Log$
*/
#ifndef TORUS_H
#define TORUS_H
#define ObjTorusCreate(a,b,p,n) ObjCreate((ObjRef)TorusCreate(a,b,p,n), \
TorusMethods())
/*
* Torus
*/
typedef struct {
Float a; /* tube radius */
Float b; /* swept radius */
Float aa, bb; /* squares of the above */
Trans *trans; /* general<-->canonical transform */
} Torus;
extern Torus *TorusCreate();
extern int TorusIntersect(), TorusEnter(), TorusNormal();
extern void TorusBounds(), TorusUV(), TorusStats();
extern char *TorusName();
extern Methods *TorusMethods();
#endif /* TORUS_H */
These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.