net.sf.josceleton.core.api.entity.joint
Interface Skeleton


public interface Skeleton

Since:
0.4

Method Summary
 Coordinate get(Joint joint)
          ATTENTION: This method might return null!
 Coordinate getNullSafe(Joint joint)
          Safely get a coordinate, ensuring the return value is not null but throwing an exception instead.
 boolean isCoordinateAvailable(Joint joint)
           
 

Method Detail

get

Coordinate get(Joint joint)
ATTENTION: This method might return null!

Parameters:
joint - of which to get the most recent coordinate
Returns:
recent position of given joint, or null if none yet available
Since:
0.4

getNullSafe

Coordinate getNullSafe(Joint joint)
Safely get a coordinate, ensuring the return value is not null but throwing an exception instead.

Parameters:
joint - of which to get the most recent coordinate
Returns:
recent position of given joint
Throws:
SkeletonCoordinateUnavailableException - if no joint data was yet received for this joint
Since:
0.4
See Also:
get(Joint)

isCoordinateAvailable

boolean isCoordinateAvailable(Joint joint)
Parameters:
joint -
Returns:
Since:
0.4


Copyright © 2011 Josceleton. All Rights Reserved.