Syntax @Affine([REJECTABLE],,,,,,) @Affine([REJECTABLE],,,,,,,,,,,,) // Hijacked! See PR#32963 @Affine([REJECTABLE],,,,,,,,ROTATE) A = angle in degrees B,C,D: axis origin E,F,G: axis direction // End of hijacking! Arguments ,,,,, Coefficients of the 2D affine transformation. The transformation results in the x and y coordinates being modified by: x' = Ax + By + C y' = Dx + Ey + F Range: Real number, and must be non-zero. ,,,,,,,,,,, Coefficients of the 3D affine transformation. The transformation results in the x,y and z coordinates being modified by: x' = Ax + By + Cz + D y' = Ex + Fy + Gz + H z' = Ix + Jy + Kz + L Range: Real number, , and must be non-zero. Description This function applies an affine transformation to the feature coordinates upon which it is invoked. An affine transformation not only preserves lines (2D) and planes (3D) it also preserves parallelism of lines and planes. That is, any lines or plane that were parallel before the transformation are parallel after the transformation. As well, if a number of points falling on a straight line or on a given plane are transformed, the resulting coordinates will fall on a straight line or a plane in the new coordinate system. Affine transformations include translations, rotations, scalings, and reflections. A translation is a transformation that preserves the length, angle, and orientation of all geometric entities. 2D Translation : In this case, A=E=1, B=D=0, and C and F are the amounts of the translation 3D Translation : In this case, A=F=K=1, B=C=E=G=I=J=0, and D,H and L are the amounts of the translation A rotation is a transformation that preserves the lengths and angles of all geometric entities. Rotations also preserve one point and the distance of all entities from that point. Scaling transformations include those that preserve all angles and multiply all lengths by the same factor, thereby preserving the "shape" of all entities. Another form of scaling simply scales distances in the x direction by one amount, and distances in the y direction by another amount. A reflection is a transformation that preserves lengths and magnitudes of angles but changes their sign. The effect is equivalent to viewing the original geometry in a mirror, or through a flipped-over sheet of transparent paper. A special kind of affine transformation is called a shear. In a 2D shear that preserves horizontal lines, A=E=1, D=0, and B is not equal to zero. In a 2D shear that maintains vertical lines, A=E=1, B=0, and D is not equal to zero. If REJECTABLE parameter is specified, then a feature can be rejected if needed instead of failing a workspace.