public final class MPSIntersectionDistancePrimitiveIndex
extends org.moe.natj.c.StructObject
| Modifier | Constructor and Description |
|---|---|
|
MPSIntersectionDistancePrimitiveIndex() |
|
MPSIntersectionDistancePrimitiveIndex(float distance,
int primitiveIndex) |
protected |
MPSIntersectionDistancePrimitiveIndex(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
float |
distance()
Distance from the ray origin to the intersection point along the ray direction
vector such that intersection = ray.origin + ray.direction * distance.
|
int |
primitiveIndex()
Index of the intersected primitive.
|
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.
|
void |
setPrimitiveIndex(int value)
Index of the intersected primitive.
|
public MPSIntersectionDistancePrimitiveIndex()
protected MPSIntersectionDistancePrimitiveIndex(org.moe.natj.general.Pointer peer)
public MPSIntersectionDistancePrimitiveIndex(float distance,
int primitiveIndex)
public float distance()
public void setDistance(float value)
public int primitiveIndex()
public void setPrimitiveIndex(int value)