static void TestPoints() { Shapes geoShapes = new Shapes(); double radiusA = 4.0; double radiusB = 2.0; double iVector = 1.0; double jVector = 1.0; double kVector = 1.0; List <Vector3D> points = new List <Vector3D>(); List <Vector3D> pointResults = new List <Vector3D>(); List <Vector3D> pointResultsA = new List <Vector3D>(); Vector3D center1b = new Vector3D(); center1b.X = 0.0; center1b.Y = 0.0; center1b.Z = 0.0; points = geoShapes.CreateEllipse(0.0, radiusA, radiusB, 60.0); Vector3D directionCos = geoShapes.ConvertToUnitVector(iVector, jVector, kVector); double xAngle = 0.0; double yAngle = 0.0; double zAngle = 0.0; yAngle = geoShapes.RadianToDegree(Math.Acos(directionCos.Z)); zAngle = geoShapes.RadianToDegree(Math.Atan(directionCos.Y / directionCos.X)); pointResults = geoShapes.RotatePoints(xAngle, yAngle, zAngle, points); pointResultsA = geoShapes.RotatePoints(xAngle, yAngle, zAngle, points); }