ROME 2 Lab5

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Point.h Source File

Point.h

00001 /*
00002  * Point.h
00003  * Copyright (c) 2020, ZHAW
00004  * All rights reserved.
00005  */
00006 
00007 #ifndef POINT_H_
00008 #define POINT_H_
00009 
00010 #include <cstdlib>
00011 
00012 /**
00013  * This class stores the coordinates of a point in two dimensions.
00014  */
00015 class Point {
00016     
00017     public:
00018         
00019         float           x;
00020         float           y;
00021         float           r;
00022         float           alpha;
00023         
00024                         Point();
00025                         Point(float r, float alpha);
00026         virtual         ~Point();
00027         float           distance();
00028         float           distance(Point& point);
00029         float           manhattanDistance();
00030         float           manhattanDistance(Point& point);
00031 };
00032 
00033 #endif /* POINT_H_ */
00034