Navigation: Scripting Reference Manual > Functions & Subroutines > GetRayC

 

GetRayC

 

Contact Us: fredsupport@photonengr.com

 

Description

Returns the C direction cosine of a specified ray.  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.

 

Syntax

c = GetRayC ( id )

 

Parameters

c (Double)

The C direction cosine.

 

id As Long (or Huge_)

The identifier of the ray.

 

Remarks

This function returns the C direction cosine for a specified ray in the ray buffer.  If there is a problem, the function toggles an error and returns a value of 0.

 

The C direction cosine is the z component (in global coordinates) of the ray's unit length direction vector.

 

See Also

GetRayPosition

GetRayA

GetRayB

GetRayDirection

 

 

 

 

 

Copyright © Photon Engineering, LLC