aboutsummaryrefslogtreecommitdiff
path: root/src/o3d/deriv_vertex.cpp
blob: dcb2bff761c3591b4f709581484039013f16033d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include "o3d/deriv_vertex.h"
#include "math/vector.h"

using namespace engine::o3d;

DerivedVertex4::DerivedVertex4(engine::math::Vector4 point, float b0, float b1) : point{point}, b0{b0}, b1{b1} {
}

DerivedVertex4 DerivedVertex4::div_by_w() const {
    return {point.div_by_w(), b0, b1};
}