Maven module :un.api : api-geometry :
Class : un.api.geometry.index.quadtrees.QuadTreeRaycastResult
Extends/Implements : un.api.geometry.index.quadtrees.Comparable>
Subclasses : -


An object returned by a successful raycast operation. Objects are ordered
by their scalar distance from the origin of the ray.



Note that although the QuadTreeRaycastResult class is
immutable, whether or not the object of type T returned by
{@link #getObject()} is mutable depends entirely on the user and therefore
thread-safety is also the responsibility of the user.



@param The precise type of quadtree members.
@author Mark Raynsford


Variables : -
Functions : QuadTreeRaycastResult, compareTo, equals, getDistance, getObject, hashCode, toString




Construct a new result.
param  in_object
The object.
param  in_distance
The distance to the object.
public void QuadTreeRaycastResult (T in_object, double in_distance)

public int compareTo (QuadTreeRaycastResult other)

public boolean equals (Object obj)


return  The distance of this object from the origin of the ray.
public double getDistance ()


return  The intersected object.
public T getObject ()

public int hashCode ()

public String toString ()