Vector4.pkg 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. $#include "Vector4.h"
  2. class Vector4
  3. {
  4. Vector4();
  5. Vector4(const Vector4& vector);
  6. Vector4(const Vector3& vector, float w);
  7. Vector4(float x, float y, float z, float w);
  8. ~Vector4();
  9. bool operator == (const Vector4& rhs) const;
  10. Vector4 operator + (const Vector4& rhs) const;
  11. Vector4 operator - () const;
  12. Vector4 operator - (const Vector4& rhs) const;
  13. Vector4 operator * (float rhs) const;
  14. Vector4 operator * (const Vector4& rhs) const;
  15. Vector4 operator / (float rhs) const;
  16. Vector4 operator / (const Vector4& rhs) const;
  17. Vector4 operator / (const Vector4& rhs) const;
  18. float DotProduct(const Vector4& rhs) const;
  19. float AbsDotProduct(const Vector4& rhs) const;
  20. Vector4 Abs() const;
  21. Vector4 Lerp(const Vector4& rhs, float t) const;
  22. bool Equals(const Vector4& rhs) const;
  23. bool IsNaN() const;
  24. String ToString() const;
  25. float x_ @ x;
  26. float y_ @ y;
  27. float z_ @ z;
  28. float w_ @ w;
  29. static const Vector4 ZERO;
  30. static const Vector4 ONE;
  31. };