Navigation: Scripting Reference Manual > Functions & Subroutines > RotateAxis

 

RotateAxis

 

Contact Us: fredsupport@photonengr.com

 

Description

Appends a rotation operation to the selected entity about an arbitrary direction passing through the origin in the specified coordinate system.  Currently there is no script command equivalent to the "Rotate about an arbitrary axis" as found in the GUI. This operation is accomplished by using a RotateAxis followed by a Shift.

 

Syntax

RotateAxis n, coord, x, y, z, angle

 

Parameters

n As Long

Node number of the entity.

 

coord As Long

Node number of the coordinate system under which this operation is applied.

 

x As Double

X-component of direction vector.

 

y As Double

Y-component of direction vector.

 

z As Double

Z-component of direction vector.

 

angle As Double

Angle of rotation in degrees.

 

 

See Also

RotateX

RotateIthX

RotateY

RotateIthY

RotateZ

RotateIthZ

RotateXYZ

RotateIthXYZ

RotateZYX

RotateIthZYX

RotateIthAxis

RotateToDirection

RotateIthToDirection

TransformPosition

TransformDirection

 

Examples

Linear Transformations

 

 

 

 

 

Copyright © Photon Engineering, LLC