MPSRayOriginMinDistanceDirectionMaxDistance(3)

NAME
MPSRayOriginMinDistanceDirectionMaxDistance - Represents a 3D ray with an origin, a direction, and an intersection distance range from the origin.

SYNOPSIS

#include <MPSRayIntersectorTypes.h>

  Public Attributes
MPSPackedFloat3 origin
Ray origin. The intersection test will be skipped if the origin contains NaNs or infinities.
float minDistance
Minimum intersection distance from the origin along the ray direction. The intersection test will be skipped if the minimum distance is equal to positive infinity or NaN.
MPSPackedFloat3 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.
float maxDistance
Maximum intersection distance from the origin along the ray direction. May be infinite. The intersection test will be skipped if the maximum distance is less than zero, NaN, or less than the minimum intersection distance.

Detailed Description

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

Member Data Documentation

  MPSPackedFloat3 MPSRayOriginMinDistanceDirectionMaxDistance::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.

  float MPSRayOriginMinDistanceDirectionMaxDistance::maxDistance

Maximum intersection distance from the origin along the ray direction. May be infinite. The intersection test will be skipped if the maximum distance is less than zero, NaN, or less than the minimum intersection distance.

  float MPSRayOriginMinDistanceDirectionMaxDistance::minDistance

Minimum intersection distance from the origin along the ray direction. The intersection test will be skipped if the minimum distance is equal to positive infinity or NaN.

  MPSPackedFloat3 MPSRayOriginMinDistanceDirectionMaxDistance::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.