zeus/src/CVector4f.cpp

20 lines
378 B
C++

#include "zeus/CVector4f.hpp"
#include "zeus/CColor.hpp"
namespace zeus
{
const CVector4f CVector4f::skZero(0.f, 0.f, 0.f, 0.f);
CVector4f::CVector4f(const zeus::CColor& other) : x(other.r), y(other.g), z(other.b), w(other.a) {}
CVector4f& CVector4f::operator=(const CColor& other)
{
x = other.r;
y = other.g;
z = other.b;
w = other.a;
return *this;
}
}