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.
PairObject Methods
getFirst Retrieves the first object of the PairObject. getSecond Retrieves the second object of the PairObject. PairObject Constructs a PairObject object.
Retrieves the first object of the PairObject.
Syntax
public Object getFirst( );
Return Value
Returns the object that is the first member of the PairObject.
Retrieves the second object of the PairObject.
Syntax
public Object getSecond( );
Return Value
Returns the object that is the second member of the PairObject.
Constructs a PairObject object. Note that this is not a behavior.
Syntax
public PairObject( Object a, Object b );
Parameters
- a
- First member of the PairObject.
- b
- Second member of the PairObject.
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.