.TH "MPSRayOriginMaskDirectionMaxDistance" 3 "Mon Jul 9 2018" "Version MetalPerformanceShaders-119.3" "MetalPerformanceShaders.framework" \" -*- nroff -*- .ad l .nh .SH NAME MPSRayOriginMaskDirectionMaxDistance \- Represents a 3D ray with an origin, a direction, and a mask to filter out intersections\&. .SH SYNOPSIS .br .PP .PP \fC#include \fP .SS "Public Attributes" .in +1c .ti -1c .RI "\fBMPSPackedFloat3\fP \fBorigin\fP" .br .RI "Ray origin\&. The intersection test will be skipped if the origin contains NaNs or infinities\&. " .ti -1c .RI "unsigned int \fBmask\fP" .br .RI "Ray mask which is bitwise AND-ed with instance and primitive masks to filter out intersections\&. The intersection test will be skipped if the mask is zero\&. " .ti -1c .RI "\fBMPSPackedFloat3\fP \fBdirection\fP" .br .RI "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\&. " .ti -1c .RI "float \fBmaxDistance\fP" .br .RI "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 or NaN\&. " .in -1c .SH "Detailed Description" .PP Represents a 3D ray with an origin, a direction, and a mask to filter out intersections\&. This type is available from the Metal Shading Language by including the MetalPerformanceShaders/MetalPerformanceShaders\&.h header\&. .SH "Member Data Documentation" .PP .SS "\fBMPSPackedFloat3\fP MPSRayOriginMaskDirectionMaxDistance::direction" .PP 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\&. .SS "unsigned int MPSRayOriginMaskDirectionMaxDistance::mask" .PP Ray mask which is bitwise AND-ed with instance and primitive masks to filter out intersections\&. The intersection test will be skipped if the mask is zero\&. .SS "float MPSRayOriginMaskDirectionMaxDistance::maxDistance" .PP 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 or NaN\&. .SS "\fBMPSPackedFloat3\fP MPSRayOriginMaskDirectionMaxDistance::origin" .PP Ray origin\&. The intersection test will be skipped if the origin contains NaNs or infinities\&. .SH "Author" .PP Generated automatically by Doxygen for MetalPerformanceShaders\&.framework from the source code\&.