-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFourDimensionalScene.h
More file actions
37 lines (28 loc) · 901 Bytes
/
Copy pathFourDimensionalScene.h
File metadata and controls
37 lines (28 loc) · 901 Bytes
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
36
37
#ifndef __FourDimensionalScene_h_
#define __FourDimensionalScene_h_
#include "Vector4f.h"
#include "ThreeDimensionalObject.h"
#include "HyperPlane.h"
class FourDimensionalObject;
class FourDimensionalScene
{
public:
FourDimensionalScene(void);
~FourDimensionalScene(void);
void AddCube(const Vector4f ¢er,
float lengthW, float lengthX, float lengthZ, float normalY);
void AddHyperCube(const Vector4f ¢er,
float lengthW, float lengthX, float lengthY, float lengthZ);
void MakeSlice(const HyperPlane &hp);
typedef std::vector<ThreeDimensionalObject *> Slice;
typedef Slice::const_iterator SliceIterator;
SliceIterator SliceConstBegin() const
{ return mSlice.cbegin(); }
SliceIterator SliceConstEnd() const
{ return mSlice.cend(); }
private:
void ClearSlice();
std::vector<FourDimensionalObject *> mObjects;
Slice mSlice;
};
#endif