#include "CFluidUVMotion.hpp" #include "zeus/Math.hpp" namespace urde { CFluidUVMotion::CFluidUVMotion(float a, float b, const CFluidUVMotion::SFluidLayerMotion& c, const CFluidUVMotion::SFluidLayerMotion& d, const CFluidUVMotion::SFluidLayerMotion& e) : x4c_(1.f/a) , x50_(b) { x0_fluidLayers.resize(3); x0_fluidLayers[0] = c; x0_fluidLayers[1] = d; x0_fluidLayers[2] = e; } CFluidUVMotion::CFluidUVMotion(float, float) {} void CFluidUVMotion::CalculateFluidTextureOffset(float f31, float offsets[3][2]) const { float f28 = (f31 * x4c_) * zeus::fastCosF(x50_); float f29 = (f31 * x4c_) / zeus::fastSinF(x50_); for (u32 i = 0 ; i