Description Sets a ray's direction vector. 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 SetRayDirection id, dirA, dirB, dirC
Parameters id As Long (or Huge_) Identifier of the ray.
dirA As Double New value of the A direction vector component.
dirB As Double New value of the B direction vector component.
dirC As Double New value of the C direction vector component.
Remarks This subroutine sets a ray's direction vector. If there is a problem, the subroutine posts an error and returns without modifying the direction vector.
The values dirA,dirB,dirC are the x,y,z components of the direction vector. The vector does not have to be unit length.
See Also Examples
|