Пример #1
0
    public ViewPort(ComplexArea area, Size resolution)
    {
        Area       = area;
        Resolution = resolution;

        // The right-most/top-most point is at the edge of the view port
        _realIncrement = area.RealRange.Magnitude / (resolution.Width - 1);
        _imagIncrement = area.ImagRange.Magnitude / (resolution.Height - 1);
    }
 public static void WriteComplexArea(this BinaryWriter writer, ComplexArea area)
 {
     writer.WriteRange(area.RealRange);
     writer.WriteRange(area.ImagRange);
 }