Navigation: Scripting Reference Manual > Functions & Subroutines > SetRayA

 

SetRayA

 

Contact Us: fredsupport@photonengr.com

 

THIS COMMAND IS NO LONGER SUPPORTED. 

Due to an issue regarding normalization of the ray direction cosines, this command is no longer functional.  Please use the following command in its place:  SetRayDirection  Depending on the number of rays traced, it may be necessary to dimension ray index and ray counter variables as data type Huge_ instead of Long.  Please see Multi-threaded Raytracing for more information.

 

 

Description

Sets the A direction cosine for a specified ray in the ray buffer.

 

Syntax

SetRayA id, dirA

 

Parameters

id As Long (or Huge_)

Identifier of the ray.

 

dirA As Double

New value for the A direction cosine.

 

Remarks

This subroutine sets the A direction cosine (X component of the ray's unit length direction vector in global coordinates) for a specified ray in the ray buffer.  If there is a problem, the subroutine posts an error and returns without modifying the ray.

 

See Also

GetRayPosition

GetRayA

GetRayB

GetRayC

GetRayDirection

SetRayB

SetRayC

Examples

Raydata GetSet

 

 

 

 

 

Copyright © Photon Engineering, LLC