|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SpaceElement
Interface for elements that can be embedded into spaces.
| Method Summary | |
|---|---|
boolean |
getIntersection(Ray2D ray,
Vector2f result)
Finds the intersection of a ray with this element and places it in the supplied vector (if it exists). |
void |
getNearestPoint(Vector2f point,
Vector2f result)
Finds the nearest point of this element to the supplied point and places it in the supplied vector. |
Object |
getUserObject()
Returns this element's user object reference. |
boolean |
intersects(Capsule capsule)
Determines whether this element intersects the supplied capsule. |
boolean |
intersects(Circle circle)
Determines whether this element intersects the supplied circle. |
boolean |
intersects(Compound compound)
Determines whether this element intersects the supplied compound. |
boolean |
intersects(None none)
Determines whether this element intersects the supplied none. |
boolean |
intersects(Point point)
Determines whether this element intersects the supplied point. |
boolean |
intersects(Polygon polygon)
Determines whether this element intersects the supplied polygon. |
boolean |
intersects(Segment segment)
Determines whether this element intersects the supplied segment. |
void |
wasAdded(Space space)
Notes that the element was added to the specified space. |
void |
willBeRemoved()
Notes that the element will be removed from the space. |
| Methods inherited from interface com.threerings.tudey.space.SpaceObject |
|---|
getBounds, updateLastVisit |
| Method Detail |
|---|
Object getUserObject()
void wasAdded(Space space)
void willBeRemoved()
boolean getIntersection(Ray2D ray,
Vector2f result)
void getNearestPoint(Vector2f point,
Vector2f result)
boolean intersects(Point point)
boolean intersects(Segment segment)
boolean intersects(Circle circle)
boolean intersects(Capsule capsule)
boolean intersects(Polygon polygon)
boolean intersects(Compound compound)
boolean intersects(None none)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||