Ejemplo n.º 1
0
        /// <summary>
        /// Takes an old X/Y coord and returns a new vector based on the current i-hat & j-hat
        /// </summary>
        /// <param name="iHat"></param>
        /// <param name="jHat"></param>
        /// <param name="x"></param>
        /// <param name="y"></param>
        /// <returns>Returns a DWVector with new coords for the current i-hat/j-hat</returns>
        public static DWVector GetNewVectorLocation(DWVector iHat, DWVector jHat, double x, double y)
        {
            double X = x * iHat.X + y * jHat.X;
            double Y = x * iHat.Y + y * jHat.Y;

            return(new DWVector(X, Y));
        }
Ejemplo n.º 2
0
 public DWMatrix(DWVector ihat, DWVector jhat)
 {
     IX = ihat.X;
     IY = ihat.Y;
     JX = jhat.X;
     JY = jhat.Y;
 }