Пример #1
0
        private (double x, double y) ToRealCartesian()
        {
            // grid polar coordinates convert to floating point values over grid space
            var x = Radius * Math.Cos(Theta);
            var y = Radius * Math.Sin(Theta);

            // those values are now translated to real space, which has origin in (0.5,0.5)
            return(GridConvert.ToReal(x), GridConvert.ToReal(y));
        }
Пример #2
0
 public static (double x, double y) ToReal(GridCoordinatePair gridCoordinates)
 {
     return(GridConvert.ToReal(gridCoordinates.X), GridConvert.ToReal(gridCoordinates.Y));
 }