コード例 #1
0
 /// <summary>
 /// Returns a new Euclidean transformation by transforming this by a t.
 /// Note: This is not a concatenation.
 /// t is fully applied to the Translation and Rotation,
 /// but the scale is not reflected in the resulting Euclidean transformation.
 /// </summary>
 public __e3t__ Transformed(Similarity__s3f__ t)
 {
     return(Transformed(this, t));
 }
コード例 #2
0
        /*
         * public static M3__s4f__ operator *(M3__s3f__ m, __e3t__ r)
         * {
         *  return (M3__s4f__)m * (M3__s4f__)r;
         * }
         */
        #endregion

        #region Transformations yielding a Euclidean transformation

        /// <summary>
        /// Returns a new Euclidean transformation by transforming self by a Trafo t.
        /// Note: This is not a concatenation.
        /// t is fully applied to the Translation and Rotation,
        /// but the scale is not reflected in the resulting Euclidean transformation.
        /// </summary>
        // [todo ISSUE 20090810 andi : andi] Rethink this notation. Maybe write Transformed methods for all transformations.
        public static __e3t__ Transformed(__e3t__ self, Similarity__s3f__ t)
        {
            return(new __e3t__(t.Rot * self.Rot, t.TransformPos(self.Trans)));
        }