#pragma once #include "object3d.h" class Point3D : public Object3D { protected: GLfloat* Coords; void assigne(float m_x, float m_y, float m_z){ Coords[0] = m_x; Coords[1] = m_y; Coords[2] = m_z; } public: Point3D(void); Point3D(float, float, float); Point3D(float* Vecteur); Point3D(const Point3D& P); const Point3D& operator=(const Point3D& P); GLfloat* toVec(){ return Coords; } ~Point3D(void); Point3D& operator+(const Point3D& ); Point3D& operator-(const Point3D& ); Point3D& operator*(float); Point3D& operator/(float); void Draw(GLfloat* = NULL); virtual void Origine(){ assigne(0.0f, 0.0f, 0.0f); } };