Class MPSIntersectionDistance
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.c.StructObject
-
- apple.metalperformanceshaders.struct.MPSIntersectionDistance
-
public final class MPSIntersectionDistance extends org.moe.natj.c.StructObject
-
-
Constructor Summary
Constructors Modifier Constructor Description MPSIntersectionDistance()MPSIntersectionDistance(float distance)protectedMPSIntersectionDistance(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description floatdistance()Distance from the ray origin to the intersection point along the ray direction vector such that intersection = ray.origin + ray.direction * distance.voidsetDistance(float value)Distance from the ray origin to the intersection point along the ray direction vector such that intersection = ray.origin + ray.direction * distance.
-
-
-
Method Detail
-
distance
public float distance()
Distance from the ray origin to the intersection point along the ray direction vector such that intersection = ray.origin + ray.direction * distance. Is negative if there is no intersection. If the intersection type is MPSIntersectionTypeAny, is a positive value for a hit or a negative value for a miss.
-
setDistance
public void setDistance(float value)
Distance from the ray origin to the intersection point along the ray direction vector such that intersection = ray.origin + ray.direction * distance. Is negative if there is no intersection. If the intersection type is MPSIntersectionTypeAny, is a positive value for a hit or a negative value for a miss.
-
-