using System;
using System.Drawing ;

namespace StructValueType
{
	/// <summary>
	/// Summary description for Class1.
	/// </summary>
	public struct PolarPoint  
	{
		private double m_r, m_theta ;

		
		public PolarPoint (double r, double theta)
		{
			m_r = r ;
			m_theta = theta ;
		}

		public double theta
		{
			get {return m_theta ;}
			set {m_theta = value ; }
		}

		public double r 
		{
			get {return m_r ; } 
			set {m_r = value ; } 
		}

		public double Distance (PolarPoint otherPP)
		{
			return  Math.Sqrt ( 
				(this.r * this.r) + 
				(otherPP.r * otherPP.r) -
				2 * this.r * otherPP.r * Math.Cos (otherPP.theta - this.theta)) ;
		}

		public void AMethod ( )
		{
		//	System.Collections.ArrayList al = new System.Collections.ArrayList () ;

			int [] al = new int [10] ;
			int i = 5 ;

			al [0] = i ;

//			al.Add (i) ;

			int j = (int) al [0] ;
		}

	}
}
