1 Index: src/src/nvmath/Vector.h
2 ===================================================================
3 --- src/src/nvmath/Vector.h (revision 8311)
4 +++ src/src/nvmath/Vector.h (working copy)
9 - const Vector2 & xy() const;
12 scalar component(uint idx) const;
18 - const Vector2 & xy() const;
19 - const Vector3 & xyz() const;
21 + Vector3 xyz() const;
23 scalar component(uint idx) const;
26 inline scalar Vector3::y() const { return m_y; }
27 inline scalar Vector3::z() const { return m_z; }
29 -inline const Vector2 & Vector3::xy() const
30 +inline Vector2 Vector3::xy() const
32 - return *(Vector2 *)this;
33 + return Vector2(m_x, m_y);
36 inline scalar Vector3::component(uint idx) const
38 inline scalar Vector4::z() const { return m_z; }
39 inline scalar Vector4::w() const { return m_w; }
41 -inline const Vector2 & Vector4::xy() const
42 +inline Vector2 Vector4::xy() const
44 - return *(Vector2 *)this;
45 + return Vector2(m_x, m_y);
48 -inline const Vector3 & Vector4::xyz() const
49 +inline Vector3 Vector4::xyz() const
51 - return *(Vector3 *)this;
52 + return Vector3(m_x, m_y, m_z);
55 inline scalar Vector4::component(uint idx) const