#include #include "Engine/Source/Tempest/C3Vector.h" #include "Engine/Source/Tempest/CImVector.h" // VERIFY: 3e0f9ba5 manual // OFFSET: 0x0048BD20 void CImVector::Set(float a, float r, float g, float b) { this->a = static_cast(static_cast(a * 255.0f + 0.5f)); this->r = static_cast(static_cast(r * 255.0f + 0.5f)); this->g = static_cast(static_cast(g * 255.0f + 0.5f)); this->b = static_cast(static_cast(255.0f * b + 0.5f)); } // VERIFY: 81b97ccb auto // OFFSET: 0x009851A0 CImVector& CImVector::operator=(const C3Vector& color) { this->a = 0xFF; this->r = static_cast(static_cast(color.x * 255.0f)); this->g = static_cast(static_cast(color.y * 255.0f)); this->b = static_cast(static_cast(color.z * 255.0f)); return *this; }