Dianar723
Dianar723
08.11.2019 • 
Engineering

Public class polygontransform { // returns a new array object that is an exact copy of the given array. // the given array is not mutated. public static double[] copy(double[] array) // scales the polygon by the factor alpha. public static void scale(double[] x, double[] y, double alpha) // translates the polygon by (dx, dy). public static void translate(double[] x, double[] y, double dx, double dy) // rotates the polygon theta degrees counterclockwise, about the origin. public static void rotate(double[] x, double[] y, double theta) // tests each of the api methods by directly calling them. public static void main(string[] args) }

Solved
Show answers

Ask an AI advisor a question