Class MPSRayOriginMinDistanceDirectionMaxDistance
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.c.StructObject
-
- apple.metalperformanceshaders.struct.MPSRayOriginMinDistanceDirectionMaxDistance
-
public final class MPSRayOriginMinDistanceDirectionMaxDistance extends org.moe.natj.c.StructObject
-
-
Constructor Summary
Constructors Modifier Constructor Description MPSRayOriginMinDistanceDirectionMaxDistance()MPSRayOriginMinDistanceDirectionMaxDistance(MPSPackedFloat3 origin, float minDistance, MPSPackedFloat3 direction, float maxDistance)protectedMPSRayOriginMinDistanceDirectionMaxDistance(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MPSPackedFloat3direction()Ray direction.floatmaxDistance()Maximum intersection distance from the origin along the ray direction.floatminDistance()Minimum intersection distance from the origin along the ray direction.MPSPackedFloat3origin()Ray origin.voidsetDirection(MPSPackedFloat3 value)Ray direction.voidsetMaxDistance(float value)Maximum intersection distance from the origin along the ray direction.voidsetMinDistance(float value)Minimum intersection distance from the origin along the ray direction.voidsetOrigin(MPSPackedFloat3 value)Ray origin.
-
-
-
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.
-
-