Navigation: Scripting Reference Manual > Functions & Subroutines > GetRayB

 

GetRayB

 

Contact Us: fredsupport@photonengr.com

 

Description

Returns the B 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

b = GetRayB ( id )

 

Parameters

b (Double)

The B direction cosine.

 

id As Long (or Huge_)

The identifier of the ray.

 

Remarks

This function returns the B 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 B direction cosine is the y component (in global coordinates) of the ray's unit length direction vector.

 

See Also

GetRayPosition

GetRayA

GetRayC

GetRayDirection

Examples

Raydata GetSet

 

 

 

 

 

Copyright © Photon Engineering, LLC