Class MPSRayOriginMaskDirectionMaxDistance
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.c.StructObject
-
- apple.metalperformanceshaders.struct.MPSRayOriginMaskDirectionMaxDistance
-
public final class MPSRayOriginMaskDirectionMaxDistance extends org.moe.natj.c.StructObject
-
-
Constructor Summary
Constructors Modifier Constructor Description MPSRayOriginMaskDirectionMaxDistance()MPSRayOriginMaskDirectionMaxDistance(MPSPackedFloat3 origin, int mask, MPSPackedFloat3 direction, float maxDistance)protectedMPSRayOriginMaskDirectionMaxDistance(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MPSPackedFloat3direction()Ray direction.intmask()Ray mask which is bitwise AND-ed with instance and primitive masks to filter out intersections.floatmaxDistance()Maximum intersection distance from the origin along the ray direction.MPSPackedFloat3origin()Ray origin.voidsetDirection(MPSPackedFloat3 value)Ray direction.voidsetMask(int value)Ray mask which is bitwise AND-ed with instance and primitive masks to filter out intersections.voidsetMaxDistance(float value)Maximum intersection distance from the origin along the ray direction.voidsetOrigin(MPSPackedFloat3 value)Ray origin.
-
-
-
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.
-
-