-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCube.h
More file actions
29 lines (24 loc) · 704 Bytes
/
Copy pathCube.h
File metadata and controls
29 lines (24 loc) · 704 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
#ifndef __Cube_h_
#define __Cube_h_
#include "FourDimensionalObject.h"
class Cube :
public FourDimensionalObject
{
public:
Cube(void);
Cube(const Vector4f ¢er,
float length1, float length2, float length3,
float normalY);
Cube(const Vector4f &vertex1,
const Vector4f &edge1, const Vector4f &edge2, const Vector4f &edge3,
const Vector4f &normal);
~Cube(void);
virtual std::auto_ptr<ThreeDimensionalObject> Slice(const HyperPlane &plane) const;
private:
Vector4f mCenter;
float mRadius;
void AddCube(size_t v0, size_t v1, size_t v2, size_t v3,
size_t v4, size_t v5, size_t v6, size_t v7,
const Vector4f &normal);
};
#endif //__Cube_h_