Modifier and Type | Field and Description |
---|---|
T |
entity
the picked entity
|
float[] |
p
The world frame coordinates of the nearest intersection for this
entity.
|
float |
u
The signed distance along the pick segment of the nearest
intersection for this entity, normalized to the pick segment length.
|
Modifier | Constructor and Description |
---|---|
protected |
UI.Pick(float u,
T entity)
adds initial intersection
|
Modifier and Type | Method and Description |
---|---|
boolean |
addIntersection(float u)
Add an intersection at the given
u . |
int |
compareTo(UI.Pick<?> other)
Orders Picks in increasing
u . |
public float u
The signed distance along the pick segment of the nearest intersection for this entity, normalized to the pick segment length.
In some cases, for example when the pick was set programatically via
UI.setPick(T, float, boolean)
, this may be NaN.
public final float[] p
The world frame coordinates of the nearest intersection for this entity.
In some cases, for example when the pick was set programatically via
UI.setPick(T, float, boolean)
, this may be NaN.
public final T entity
protected UI.Pick(float u, T entity)
public boolean addIntersection(float u)
Add an intersection at the given u
.
If the passed u is geq the current u
, the new
intersection is discarded. Otherwise the new intersection is the
closest yet seen, and the current u
is updated.