/[gr2lib]/trunk/gr2lib/core/coretypes/implementation/Transform.cs
ViewVC logotype

Diff of /trunk/gr2lib/core/coretypes/implementation/Transform.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/gr2lib/core/coretypes/implementation/Transform.cs	2010/07/17 05:10:22	95
+++ trunk/gr2lib/core/coretypes/implementation/Transform.cs	2010/07/24 02:23:18	186
@@ -7,9 +7,14 @@
 
 namespace gr2lib.core.coretypes.implementation
 {
+    /// <summary>
+    /// Transform class
+    /// </summary>
     public class Transform : ITransform
     {
-
+        /// <summary>
+        /// default constructor
+        /// </summary>
         public Transform()
         {
             this.Initialize();
@@ -21,7 +26,10 @@
         {
             this.MakeIdentity();
         }
-
+        /// <summary>
+        /// Gets string representation
+        /// </summary>
+        /// <returns></returns>
         public override string ToString()
         {
             StringBuilder builder = new StringBuilder();
@@ -64,6 +72,10 @@
         }
 
         #region ITransform Members
+        /// <summary>
+        /// ToMatrix44
+        /// </summary>
+        /// <returns></returns>
         public Matrix44 ToMatrix44()
         {
             Matrix33 rotator = this.Rotation.Inverse().ToMatrix33();
@@ -72,7 +84,10 @@
             result.pos = this.Origin.P4;
             return result;
         }
-
+        /// <summary>
+        /// ToMatrix44EA
+        /// </summary>
+        /// <returns></returns>
         public Matrix44 ToMatrix44EA()
         {
             Matrix33 rotator = this.Rotation.Inverse().ToMatrix33EA();
@@ -81,7 +96,9 @@
             result.pos = this.Origin.P4;
             return result;
         }
-
+        /// <summary>
+        /// MakeIdentity
+        /// </summary>
         public void MakeIdentity()
         {
             this.Dimensions = 7;
@@ -90,6 +107,10 @@
             this.Scale = Matrix33.CopyMatrix(Matrix33.Identity);
             this.Matrix = Matrix44.CopyMatrix(Matrix44.Identity);
         }
+        /// <summary>
+        /// MakeIdentity
+        /// </summary>
+        /// <param name="t">the transform to return</param>
         public void MakeIdentity(out Transform t)
         {
             t = new Transform();
@@ -105,11 +126,25 @@
         private Quaternion _Rotation;
         private Matrix33 _Scale;
         private Matrix44 _Matrix;
-
+        /// <summary>
+        /// Dimensions
+        /// </summary>
         public Int32 Dimensions { get { return _Dimensions; } set { _Dimensions = value; } }
+        /// <summary>
+        /// Origin
+        /// </summary>
         public Vector3 Origin { get { return _Origin; } set { _Origin = value; } }
+        /// <summary>
+        /// Rotation
+        /// </summary>
         public Quaternion Rotation { get { return _Rotation; } set { _Rotation = value; } }
+        /// <summary>
+        /// Scale
+        /// </summary>
         public Matrix33 Scale { get { return _Scale; } set { _Scale = value; } }
+        /// <summary>
+        /// Matrix
+        /// </summary>
         public Matrix44 Matrix { get { return _Matrix; } set { _Matrix = value; } }
         #endregion
     }

 

  ViewVC Help
Powered by ViewVC 1.1.22