From 2b23d97d1dae5cac99ffd8f09bf04f19a9fceedf Mon Sep 17 00:00:00 2001 From: castano Date: Sat, 19 Jan 2008 08:54:57 +0000 Subject: [PATCH] Add missing method. --- src/nvmath/Vector.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/nvmath/Vector.h b/src/nvmath/Vector.h index 8654195..274f2b2 100644 --- a/src/nvmath/Vector.h +++ b/src/nvmath/Vector.h @@ -353,6 +353,11 @@ inline scalar Vector4::component(uint idx) const return 0.0f; } +inline const scalar * Vector3::ptr() const +{ + return &m_x; +} + inline void Vector4::set(scalar x, scalar y, scalar z, scalar w) { m_x = x;