Added accessors for the position components.
git-svn-id: svn+ssh://src.earth.threerings.net/nenya/trunk@1107 ed5b42cb-e716-0410-a449-f6a68f950b19
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user