From 7ed7e5ad7de50fddf3ecbca70b59754805d6d862 Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Wed, 5 Jan 2011 23:04:36 +0000 Subject: [PATCH] Added accessors for the position components. git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1107 ed5b42cb-e716-0410-a449-f6a68f950b19 --- .../java/com/threerings/openal/Listener.java | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/main/java/com/threerings/openal/Listener.java b/src/main/java/com/threerings/openal/Listener.java index d2983dde..57ed113b 100644 --- a/src/main/java/com/threerings/openal/Listener.java +++ b/src/main/java/com/threerings/openal/Listener.java @@ -41,6 +41,30 @@ public class Listener } } + /** + * Returns the x component of the listener's position. + */ + public float getPositionX () + { + return _px; + } + + /** + * Returns the y component of the listener's position. + */ + public float getPositionY () + { + return _py; + } + + /** + * Returns the z component of the listener's position. + */ + public float getPositionZ () + { + return _pz; + } + /** * Sets the velocity of the listener. */