public static double ReturnOrientation(LineObject lineament)
        {
            double dblDirection = 0.0;


            double dblDx = lineament.dblEndX - lineament.dblStartX;
            double dblDy = lineament.dblEndY - lineament.dblStartY;

            if (dblDy == 0.0)
            {
                return(90);
            }

            double dblOrient = dblDx / dblDy;

            //get the inverse tangent
            double dblInverse = Math.Atan(dblOrient);

            //as Atan returns radians, convert to degress
            double dblDeg = dblInverse * (180 / Math.PI);

            if (dblDeg < 0)
            {
                dblDirection = dblDeg + 180;
            }
            else
            {
                dblDirection = dblDeg;
            }

            return(dblDirection);
        }
        public static double ReturnLength(LineObject lineament)
        {
            double dblLength      = 0.0;
            double dblMeasurement = 0.0;

            dblMeasurement = Math.Pow(lineament.dblStartX - lineament.dblEndX, 2) + Math.Pow(lineament.dblStartY - lineament.dblEndY, 2);

            dblLength = dblMeasurement * dblMeasurement;

            return(dblLength);
        }