next up previous contents
Next: Metode Up: A.2 Object Previous: Podrazredi Vsebina: contents

Definicija

class Object
{
protected:
vec3 origin;
mat4 orient;

public:

void setPosition(const vec3& position);
void setPosition(const double position[3]);
vec3 position() const { return origin; };
void setOrientation(const mat4& o) { orient = o;};
mat4 orientation() const { return orient; };
virtual void Describe(int indent) = 0;
};


Copyright © 1995 Leon Kos, Univerza v Ljubljani