Class MPSRayOriginMaskDirectionMaxDistance


  • public final class MPSRayOriginMaskDirectionMaxDistance
    extends org.moe.natj.c.StructObject
    • Constructor Detail

      • MPSRayOriginMaskDirectionMaxDistance

        public MPSRayOriginMaskDirectionMaxDistance()
      • MPSRayOriginMaskDirectionMaxDistance

        protected MPSRayOriginMaskDirectionMaxDistance​(org.moe.natj.general.Pointer peer)
      • MPSRayOriginMaskDirectionMaxDistance

        public MPSRayOriginMaskDirectionMaxDistance​(MPSPackedFloat3 origin,
                                                    int mask,
                                                    MPSPackedFloat3 direction,
                                                    float maxDistance)
    • Method Detail

      • origin

        public MPSPackedFloat3 origin()
        Ray origin. The intersection test will be skipped if the origin contains NaNs or infinities.
      • setOrigin

        public void setOrigin​(MPSPackedFloat3 value)
        Ray origin. The intersection test will be skipped if the origin contains NaNs or infinities.
      • mask

        public int mask()
        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.
      • setMask

        public void setMask​(int value)
        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.
      • direction

        public 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.
      • setDirection

        public void setDirection​(MPSPackedFloat3 value)
        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.
      • maxDistance

        public 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 or NaN.
      • setMaxDistance

        public void setMaxDistance​(float value)
        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.