aboutsummaryrefslogtreecommitdiff
path: root/src/o3d/deriv_vertex.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/o3d/deriv_vertex.h')
-rw-r--r--src/o3d/deriv_vertex.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/o3d/deriv_vertex.h b/src/o3d/deriv_vertex.h
new file mode 100644
index 0000000..8945696
--- /dev/null
+++ b/src/o3d/deriv_vertex.h
@@ -0,0 +1,19 @@
+#ifndef O3D_DERIV_VERTEX_H
+#define O3D_DERIV_VERTEX_H
+
+#include "math/vector.h"
+
+namespace engine::o3d {
+
+class DerivedVertex4 {
+ public:
+ engine::math::Vector4 point;
+ float b0, b1;
+
+ DerivedVertex4(engine::math::Vector4 point, float b0, float b1);
+ DerivedVertex4 div_by_w() const;
+};
+
+}
+
+#endif // O3D_DERIV_VERTEX_H