Navigation: Scripting Reference Manual > Functions & Subroutines > RotateIthToDirection

 

RotateIthToDirection

 

Contact Us: fredsupport@photonengr.com

 

Description

Replaces the i'th Location/Orientation operation with a RotateToDirection in the specified coordinate system.

 

Syntax

RotateIthToDirection n, i, coord, x1, y1, z1, x2, y2, z2

 

Parameters

n As Long

Node number of the entity.

 

i As Long

Zero-based index of the Location/Orientation operation to be modified.

 

coord As Long

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

 

x1 As Double

X-component of the first direction vector.

 

y1 As Double

Y-component of the first direction vector.

 

z1 As Double

Z-component of the first direction vector.

 

x2 As Double

X-component of the second direction vector.

 

y2 As Double

Y-component of the second direction vector.

 

z2 As Double

Z-component of the second direction vector.

 

Remarks

This position/orientation specification does not allow preservation of a user designated direction vector.  Please use the generic T_OPERATION structure to implement this option.

 

See Also

RotateX

RotateIthX

RotateY

RotateIthY

RotateZ

RotateIthZ

RotateXYZ

RotateIthXYZ

RotateZYX

RotateIthZYX

RotateAxis

RotateIthAxis

RotateToDirection

TransformPosition

TransformDirection

Examples

Linear Transformations

 

 

 

 

 

Copyright © Photon Engineering, LLC