Category : Files from Magazines
Archive   : VOL10N16.ZIP
Filename : POINT.H

 
Output of file : POINT.H contained in archive : VOL10N16.ZIP
// POINT.H -- Class definition for points and pixels.
// Member functions are defined in POINT.CPP
// Copyright (C) 1991 Ziff Davis Communications
// PC Magazine * Ray Duncan

// definition of base class POINT
class POINT {
private:
double X; // X coordinate for point
double Y; // Y coordinate for point
double deg2rad(double); // convert degrees to radians
double rad2deg(double); // convert radians to degrees
public:
POINT(double, double); // constructor for point
void setX(double); // set point value of X
void setY(double); // set point value of Y
double getX(void); // return point value of X
double getY(void); // return point value of Y
void translate(double, double); // translate point by X,Y
void rotate(double); // rotate point by X,Y
};

// definition of derived class PIXEL
class PIXEL : public POINT {
int Color; // pixel color value
public:
PIXEL(double, double, int); // constructor for pixel
void setColor(int); // set color of pixel
int getColor(void); // return color of pixel
void display(void); // display data for pixel
};

const double pi = 3.141592654; // constant Pi




  3 Responses to “Category : Files from Magazines
Archive   : VOL10N16.ZIP
Filename : POINT.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/