mjs513 / monoxna

Automatically exported from code.google.com/p/monoxna
Other
0 stars 0 forks source link

Addes some /// comments #41

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Index: src/Microsoft.Xna.Framework/Microsoft.Xna.Framework.csproj
===================================================================
--- src/Microsoft.Xna.Framework/Microsoft.Xna.Framework.csproj  (revision 
228)
+++ src/Microsoft.Xna.Framework/Microsoft.Xna.Framework.csproj  (working 
copy)
@@ -260,5 +260,8 @@
     <Reference Include="Tao.OpenGl, Version=2.1.0.12, Culture=neutral, 
PublicKeyToken=1ca010269a4501ef" />
     <Reference Include="Tao.DevIl, Version=1.6.8.3, Culture=neutral, 
PublicKeyToken=7ec4053013524957" />
     <Reference Include="Tao.Sdl, Version=1.2.13.0, Culture=neutral, 
PublicKeyToken=9c7a200e36c0094e" />
+    <Reference Include="Microsoft.Build.Framework" />
+    <Reference Include="Microsoft.Build.Engine" />
+    <Reference Include="Microsoft.Build.Utilities" />
   </ItemGroup>
 </Project>
\ No newline at end of file
Index: src/Microsoft.Xna.Framework/Vector2.cs
===================================================================
--- src/Microsoft.Xna.Framework/Vector2.cs  (revision 228)
+++ src/Microsoft.Xna.Framework/Vector2.cs  (working copy)
@@ -86,12 +86,27 @@

         #region Constructors

+       /// <summary>
+       /// Constructor foe standard 2D vector.
+       /// </summary>
+       /// <param name="x">
+       /// A <see cref="System.Single"/>
+       /// </param>
+       /// <param name="y">
+       /// A <see cref="System.Single"/>
+       /// </param>
         public Vector2(float x, float y)
         {
             this.X = x;
             this.Y = y;
         }

+       /// <summary>
+       /// Constructor for "square" vector.
+       /// </summary>
+       /// <param name="value">
+       /// A <see cref="System.Single"/>
+       /// </param>
         public Vector2(float value)
         {
             this.X = value;
@@ -158,6 +173,18 @@
                 MathHelper.Clamp(value1.Y, min.Y, max.Y));
         }

+       /// <summary>
+       /// Returns float precison distanve between two vectors
+       /// </summary>
+       /// <param name="value1">
+       /// A <see cref="Vector2"/>
+       /// </param>
+       /// <param name="value2">
+       /// A <see cref="Vector2"/>
+       /// </param>
+       /// <returns>
+       /// A <see cref="System.Single"/>
+       /// </returns>
         public static float Distance(Vector2 value1, Vector2 value2)
         {
             float result;
@@ -165,6 +192,7 @@
             return (float)Math.Sqrt(result);
         }

+       
         public static void Distance(ref Vector2 value1, ref Vector2 value2, 
out float result)
         {
             DistanceSquared(ref value1, ref value2, out result);
@@ -183,6 +211,18 @@
             result = (value1.X - value2.X) * (value1.X - value2.X) + 
(value1.Y - value2.Y) * (value1.Y - value2.Y);
         }

+       /// <summary>
+       /// Devide first vector with the secund vector
+       /// </summary>
+       /// <param name="value1">
+       /// A <see cref="Vector2"/>
+       /// </param>
+       /// <param name="value2">
+       /// A <see cref="Vector2"/>
+       /// </param>
+       /// <returns>
+       /// A <see cref="Vector2"/>
+       /// </returns>
         public static Vector2 Divide(Vector2 value1, Vector2 value2)
         {
             value1.X /= value2.X;
Index: src/Microsoft.Xna.Framework/Point.cs
===================================================================
--- src/Microsoft.Xna.Framework/Point.cs    (revision 228)
+++ src/Microsoft.Xna.Framework/Point.cs    (working copy)
@@ -62,7 +62,16 @@

         #region Constructors

-        public Point(int x, int y)
+       /// <summary>
+       /// Makes new Point with integer accurate
+       /// </summary>
+       /// <param name="x">
+       /// A <see cref="System.Int32"/>
+       /// </param>
+       /// <param name="y">
+       /// A <see cref="System.Int32"/>
+       /// </param>
+       public Point(int x, int y)
         {
             this.X = x;
             this.Y = y;
Index: src/Microsoft.Xna.Framework/Rectangle.cs
===================================================================
--- src/Microsoft.Xna.Framework/Rectangle.cs    (revision 228)
+++ src/Microsoft.Xna.Framework/Rectangle.cs    (working copy)
@@ -108,18 +108,42 @@
             return !(a == b);
         }

+       /// <summary>
+       /// Moves Rectangle for both Point values.
+       /// </summary>
+       /// <param name="offset">
+       /// A <see cref="Point"/>
+       /// </param>
         public void Offset(Point offset)
         {
             X += offset.X;
             Y += offset.Y;
         }

+       /// <summary>
+       /// Moves rectangle for both values.
+       /// </summary>
+       /// <param name="offsetX">
+       /// A <see cref="System.Int32"/>
+       /// </param>
+       /// <param name="offsetY">
+       /// A <see cref="System.Int32"/>
+       /// </param>
         public void Offset(int offsetX, int offsetY)
         {
             X += offsetX;
             Y += offsetY;
         }

+       /// <summary>
+       /// Grows the Rectangle. Down right point is in the same 
position.
+       /// </summary>
+       /// <param name="horizontalValue">
+       /// A <see cref="System.Int32"/>
+       /// </param>
+       /// <param name="verticalValue">
+       /// A <see cref="System.Int32"/>
+       /// </param>
         public void Inflate(int horizontalValue, int verticalValue)
         {
             X -= horizontalValue;
@@ -129,7 +153,7 @@
         }

        /// <summary>
-       /// It cheks if two rectangle intersects. (gsedej)
+       /// It checks if two rectangle intersects.
        /// </summary>
        /// <param name="rect">
        /// A <see cref="Rectangle"/>
@@ -139,36 +163,33 @@
        /// </returns>
        public bool Intersects(Rectangle rect)
        {
-           // I need to compare both X and both Y values
-           // Firt, check the X aixs, if first X coordinate is 
grater or lesser than other
-           //  then check, if the other X in on the first 
line
-           //      do the same for the Y
-           if(this.X <= rect.X)//example 1
+           //see gsedej issue on googlecode for info
+           if(this.X <= rect.X)
            {
-               if((this.X + this.Width) > rect.X) // I 
think it is more, not "more or equal"
+               if((this.X + this.Width) > rect.X)
                {
-                   if(this.Y < rect.Y) //example 1.1
+                   if(this.Y < rect.Y)
                    {
                        if((this.Y + this.Height) > 
rect.Y)
                            return true;
                    }
-                   else // example 1.2
+                   else
                    {
                        if((rect.Y + rect.Height) > 
this.Y)
                            return true;
                    }
                }
            }
-           else //example 2
+           else
            {
                if((rect.X + rect.Width) > this.X)
                {
-                   if(this.Y < rect.Y) //example 2.1
+                   if(this.Y < rect.Y)
                    {
                        if((this.Y + this.Height) > 
rect.Y)
                            return true;
                    }
-                   else // example 2.2
+                   else
                    {
                        if((rect.Y + rect.Height) > 
this.Y)
                            return true;
@@ -184,6 +205,15 @@
             return this == other;
         }

+       /// <summary>
+       /// Returns true if recangles are same
+       /// </summary>
+       /// <param name="obj">
+       /// A <see cref="System.Object"/>
+       /// </param>
+       /// <returns>
+       /// A <see cref="System.Boolean"/>
+       /// </returns>
         public override bool Equals(object obj)
         {
             return (obj is Rectangle) ? this == ((Rectangle)obj) : false;
Index: src/Microsoft.Xna.Framework/Matrix.cs
===================================================================
--- src/Microsoft.Xna.Framework/Matrix.cs   (revision 228)
+++ src/Microsoft.Xna.Framework/Matrix.cs   (working copy)
@@ -139,8 +139,59 @@

         #endregion Public Properties

+       
        #region Constructors
-        
+        /// <summary>
+        /// Constructor for 4x4 Matrix
+        /// </summary>
+        /// <param name="m11">
+        /// A <see cref="System.Single"/>
+        /// </param>
+        /// <param name="m12">
+        /// A <see cref="System.Single"/>
+        /// </param>
+        /// <param name="m13">
+        /// A <see cref="System.Single"/>
+        /// </param>
+        /// <param name="m14">
+        /// A <see cref="System.Single"/>
+        /// </param>
+        /// <param name="m21">
+        /// A <see cref="System.Single"/>
+        /// </param>
+        /// <param name="m22">
+        /// A <see cref="System.Single"/>
+        /// </param>
+        /// <param name="m23">
+        /// A <see cref="System.Single"/>
+        /// </param>
+        /// <param name="m24">
+        /// A <see cref="System.Single"/>
+        /// </param>
+        /// <param name="m31">
+        /// A <see cref="System.Single"/>
+        /// </param>
+        /// <param name="m32">
+        /// A <see cref="System.Single"/>
+        /// </param>
+        /// <param name="m33">
+        /// A <see cref="System.Single"/>
+        /// </param>
+        /// <param name="m34">
+        /// A <see cref="System.Single"/>
+        /// </param>
+        /// <param name="m41">
+        /// A <see cref="System.Single"/>
+        /// </param>
+        /// <param name="m42">
+        /// A <see cref="System.Single"/>
+        /// </param>
+        /// <param name="m43">
+        /// A <see cref="System.Single"/>
+        /// </param>
+        /// <param name="m44">
+        /// A <see cref="System.Single"/>
+        /// </param>
         public Matrix(float m11, float m12, float m13, float m14, float 
m21, float m22, float m23, float m24, 
                      float m31, float m32, float m33, float m34, 
float m41, float m42, float m43, float m44)
         {
@@ -166,6 +217,18 @@

        #region Public Static Methods

+       /// <summary>
+       /// Adds second matrix to the first.
+       /// </summary>
+       /// <param name="matrix1">
+       /// A <see cref="Matrix"/>
+       /// </param>
+       /// <param name="matrix2">
+       /// A <see cref="Matrix"/>
+       /// </param>
+       /// <returns>
+       /// A <see cref="Matrix"/>
+       /// </returns>
        public static Matrix Add(Matrix matrix1, Matrix matrix2)
         {
             matrix1.M11 += matrix2.M11;
@@ -188,6 +251,18 @@
         }

+       /// <summary>
+       /// Adds two Matrix and save to the result Matrix
+       /// </summary>
+       /// <param name="matrix1">
+       /// A <see cref="Matrix"/>
+       /// </param>
+       /// <param name="matrix2">
+       /// A <see cref="Matrix"/>
+       /// </param>
+       /// <param name="result">
+       /// A <see cref="Matrix"/>
+       /// </param>
         public static void Add(ref Matrix matrix1, ref Matrix matrix2, out 
Matrix result)
         {
             result.M11 = matrix1.M11 + matrix2.M11;

Original issue reported on code.google.com by gse...@gmail.com on 4 Oct 2009 at 7:28

GoogleCodeExporter commented 9 years ago
create a patch with: svn diff > patch.diff

post the patch.diff file to this issue

Original comment by lav...@gmail.com on 5 Oct 2009 at 6:26

GoogleCodeExporter commented 9 years ago
I am sending diff file.

Original comment by gse...@gmail.com on 5 Oct 2009 at 10:58

Attachments:

GoogleCodeExporter commented 9 years ago
The comments have been included in the source.

Original comment by lav...@gmail.com on 1 Dec 2009 at 1:16