Class MPSRayOriginMinDistanceDirectionMaxDistance


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

      • MPSRayOriginMinDistanceDirectionMaxDistance

        public MPSRayOriginMinDistanceDirectionMaxDistance()
      • MPSRayOriginMinDistanceDirectionMaxDistance

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

        public MPSRayOriginMinDistanceDirectionMaxDistance​(MPSPackedFloat3 origin,
                                                           float minDistance,
                                                           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.
      • minDistance

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

        public void setMinDistance​(float value)
        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.
      • 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, NaN, or less than the minimum intersection distance.
      • 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, NaN, or less than the minimum intersection distance.