DirectX Media for Animation Java Reference |
![]() Previous |
![]() Classes |
![]() Index |
![]() Next |
public class PairObject extends java.lang.Object { // Constructor public PairObject(Object a, Object b); // Methods public Object getFirst(); public Object getSecond(); }
Used in conjunction with the andEvent and the getPickEvent methods. The andEvent method creates a third event from two simultaneously occurring events. It returns a PairObject whose first member is the event data returned by the first event and whose second member is the data returned by the second event. The getPickEvent method returns a PairObject whose first member is the point of intersection and whose second member is a vector that is perpendicular to the surface. Note that, unlike arrays, a PairObject can contain two objects of different types.
public PairObject(Object a, Object b);Constructs a PairObject object. Note that this is not a behavior.
Parameter Description a The first member of the PairObject. b The second member of the PairObject.
public Object getFirst();Returns the first object of the PairObject.
Return Value:
Returns the object that is the first member of the PairObject.
public Object getSecond();Returns the second object of the PairObject.
Return Value:
Returns the object that is the second member of the PairObject.
© 1997 Microsoft Corporation. All rights reserved. Legal Notices.