Navigation: Scripting Reference Manual > Functions & Subroutines > SetSourceDirection

 

SetSourceDirection

 

Contact Us: fredsupport@photonengr.com

 

Description

Sets the ray direction data for a source with a single direction plane wave ray direction type.

 

Syntax

SetSourceDirection n, dirA, dirB, dirC

 

Parameters

n As Long

Node number of the source.

 

dirA As Double

The new X component of the direction vector.

 

dirB As Double

The new Y component of the direction vector.

 

dirC As Double

The new Z component of the direction vector.

 

Remarks

This subroutine sets the ray direction data from a source with a single direction plane wave ray direction type. If there is a problem the function returns without modifying the source or setting an error.

 

See Also

GetSourceDirection

IsSourceDirection

Examples

Sources

 

 

 

 

 

Copyright © Photon Engineering, LLC