MPSRayOriginDirection(3) MetalPerformanceShaders.framework MPSRayOriginDirection(3)

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

#include <MPSRayIntersectorTypes.h>


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.

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.

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.

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

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

Mon Jul 9 2018 Version MetalPerformanceShaders-119.3