[Roam-commit] SF.net SVN: roam: [85] Trunk
Status: Alpha
Brought to you by:
jonfroehlich
|
From: <jon...@us...> - 2007-07-23 07:25:16
|
Revision: 85
http://roam.svn.sourceforge.net/roam/?rev=85&view=rev
Author: jonfroehlich
Date: 2007-07-23 00:25:14 -0700 (Mon, 23 Jul 2007)
Log Message:
-----------
1. changed some float types to double in MathUtils
2. added WindowsMobile.Location dll to Library
Modified Paths:
--------------
Trunk/Source/Roam.Common/Utils/MathUtils.cs
Trunk/Source/Roam.suo
Added Paths:
-----------
Trunk/Library/Release/Microsoft.WindowsMobile.Location.dll
Trunk/Library/Release/Microsoft.WindowsMobile.Location.pdb
Property Changed:
----------------
Trunk/Samples/WallpaperChanger/
Added: Trunk/Library/Release/Microsoft.WindowsMobile.Location.dll
===================================================================
(Binary files differ)
Property changes on: Trunk/Library/Release/Microsoft.WindowsMobile.Location.dll
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: Trunk/Library/Release/Microsoft.WindowsMobile.Location.pdb
===================================================================
(Binary files differ)
Property changes on: Trunk/Library/Release/Microsoft.WindowsMobile.Location.pdb
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Property changes on: Trunk/Samples/WallpaperChanger
___________________________________________________________________
Name: svn:ignore
+ bin
obj
Modified: Trunk/Source/Roam.Common/Utils/MathUtils.cs
===================================================================
--- Trunk/Source/Roam.Common/Utils/MathUtils.cs 2007-07-21 06:19:34 UTC (rev 84)
+++ Trunk/Source/Roam.Common/Utils/MathUtils.cs 2007-07-23 07:25:14 UTC (rev 85)
@@ -28,8 +28,7 @@
/// <author>Jon Froehlich</author>
public static class MathUtils
{
-
- public static double GetDistance(Point ptStart, Point ptEnd)
+ public static double GetEuclideanDistance(Point ptStart, Point ptEnd)
{
int xDiff = ptEnd.X - ptStart.X;
int yDiff = ptEnd.Y - ptStart.Y;
@@ -42,27 +41,27 @@
/// <param name="ptStart"></param>
/// <param name="ptEnd"></param>
/// <returns></returns>
- public static float GetAngle(Point ptStart, Point ptEnd)
+ public static double GetAngle(Point ptStart, Point ptEnd)
{
Vector2 v = new Vector2(1,0);
Vector2 w = new Vector2(ptEnd.X - ptStart.X, ptEnd.Y - ptStart.Y);
- float angleRad = v.GetAngle(w);
+ double angleRad = v.GetAngle(w);
if(w.X < 0 && w.Y > 0 || w.X >=0 && w.Y >= 0){
- angleRad = (float)((System.Math.PI * 2) - angleRad);
+ angleRad = (System.Math.PI * 2) - angleRad;
}
return angleRad;
}
- public static float DegreesToRadians(float degrees)
+ public static double DegreesToRadians(double degrees)
{
- return (float)(degrees * System.Math.PI / 180f);
+ return degrees * System.Math.PI / 180.0;
}
- public static float RadiansToDegrees(float radians)
+ public static double RadiansToDegrees(double radians)
{
- return (float)(radians * 180 / System.Math.PI);
+ return radians * 180.0 / System.Math.PI;
}
public static double Variance(ICollection<double> values)
Modified: Trunk/Source/Roam.suo
===================================================================
(Binary files differ)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|