62 lines
2.6 KiB
C
62 lines
2.6 KiB
C
#ifndef lint
|
|
static char sccsid[] = "@(#)elliparcnew77.c 1.1 94/10/31 Copyr 1985-9 Sun Micro";
|
|
#endif
|
|
|
|
/*
|
|
* Copyright (c) 1985, 1986, 1987, 1988, 1989 by Sun Microsystems, Inc.
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
* purpose and without fee is hereby granted, provided that the above
|
|
* copyright notice appear in all copies and that both that copyright
|
|
* notice and this permission notice are retained, and that the name
|
|
* of Sun Microsystems, Inc., not be used in advertising or publicity
|
|
* pertaining to this software without specific, written prior permission.
|
|
* Sun Microsystems, Inc., makes no representations about the suitability
|
|
* of this software or the interface defined in this software for any
|
|
* purpose. It is provided "as is" without express or implied warranty.
|
|
*/
|
|
/*
|
|
* CGI Text functions
|
|
*/
|
|
|
|
#include "cgidefs.h"
|
|
#include "cf77.h"
|
|
|
|
/****************************************************************************/
|
|
/* */
|
|
/* FUNCTION: cfelliparccl */
|
|
/* */
|
|
/* */
|
|
/* points c2,c3. Arc is closed with either PIE or CHORD. */
|
|
/****************************************************************************/
|
|
int cfelliparccl_ (x,y , sx, sy, ex, ey, majx, miny, close)
|
|
int *x, *y;
|
|
int *sx, *sy; /* starting point of arc */
|
|
int *ex, *ey; /* ending point of arc */
|
|
int *majx, *miny; /* enpoints of major and minor axes */
|
|
int *close;
|
|
{
|
|
Ccoor c1;
|
|
|
|
ASSIGN_COOR(&c1, *x, *y);
|
|
return (elliptical_arc_close (&c1, *sx, *sy, *ex, *ey, *majx, *miny,
|
|
(Cclosetype) *close));
|
|
}
|
|
/****************************************************************************/
|
|
/* */
|
|
/* FUNCTION: cfelliparc */
|
|
/* */
|
|
/* */
|
|
/* points c2,c3. Arc is closed with either PIE or CHORD. */
|
|
/****************************************************************************/
|
|
int cfelliparc_ (x,y , sx, sy, ex, ey, majx, miny)
|
|
int *x,*y;
|
|
int *sx, *sy; /* starting point of arc */
|
|
int *ex, *ey; /* ending point of arc */
|
|
int *majx, *miny; /* enpoints of major and minor axes */
|
|
{
|
|
Ccoor c1;
|
|
|
|
ASSIGN_COOR(&c1, *x, *y);
|
|
return (elliptical_arc (&c1, *sx, *sy, *ex, *ey, *majx, *miny));
|
|
}
|