Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 55cc08bfc2
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (33 sloc) 1.007 kb
/*
* ControlPoint.h
*
* Created on: Oct 13, 2012
* Author: stevananet
*/
#ifndef CONTROLPOINT_H_
#define CONTROLPOINT_H_
#include <GL/glut.h>
class ControlPoint {
public:
float x,y,z;
float r,g,b;
float time;
ControlPoint();
ControlPoint(float x, float y, float z);
ControlPoint(float x, float y, float z, float t);
virtual ~ControlPoint();
void setColourID(float rr, float gg, float bb);
void multiplyScalar(float);
void add(ControlPoint p);
void draw(bool pointSelected, GLenum mode);
void showTime();
void unprojectScreenCoord(int x, int y);
void normalize();
friend ControlPoint operator+(const ControlPoint&, const ControlPoint&);
friend ControlPoint operator-(const ControlPoint&, const ControlPoint&);
friend ControlPoint operator*(const ControlPoint&, const float&);
friend ControlPoint operator/(const ControlPoint&, const float&);
};
float dotProduct(ControlPoint,ControlPoint);
ControlPoint crossProduct(ControlPoint,ControlPoint);
#endif /* CONTROLPOINT_H_ */
Jump to Line
Something went wrong with that request. Please try again.