<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="atan2" module="max" category="Math">
	<digest>
		Two-variable arc-tangent function
	</digest>
	<description>
		Use the <o>atan2</o> object to calculate and output the arc-tangent of any two given numbers where the left input is the y value and the right input is the x value.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
		<metadata name="tag">
			Math
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				Y value
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				X value
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				atan2(y/x)
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg>
			<arglist>
				<arg name="y-value" optional="1" type="number" />
				<arg name="x-value" optional="1" type="number" />
			</arglist>
			<digest>
				Two ints may be used to set the initial value for the arc-tangent function
			</digest>
			<description>
				Two ints may be used to set the initial value for the arc-tangent function.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Calculate the arc-tangent of the numbers currently stored
			</digest>
			<description>
				Calculates the arc-tangent of the numbers currently stored. If there are no arguments, <o>atan2</o> initially holds <m>0</m> for both input values.
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="y-value" optional="0" type="int" />
			</arglist>
			<digest>
				In left input: y value input to an arc-tangent function
			</digest>
			<description>
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="y-value" optional="0" type="float" />
			</arglist>
			<digest>
				In left input: y value input to an arc-tangent function
			</digest>
			<description>
			</description>
		</method>
		<method name="ft1">
			<arglist>
				<arg name="x-value" optional="0" type="float" />
			</arglist>
			<digest>
				In right input: x value input to an arc-tangent function
			</digest>
			<description>
			</description>
		</method>
		<method name="in1">
			<arglist>
				<arg name="x-value" optional="0" type="int" />
			</arglist>
			<digest>
				In right input: x value input to an arc-tangent function
			</digest>
			<description>
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="atan2.png" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="atan" />
		<seealso name="atanh" />
		<seealso name="tan" />
	</seealsolist>
	<misc name="Output">
		<entry name="float">
			<description>
				The arc-tangent of the input values (i.e. Arc-tangent (y/x)).
			</description>
		</entry>
		<entry name="int">
			<description>
				The arc-tangent of the input values (i.e. Arc-tangent (y/x)).
			</description>
		</entry>
	</misc>
</c74object>
