note
	description: "The 3d object that receive the sound emit by sound sources."
	author: "Louis Marchand"
	date: "Tue, 07 Apr 2015 01:15:20 +0000"
	revision: "2.0"

class interface
	AUDIO_LISTENER

create {AUDIO_LIBRARY_CONTROLLER}
	default_create

feature -- Access

	initialize
			-- Set the default orientation, velocity and position.

	set_orientation (a_x_at, a_y_at, a_z_at, a_x_up, a_y_up, a_z_up: REAL_32)
			-- Set the listener orientation (UP and AT).
			-- If you visualize the listener as a head, the UP is a vector representing the top of the head.
			-- The AT is the vector representing where the head is looking.
		require
			listener_orientation_at_and_up_orthogonal: a_x_at * a_x_up + a_y_at * a_y_up + a_z_at * a_z_up = 0.to_real

	orientation: TUPLE [a_x_at: REAL_32; a_y_at: REAL_32; a_z_at: REAL_32; a_x_up: REAL_32; a_y_up: REAL_32; a_z_up: REAL_32]
			-- Get the listener orientation (UP and AT).
	
end -- class AUDIO_LISTENER

Generated by ISE EiffelStudio