12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- #include <iostream>
- #include "point.h"
- //==========================
- cPoint::cPoint () : m_X (-999),m_Y (-999), m_Z (-999) {}
- cPoint::~cPoint () {}
- //==========================
- cPoint::cPoint (double x_, double y_, double z_) {
- m_X = x_;
- m_Y = y_;
- m_Z = z_;
- }
- //==========================
- void cPoint::set_XYZ (double x_, double y_, double z_) {
- m_X = x_;
- m_Y = y_;
- m_Z = z_;
- }
- //==========================
- void cPoint::set_X (double x_) {
- m_X = x_;
- }
- //==========================
- void cPoint::set_Y (double y_) {
- m_Y = y_;
- }
- //==========================
- void cPoint::set_Z (double z_) {
- m_Z = z_;
- }
- //==========================
- bool cPoint::Ok () {
- std::cout << "NOT finish \n";
- }
- //==========================
- void cPoint::show () {
- // std::cout << __FILE__ << " "<<_FUNC_ << std::endl;
- std::cout << "\t\t SHOW POINT \n";
- std::cout << "X = " << m_X << std::endl;
- std::cout << "Y = " << m_Y << std::endl;
- std::cout << "Z = " << m_Z << std::endl;
- }
|