public final class MPSIntersectionDistancePrimitiveIndexBufferIndex
extends org.moe.natj.c.StructObject
| Modifier | Constructor and Description |
|---|---|
|
MPSIntersectionDistancePrimitiveIndexBufferIndex() |
|
MPSIntersectionDistancePrimitiveIndexBufferIndex(float distance,
int primitiveIndex,
int bufferIndex) |
protected |
MPSIntersectionDistancePrimitiveIndexBufferIndex(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
int |
bufferIndex()
Buffer index of the intersected primitive.
|
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 |
setBufferIndex(int value)
Buffer 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 MPSIntersectionDistancePrimitiveIndexBufferIndex()
protected MPSIntersectionDistancePrimitiveIndexBufferIndex(org.moe.natj.general.Pointer peer)
public MPSIntersectionDistancePrimitiveIndexBufferIndex(float distance,
int primitiveIndex,
int bufferIndex)
public float distance()
public void setDistance(float value)
public int primitiveIndex()
public void setPrimitiveIndex(int value)
public int bufferIndex()
public void setBufferIndex(int value)