Navigation: Scripting Reference Manual > Functions & Subroutines > RotateToDirection

 

RotateToDirection

 

Contact Us: fredsupport@photonengr.com

 

Description

Rotates a given direction vector into a another direction vector.

 

Syntax

RotateToDirection n, coord, x1, y1, z1, x2, y2, z2

 

Parameters

n As Long

Node number of the entity.

 

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

RotateIthToDirection

TransformPosition

TransformDirection

Examples

Linear Transformation

 

 

 

 

 

Copyright © Photon Engineering, LLC