abutment seat skew angle
Length of abutment seat
distance from seat edge to CL of first pile
number of pile rows along the X' axis
number of pile rows along the Y' axis
total number of piles
Pile spacing along X' axis - piles are centered on abutment seat CL
Lets calculate the pile spacing along Y' axis:
Now we will define the pile coordinates in a system X'Y'Z:
coordinate of the 1st pile:
Pile coordinates; both X'Y'Z and XYZ:
rotation matrix
if i delete this, the function will use larger matrix and will crash!