3D transformation is:

Xp=Xc/Zc;

Yp=Yc/Zc;

where Xc (x-coordinate) and Yc are any numbers, positive or negative, and Zc is positive.

For a 3D object centered at the origin (0,0,0), use this formula:

Xp=Xc/(Zc+sqrt(mD));

Yp=Yc/(Zc+sqrt(mD));

where mD (maximum distance) is the largest distance from the origin to a point on the object.

Rotation around any point, line, plane, solid, etc:

Ar=Ac*sin(theta)+Bc*cos(theta);

Br=Ac*cos(theta)-Bc*sin(theta);

where A and B are the axes defining the plane perpendicular to the axial point/line/plane/solid etc. To find the perpendicular plane, simply use the 2 axes you do

Xp=Xc/Zc;

Yp=Yc/Zc;

where Xc (x-coordinate) and Yc are any numbers, positive or negative, and Zc is positive.

For a 3D object centered at the origin (0,0,0), use this formula:

Xp=Xc/(Zc+sqrt(mD));

Yp=Yc/(Zc+sqrt(mD));

where mD (maximum distance) is the largest distance from the origin to a point on the object.

Rotation around any point, line, plane, solid, etc:

Ar=Ac*sin(theta)+Bc*cos(theta);

Br=Ac*cos(theta)-Bc*sin(theta);

where A and B are the axes defining the plane perpendicular to the axial point/line/plane/solid etc. To find the perpendicular plane, simply use the 2 axes you do

*not*use to define the axial object.
## Comment