19 lines
592 B
C++
19 lines
592 B
C++
#ifndef DELTA_CAMERA
|
|
#define DELTA_CAMERA
|
|
|
|
#include "math.hpp"
|
|
|
|
class DeltaCamera {
|
|
public:
|
|
DeltaVector3 pos;
|
|
DeltaVector2 angle;
|
|
|
|
DeltaCamera() {pos = DeltaVector3(); angle = DeltaVector2();};
|
|
DeltaCamera(float x, float y, float z);
|
|
DeltaVector3 translatePoint(const DeltaVector3 &worldPos);
|
|
DeltaVector2 projectPointVec(const DeltaVector3 &worldPos);
|
|
int projectTriangle(const DeltaTriangle &in, DeltaTriangle2D &out1, DeltaTriangle2D &out2);
|
|
DeltaVector2 projectPoint(float worldX, float worldY, float worldZ);
|
|
};
|
|
|
|
#endif |