Description Returns the A 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 a = GetRayA ( id )
Parameters a (Double) The A direction cosine.
id As Long (or Huge_) The identifier of the ray.
Remarks This function returns the A 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 A direction cosine is the x component (in global coordinates) of the ray's unit length direction vector.
See Also Examples ay
|