MPSRayOriginDirection(3)

NAME
MPSRayOriginDirection - Represents a 3D ray with an origin and a direction.

SYNOPSIS

#include <MPSRayIntersectorTypes.h>

  Public Attributes
vector_float3 origin
Ray origin. The intersection test will be skipped if the origin contains NaNs or infinities.
vector_float3 direction
Ray direction. Does not need to be normalized. The intersection test will be skipped if the direction has length zero or contains NaNs or infinities.

Detailed Description

Represents a 3D ray with an origin and a direction. This type is available from the Metal Shading Language by including the MetalPerformanceShaders/MetalPerformanceShaders.h header.

Member Data Documentation

  vector_float3 MPSRayOriginDirection::direction

Ray direction. Does not need to be normalized. The intersection test will be skipped if the direction has length zero or contains NaNs or infinities.

  vector_float3 MPSRayOriginDirection::origin

Ray origin. The intersection test will be skipped if the origin contains NaNs or infinities.

Author

Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.