MapAround.CoordinateSystems.Transformations.Affine.Translation C# (CSharp) Method

Translation() public static method

Create a translation transform.
public static Translation ( double x, double y ) : Affine
x double X translation
y double Y translation
return Affine
        public static Affine Translation(double x, double y)
        {
            Matrix matrix = new Matrix(
                new double[,]
            {
                { 1, 0, 0 },
                { 0, 1, 0 },
                { x, y, 1 },
            });
            return new Affine(matrix);
        }