aboutsummaryrefslogtreecommitdiff
path: root/src/o3d/vertex_data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/o3d/vertex_data.cpp')
-rw-r--r--src/o3d/vertex_data.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/o3d/vertex_data.cpp b/src/o3d/vertex_data.cpp
deleted file mode 100644
index b05e382..0000000
--- a/src/o3d/vertex_data.cpp
+++ /dev/null
@@ -1,20 +0,0 @@
-#include "o3d/vertex_data.h"
-
-using namespace engine::o3d;
-
-VertexData VertexData::lerp(const VertexData& vd1, const VertexData& vd2, float b0) {
- return {
- b0 * vd1.tx + (1.f - b0) * vd2.tx,
- b0 * vd1.ty + (1.f - b0) * vd2.ty
- };
-}
-
-VertexData VertexData::bilerp(const VertexData& vd1, const VertexData& vd2, const VertexData& vd3, float b0, float b1) {
- return {
- b0 * vd1.tx + b1 * vd2.tx + (1.f - b0 - b1) * vd3.tx,
- b0 * vd1.ty + b1 * vd2.ty + (1.f - b0 - b1) * vd3.ty
- };
-}
-
-VertexData::VertexData(float tx, float ty) : tx{tx}, ty{ty} {
-}