A ray, also known as a half line, consists out of it's origin and direction. Hence it is bound to only the origin side, where the other end is +infinitive.
R(t) = R0 + Rd * t with R0 origin, Rd direction and t > 0.0
A Ray maybe used for picking
using a bounding box via
fast probe or
returning the intersection.
| Modifier and Type | Field and Description |
|---|---|
| public final float[] | dir
Normalized direction vector of ray, float[3]. |
| public final float[] | orig
Origin of Ray, float[3]. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String |
| dir | back to summary |
|---|---|
| public final float[] dir Normalized direction vector of ray, float[3]. | |
| orig | back to summary |
|---|---|
| public final float[] orig Origin of Ray, float[3]. | |
| Ray | back to summary |
|---|---|
| public Ray() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |