Vector4.cpp 443 B

12345678910111213141516171819202122232425
  1. // Copyright (c) 2008-2023 the Urho3D project
  2. // License: MIT
  3. #include "../Precompiled.h"
  4. #include "../Math/Vector4.h"
  5. #include <cstdio>
  6. #include "../DebugNew.h"
  7. namespace Urho3D
  8. {
  9. const Vector4 Vector4::ZERO;
  10. const Vector4 Vector4::ONE(1.0f, 1.0f, 1.0f, 1.0f);
  11. String Vector4::ToString() const
  12. {
  13. char tempBuffer[CONVERSION_BUFFER_LENGTH];
  14. sprintf(tempBuffer, "%g %g %g %g", x_, y_, z_, w_);
  15. return String(tempBuffer);
  16. }
  17. }