From 8e383a087940295dbe7b5bd0a595a36ad0afb8d5 Mon Sep 17 00:00:00 2001 From: assiduous Date: Sat, 1 Feb 2020 14:16:17 -0800 Subject: Renamed data() to Data() member function --- Common/interface/BasicMath.hpp | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'Common/interface') diff --git a/Common/interface/BasicMath.hpp b/Common/interface/BasicMath.hpp index 9f748c78..d28ee9ab 100644 --- a/Common/interface/BasicMath.hpp +++ b/Common/interface/BasicMath.hpp @@ -211,18 +211,18 @@ template struct Vector2 y >= right.y ? static_cast(1) : static_cast(0)); } - T* data() { return reinterpret_cast(this); } + T* Data() { return reinterpret_cast(this); } - const T* data() const { return reinterpret_cast(this); } + const T* Data() const { return reinterpret_cast(this); } T& operator[](size_t index) { - return data()[index]; + return Data()[index]; } const T& operator[](size_t index) const { - return data()[index]; + return Data()[index]; } Vector2() : @@ -413,18 +413,18 @@ template struct Vector3 z >= right.z ? static_cast(1) : static_cast(0)); } - T* data() { return reinterpret_cast(this); } + T* Data() { return reinterpret_cast(this); } - const T* data() const { return reinterpret_cast(this); } + const T* Data() const { return reinterpret_cast(this); } T& operator[](size_t index) { - return data()[index]; + return Data()[index]; } const T& operator[](size_t index) const { - return data()[index]; + return Data()[index]; } Vector3() : @@ -629,18 +629,18 @@ template struct Vector4 w >= right.w ? static_cast(1) : static_cast(0)); } - T* data() { return reinterpret_cast(this); } + T* Data() { return reinterpret_cast(this); } - const T* data() const { return reinterpret_cast(this); } + const T* Data() const { return reinterpret_cast(this); } T& operator[](size_t index) { - return data()[index]; + return Data()[index]; } const T& operator[](size_t index) const { - return data()[index]; + return Data()[index]; } Vector4() : @@ -756,9 +756,9 @@ template struct Matrix2x2 return m[row]; } - T* data() { return (*this)[0]; } + T* Data() { return (*this)[0]; } - const T* data() const { return (*this)[0]; } + const T* Data() const { return (*this)[0]; } Matrix2x2& operator*=(T s) @@ -923,9 +923,9 @@ template struct Matrix3x3 return m[row]; } - T* data() { return (*this)[0]; } + T* Data() { return (*this)[0]; } - const T* data() const { return (*this)[0]; } + const T* Data() const { return (*this)[0]; } Matrix3x3& operator*=(T s) { @@ -1117,9 +1117,9 @@ template struct Matrix4x4 return m[row]; } - T* data() { return (*this)[0]; } + T* Data() { return (*this)[0]; } - const T* data() const { return (*this)[0]; } + const T* Data() const { return (*this)[0]; } Matrix4x4& operator*=(T s) { -- cgit v1.2.3