-
Notifications
You must be signed in to change notification settings - Fork 0
/
Point.h
35 lines (34 loc) · 897 Bytes
/
Point.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include <string>
#include <fstream>
#include <iostream>
using namespace std;
class Point
{
private:
double x, y, z;
public:
// Point s�n�f�n�n constructoru.
Point();
// Point s�n�f� i�in destructor
~Point();
// bir pointe kordinatlar�n� atar.
Point setPoint(double x, double y, double z);
// noktanın kordinatlarını kullanmamızı sağlar.
void getPoint(double& _x, double& _y, double& _z) const
{
_x = x;
_y = y;
_z = z;
}
// iki nokta aras�ndaki uzakl��� verir.
double distance(const Point&);
// noktan�n x de�erini d�nd�r�r.
double getX() const;
// noktan�n y de�erini d�nd�r�r.
double getY() const;
// noktan�n z de�erini d�nd�r�r.
double getZ() const;
// iki noktan�n e�it olup olmad���n� denetler.
bool operator==(const Point&) const;
};