Is there a method similar to radians in .net

  • Thread starter Thread starter Joe
  • Start date Start date
J

Joe

I want to perform a calculation similar to the following which works in SQL
server:

CntXAxis = cos(radians(CenterLat)) * cos(radians(CenterLon))

thanks,
Joe
 
Never mind I got it...

xaxis = Math.Cos( (Math.PI / 180.0) * latitude) * Math.Cos( (Math.PI / 180)
* longitude);

yaxis = Math.Cos( (Math.PI / 180.0) * latitude) * Math.Sin( (Math.PI / 180)
* longitude);

zaxis = Math.Sin( (Math.PI / 180.0) * latitude);
 
Back
Top