Now don't think that it is too difficult, we will break it down.
First, the parameters of the Rotate function recieve the number of degrees
to be rotated in each axis.
The next 3 lines assign the radx,rady and radz variables the 'converted
to radian' values of x, y and z variables. If you have poor memory, let me
remind you that the rad variable you multiply with the x,y and z variables
is actually a formula used to convert degrees to radians. We declared this
variable in the first itself.
Next a for loop loops n number of times where n denotes the value of the
points variable.
Inside the for loop, the formula for rotating the vertex in each axis is
executed. Explaining each line would end up only in pages of explanation.
So, try to figure it out all by yourself.