rotateln

 

Rotates a point distribution about a line.

Format

rotateln / ifirst, ilast, istride / nocopy | copy / x1, y1, z1 / x2, y2, z2 / theta / xcen, ycen, zcen/

 

rotateln Parameters

Parameters

Type/Value

Description/Default

ifirst, ilast, istride

 

Defines the point distribution.

nocopy | copy

nocopy

Just keeps the rotated points themselves.

 

copy

Makes a copy of the original points as well as the rotated points.

x1, y1, z1

x2, yx, z2

 

Line of rotation defined by x1 through z2. Needs to be defined such that the endpoints extend beyond the point distribution being rotated.

theta

real

The angle of rotation, in degrees, whose positive direction is determined by the right-hand-rule, that is, if the thumb of your right hand points in the direction of the line (1 to 2), then your fingers will curl in the direction of rotation.

xcen, ycen, zcen

reals

The point where the line can be shifted to before rotation takes place.

Note

The end points of the line segment must extend well beyond the point set being rotated.

Example