mirror of https://github.com/AxioDL/zeus.git
20 lines
378 B
C++
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;
|
|
}
|
|
}
|